/* Booking Form Styles */

/* Book Now nav icon color */
header nav ul li a .fa-calendar-check-o {
    color: #F4B158;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #193233 0%, #0F2526 100%);
    padding: 60px 0 50px;
    text-align: center;
    margin-top: 0;
}

.page-banner .banner-content h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-banner .banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin: 0;
}

/* Booking Section */
.booking-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.booking-form-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flow-root;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px dashed #eee;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #F4B158;
    display: inline-block;
}

.section-title i {
    margin-right: 10px;
    color: #F4B158;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Fix Bootstrap row alignment */
.booking-form-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.booking-form-wrapper .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.booking-form-wrapper .row > [class*="col-"]:first-child {
    padding-left: 0;
}

.booking-form-wrapper .row > [class*="col-"]:last-child {
    padding-right: 0;
}

.required {
    color: #e74c3c;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    border-color: #87AE75;
    box-shadow: 0 0 0 3px rgba(135, 174, 117, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-color: #fff;
    padding: 15px 40px 15px 15px !important;
    height: 56px !important;
    line-height: 22px !important;
    color: #333;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

select.form-control option {
    padding: 12px 15px;
    color: #333;
    font-size: 15px;
}

select.form-control option[value=""] {
    color: #aaa;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: #555;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: #87AE75;
    cursor: pointer;
}

/* Price Calculator */
.price-calculator {
    background: linear-gradient(135deg, #f5f9f3 0%, #e8f0e5 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 20px;
    border: 2px solid #87AE75;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #555;
}

.price-row.total {
    border-top: 2px solid #F4B158;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #193233;
}

/* Payment Info Box */
.payment-info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #a5d6a7;
}

.payment-info-box h4 {
    color: #2e7d32;
    font-size: 18px;
    margin-bottom: 10px;
}

.payment-info-box h4 i {
    margin-right: 8px;
}

.payment-info-box > p {
    color: #555;
    margin-bottom: 15px;
}

.bank-details {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #444;
    min-width: 140px;
}

.detail-row .value {
    color: #333;
    font-size: 16px;
    flex: 1;
}

.copy-btn {
    background: #F4B158;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #193233;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #4caf50;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #87AE75;
    background: #f5f9f3;
}

.file-upload-label i {
    font-size: 48px;
    color: #87AE75;
    margin-bottom: 15px;
}

.file-upload-label span {
    color: #666;
    font-size: 14px;
}

.file-upload-wrapper.has-file .file-upload-label {
    border-color: #4caf50;
    background: #e8f5e9;
}

.file-upload-wrapper[data-success="true"]::after {
    content: '\f058';
    font-family: 'FontAwesome';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #4caf50;
    z-index: 3;
}

.file-preview {
    margin-top: 15px;
    padding-bottom: 20px;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin-bottom: 20px;
}

.file-preview .file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
}

.file-preview .file-name i {
    font-size: 20px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    padding-top: 20px;
}

.btn-submit {
    background: linear-gradient(135deg, #F4B158 0%, #D9923A 100%);
    border: none;
    color: #fff;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(244, 177, 88, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 177, 88, 0.5);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit i {
    margin-right: 10px;
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar */
.booking-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F4B158;
}

.sidebar-box h4 i {
    margin-right: 10px;
    color: #F4B158;
}

/* Package List */
.package-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li.premium {
    background: linear-gradient(135deg, #f5f9f3 0%, #e8f0e5 100%);
    margin: 10px -15px -10px;
    padding: 15px;
    border-radius: 0 0 10px 10px;
}

.package-name {
    font-weight: 500;
    color: #444;
}

.package-price {
    font-weight: 700;
    color: #193233;
}

.package-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

.package-note i {
    margin-right: 5px;
}

/* Contact List */
.contact-list,
.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.guarantee-list li {
    padding: 8px 0;
    color: #555;
}

.contact-list li i,
.guarantee-list li i {
    margin-right: 10px;
    color: #F4B158;
    width: 20px;
}

.guarantee-list li i {
    color: #4caf50;
}

/* Success Modal */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-body {
    padding: 50px 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon i {
    font-size: 50px;
    color: #fff;
}

.modal-body h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.modal-body p {
    color: #666;
    margin-bottom: 10px;
}

.booking-id {
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.booking-id strong {
    color: #193233;
    font-size: 16px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-notification.success {
    background: #4caf50;
}

.toast-notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error States */
.form-control.error {
    border-color: #F4B158;
    background: #fef9f3;
    box-shadow: 0 0 0 3px rgba(244, 177, 88, 0.1);
}

.form-control.error:focus {
    border-color: #F4B158;
    box-shadow: 0 0 0 3px rgba(244, 177, 88, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.error-message::before {
    content: "⚠ ";
}

.form-group .error-message {
    position: relative;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .page-banner {
        margin-top: 0;
        padding: 50px 0 40px;
    }
    
    .page-banner .banner-content h2 {
        font-size: 32px;
    }
    
    .booking-form-wrapper {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .booking-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .page-banner .banner-content h2 {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row .label {
        min-width: auto;
    }
    
    .copy-btn {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .btn-submit {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .booking-form-wrapper .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Helper text for form fields */
.form-group .text-muted {
    font-size: 13px;
    display: block;
    margin-top: 5px;
}
