/**
 * Directory Pro Forms Editor - Frontend Styles
 */

/* Common Form Styles */
.directory-pro-submit-form-container,
.directory-pro-search-form-container {
    max-width: 100%;
    margin-bottom: 30px;
}

.directory-pro-form-header {
    margin-bottom: 30px;
}

.directory-pro-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.directory-pro-form-description {
    color: #666;
    margin-bottom: 20px;
}

.directory-pro-form-section {
    margin-bottom: 30px;
    background: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.directory-pro-form-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.directory-pro-form-section-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.directory-pro-form-field {
    margin-bottom: 15px;
}

.directory-pro-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.directory-pro-form-field label .required {
    color: #d63638;
    margin-left: 3px;
}

.directory-pro-form-field input[type="text"],
.directory-pro-form-field input[type="email"],
.directory-pro-form-field input[type="url"],
.directory-pro-form-field input[type="tel"],
.directory-pro-form-field input[type="number"],
.directory-pro-form-field input[type="password"],
.directory-pro-form-field textarea,
.directory-pro-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.directory-pro-form-field input[type="text"]:focus,
.directory-pro-form-field input[type="email"]:focus,
.directory-pro-form-field input[type="url"]:focus,
.directory-pro-form-field input[type="tel"]:focus,
.directory-pro-form-field input[type="number"]:focus,
.directory-pro-form-field input[type="password"]:focus,
.directory-pro-form-field textarea:focus,
.directory-pro-form-field select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.directory-pro-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.directory-pro-form-field.field-has-error input,
.directory-pro-form-field.field-has-error textarea,
.directory-pro-form-field.field-has-error select {
    border-color: #d63638;
}

.directory-pro-form-field .field-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}

.directory-pro-form-field .field-description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Checkbox and Radio Styles */
.directory-pro-checkbox-label,
.directory-pro-radio-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    cursor: pointer;
}

.directory-pro-checkbox-label input,
.directory-pro-radio-label input {
    margin-right: 8px;
    margin-top: 3px;
}

.directory-pro-checkbox-group,
.directory-pro-radio-group {
    margin-top: 5px;
}

/* File Upload Fields */
.directory-pro-form-field input[type="file"] {
    padding: 8px 0;
}

/* Location Field */
.directory-pro-location-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.directory-pro-location-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* Form Actions */
.directory-pro-form-actions {
    margin-top: 20px;
    text-align: center;
}

.directory-pro-submit-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.directory-pro-submit-button:hover {
    background: #135e96;
}

/* Success/Error Messages */
.directory-pro-form-success-message,
.directory-pro-form-error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.directory-pro-form-success-message {
    background: #edfaef;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.directory-pro-form-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Login Required Message */
.directory-pro-login-required {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 30px;
}

.directory-pro-login-required p {
    margin-bottom: 15px;
    font-size: 16px;
}

.directory-pro-login-required .button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
    font-weight: 600;
}

.directory-pro-login-required .button:hover {
    background: #135e96;
}

/* Search Form Specific Styles */
.directory-pro-search-form {
    display: flex;
    flex-direction: column;
}

.directory-pro-search-form.layout-horizontal .directory-pro-search-form-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.directory-pro-search-form.layout-horizontal .directory-pro-search-field {
    flex: 1;
    min-width: 150px;
}

.directory-pro-search-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.directory-pro-search-field {
    margin-bottom: 15px;
}

.directory-pro-search-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.5;
}

.directory-pro-search-button:hover {
    background: #135e96;
}

.directory-pro-advanced-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.directory-pro-advanced-filter-toggle {
    text-align: center;
    margin-top: 10px;
}

.directory-pro-toggle-filters {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
}

.directory-pro-search-form:not(.show-advanced) .hide-filters,
.directory-pro-search-form.show-advanced .show-filters {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .directory-pro-form-section-fields {
        grid-template-columns: 1fr;
    }
    
    .directory-pro-search-form.layout-horizontal .directory-pro-search-form-fields {
        flex-direction: column;
    }
    
    .directory-pro-search-form.layout-horizontal .directory-pro-search-field {
        width: 100%;
    }
    
    .directory-pro-location-details {
        grid-template-columns: 1fr;
    }
} 

/* Package Selection Styles */
.directory-pro-package-selection {
    margin-bottom: 40px;
}

.directory-pro-package-selection h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.directory-pro-package-form {
    margin-top: 30px;
}

.directory-pro-wc-packages,
.directory-pro-user-packages {
    margin-top: 30px;
}

.directory-pro-wc-packages h3,
.directory-pro-user-packages h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.wc-packages-list,
.user-packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.directory-pro-package-option {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-pro-package-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.directory-pro-package-option.featured-package {
    border-color: #2271b1;
    box-shadow: 0 0 15px rgba(33, 113, 177, 0.2);
}

.package-header {
    background: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.package-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.directory-pro-package-option.featured-package .package-header {
    background: #2271b1;
}

.directory-pro-package-option.featured-package .package-header h3 {
    color: #fff;
}

.package-content {
    padding: 15px;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.package-price del {
    font-size: 16px;
    color: #999;
    margin-right: 5px;
}

.package-price ins {
    text-decoration: none;
    color: #d54e21;
}

.package-description,
.package-features {
    margin-bottom: 20px;
    color: #666;
}

.package-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.package-features li {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.package-features li:before {
    content: "✓";
    margin-right: 8px;
    color: #2271b1;
}

.package-action {
    text-align: center;
}

.package-select {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}

.package-select input {
    margin-right: 8px;
}

.directory-pro-package-form-submit {
    margin-top: 30px;
    text-align: center;
}

.directory-pro-package-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.directory-pro-package-button:hover {
    background: #135e96;
}

.directory-pro-no-packages {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Free Package Styles */
.directory-pro-package-option.free-package {
    background: #f9f9f9;
}

.directory-pro-package-option.free-package .package-price {
    color: #155724;
}

/* User Package Styles */
.directory-pro-package-option.user-package .package-details {
    background: #edfaef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Responsive Styles for Package Selection */
@media (max-width: 768px) {
    .wc-packages-list,
    .user-packages-list {
        grid-template-columns: 1fr;
    }
} 