/* Enquiry Form Professional Styles - Updated Brand Colors */
/* Main Color: #543e20 (Brown) | Green: #b7d57b | Light: #fefefc */

.enquiry-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fefefc 0%, #f5f0e8 100%);
}

.enquiry-form-wrapper {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(84, 62, 32, 0.15);
    overflow: hidden;
    margin-bottom: 40px;
}

.form-header-enquiry {
    background: linear-gradient(135deg, #543e20 0%, #6b4f28 100%);
    color: #fefefc;
    padding: 40px 30px;
    text-align: center;
}

.form-header-enquiry .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(183, 213, 123, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.form-header-enquiry .icon-wrapper i {
    font-size: 36px;
    color: #b7d57b;
}

.form-header-enquiry h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fefefc;
}

.form-header-enquiry p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    color: #fefefc;
}

.enquiry-form-professional {
    padding: 40px 30px;
    background: #fefefc;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0ebe3;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #543e20;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #b7d57b;
    display: inline-block;
}

.section-title i {
    margin-right: 10px;
    color: #b7d57b;
}

.form-group {
    margin-bottom: 20px;
}

.control-label {
    font-weight: 600;
    color: #543e20;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.required {
    color: #d9534f;
    font-weight: bold;
}

.form-control {
    height: 45px;
    border: 2px solid #e5dfd5;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #b7d57b;
    box-shadow: 0 0 0 0.2rem rgba(183, 213, 123, 0.25);
    outline: none;
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group .country-code {
    flex: 0 0 140px;
    color: #543e20 !important;
    background: #ffffff !important;
}

.phone-input-group .phone-number {
    flex: 1;
    color: #543e20 !important;
    background: #ffffff !important;
}

/* Ensure all input text is visible */
input.form-control,
select.form-control,
textarea.form-control {
    color: #543e20 !important;
}

/* Gender Radio Buttons */
.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e5dfd5;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fefefc;
}

.custom-radio:hover {
    border-color: #b7d57b;
    background: #f5f9ed;
}

.custom-radio input[type="radio"] {
    display: none;
}

.custom-radio input[type="radio"]:checked + .radio-label {
    color: #543e20;
    font-weight: 600;
}

.custom-radio input[type="radio"]:checked ~ .radio-label {
    color: #543e20;
}

.custom-radio:has(input[type="radio"]:checked) {
    border-color: #b7d57b;
    background: #f5f9ed;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #543e20;
    transition: all 0.3s ease;
}

.radio-label i {
    font-size: 18px;
    color: #b7d57b;
}

/* Package Note */
.package-note {
    margin-top: 15px;
    padding: 15px;
    background: #fffef5;
    border-left: 4px solid #b7d57b;
    border-radius: 5px;
    font-size: 13px;
    color: #543e20;
}

.package-note i {
    margin-right: 8px;
    color: #b7d57b;
}

.package-note strong {
    color: #543e20;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
}

.btn-submit-enquiry,
.btn-reset-enquiry {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-enquiry {
    background: linear-gradient(135deg, #543e20 0%, #6b4f28 100%);
    color: #fefefc;
}

.btn-submit-enquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(84, 62, 32, 0.4);
    background: linear-gradient(135deg, #6b4f28 0%, #543e20 100%);
}

.btn-reset-enquiry {
    background: #b7d57b;
    color: #543e20;
}

.btn-reset-enquiry:hover {
    background: #a5c569;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(183, 213, 123, 0.4);
}

/* Alert Messages */
.modern-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: #f0f8e8;
    border: 1px solid #b7d57b;
    color: #543e20;
}

.alert-success i {
    color: #b7d57b;
}

.alert-danger {
    background: #fef5f5;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.text-danger {
    color: #d9534f;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enquiry-section {
        padding: 30px 0;
    }
    
    .enquiry-form-professional {
        padding: 30px 20px;
    }
    
    .form-header-enquiry {
        padding: 30px 20px;
    }
    
    .form-header-enquiry h3 {
        font-size: 24px;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .phone-input-group .country-code {
        flex: 1;
    }
    
    .gender-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit-enquiry,
    .btn-reset-enquiry {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.btn-submit-enquiry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-enquiry.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fefefc;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Input Focus Animation */
.form-control {
    position: relative;
}

.form-control::placeholder {
    color: #a89f8f;
    font-size: 13px;
}

/* Select Dropdown Styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b7d57b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Date Time Input */
input[type="datetime-local"] {
    position: relative;
}

/* Smooth Transitions */
* {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Additional Enhancements */
.form-control:hover {
    border-color: #b7d57b;
}

/* Success State */
.form-control.is-valid {
    border-color: #b7d57b;
}

.form-control.is-invalid {
    border-color: #d9534f;
}

/* Custom Scrollbar for Textarea */
textarea.form-control::-webkit-scrollbar {
    width: 8px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: #fefefc;
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: #b7d57b;
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: #a5c569;
}

/* Focus visible for accessibility */
.form-control:focus-visible {
    outline: 2px solid #b7d57b;
    outline-offset: 2px;
}

.btn-submit-enquiry:focus-visible,
.btn-reset-enquiry:focus-visible {
    outline: 2px solid #543e20;
    outline-offset: 2px;
}
