/* Clean & Simple Mobile Booking Form */

/* Modal Customization */
.booking-modal-content {
    border: none;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    position: relative;
    z-index: 10000;
}

/* Ensure modal is above CTA bar */
.modal {
    z-index: 10050 !important;
}

.modal-backdrop {
    z-index: 10040 !important;
}

@media (min-width: 576px) {
    .booking-modal-content {
        border-radius: 20px;
        height: auto;
        max-height: 90vh;
        overflow: hidden;
    }
}

/* Header */
.booking-header {
    background: #1e3a8a;
    color: white;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #fbbf24;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.booking-title {
    flex: 1;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}

.header-badge {
    background: #fbbf24;
    color: #1e3a8a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Modal Body */
.booking-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: linear-gradient(to bottom, #f0f4f8 0%, #ffffff 100%);
}

/* Form Sections */
.form-section {
    background: white;
    margin-bottom: 10px;
    padding: 24px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.form-section:hover {
    border-left-color: #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
}

.section-label svg {
    opacity: 0.7;
    color: #1e3a8a;
}

/* Date Picker Container */
.date-picker-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-input-wrapper {
    position: relative;
}

.date-picker {
    width: 100%;
    padding: 14px 40px 14px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.date-picker:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.floating-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.flexible-dates {
    display: flex;
    align-items: center;
}

.flexible-dates input[type="checkbox"] {
    display: none;
}

.flexible-dates label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.flexible-dates input[type="checkbox"]:checked + label .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.flexible-dates input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Travelers Container */
.travelers-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e0f2fe;
}

.traveler-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: all 0.3s;
}

.traveler-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
    transform: translateX(2px);
}

.traveler-item:last-of-type {
    margin-bottom: 0;
}

.traveler-info {
    flex: 1;
}

.traveler-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.traveler-desc {
    display: block;
    font-size: 12px;
    color: #999;
}

.counter-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.counter-btn:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    min-width: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Children Ages */
.children-ages-container {
    margin-top: 16px;
    padding: 14px;
    background: #fef3c7;
    border-radius: 12px;
    border: 2px solid #fbbf24;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ages-label {
    font-size: 13px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 12px;
}

.ages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.age-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.age-item label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.age-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.age-select.error {
    border-color: #dc3545;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.input-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0 6px;
    font-weight: 500;
}

.form-input:focus + .input-label,
.form-input:not(:placeholder-shown) + .input-label,
.form-input.has-value + .input-label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.country-code {
    width: 110px;
}

.code-select {
    width: 100%;
    padding: 14px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

.flex-1 {
    flex: 1;
}

/* Removed Select2 styles - using simple input field */

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
    background: white;
    transition: all 0.3s;
    font-weight: 500;
}

.form-textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

/* WhatsApp Section */
.whatsapp-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 20px 18px;
    border-left: 3px solid #25D366;
    margin-bottom: 8px;
}

.whatsapp-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.whatsapp-checkbox input[type="checkbox"] {
    display: none;
}

.whatsapp-checkbox .checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.whatsapp-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.whatsapp-text {
    flex: 1;
}

.opt-in-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.opt-in-desc {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Submit Section */
.form-submit {
    background: white;
    padding: 20px 16px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
    /* Add shadow for better visibility */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 0;
        height: 100%;
        max-width: 100%;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .form-submit {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Floating Action Button for Desktop */
.floating-enquiry-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
}

.floating-enquiry-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.floating-enquiry-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.fab-label {
    display: inline-block;
}

/* Animation for floating button */
@keyframes pulse-fab {
    0% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.6), 0 0 0 10px rgba(102, 126, 234, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.floating-enquiry-btn {
    animation: pulse-fab 3s infinite;
}

/* Hide floating button on mobile since we have CTA bar */
@media (max-width: 991px) {
    .floating-enquiry-btn {
        display: none !important;
    }
}

/* Flatpickr Custom Theme */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.flatpickr-day.selected {
    background: #667eea !important;
    border-color: #667eea !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
    background: rgba(102, 126, 234, 0.1) !important;
}

.flatpickr-current-month {
    font-weight: 600 !important;
}