/* Main layout */
/* .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
} */

/* Left side - Main form */
.form-section {
    flex: 1;
    max-width: 800px;
}

.card {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    background: white;
    border: none;
}

.card-header {
    border-radius: 15px 15px 0 0;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-subtitle {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Visa Type Radio Buttons */
.visa-type-section {
    margin-bottom: 20px;
}

.visa-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.visa-radio-option {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.visa-radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visa-radio-option:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.visa-radio-option:hover::before {
    opacity: 1;
}

.visa-radio-option.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.visa-radio-option.selected::before {
    opacity: 1;
}

.visa-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.visa-radio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.visa-type-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visa-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    transition: transform 0.3s ease;
}

.visa-radio-option:hover .visa-icon {
    transform: scale(1.1);
}

.visa-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.visa-radio-option.selected .custom-radio {
    border-color: #d4af37;
    background: #d4af37;
}

.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.visa-radio-option.selected .custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.visa-details {
    position: relative;
    z-index: 1;
}

.visa-description {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.visa-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    max-height: 0;
    overflow: hidden;
}

.visa-radio-option:hover .visa-pricing,
.visa-radio-option.selected .visa-pricing {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px;
}

.visa-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
}

.visa-currency {
    font-size: 0.9rem;
    color: #64748b;
}

.visa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Special styling for premium options */
.visa-radio-option[data-visa="Hajj"] {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.visa-radio-option[data-visa="Hajj"] .visa-icon {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.visa-radio-option[data-visa="Omra"] .visa-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.visa-radio-option[data-visa="Touristique"] .visa-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.visa-radio-option[data-visa="Affaires"] .visa-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.visa-radio-option[data-visa="Visite"] .visa-icon {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}


/* Traveler card styling for clearer blocks */
.traveler-card {
    border: 1px solid #e6eef8;
    border-radius: 10px;
    background: #ffffff;
}

.nationality-info {
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 8px;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    color: #0f172a;
    font-size: 0.9rem;
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.info-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Form styles */
.form-control,
.form-select {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid #ced4da;
    width: 100%;
    margin-bottom: 20px;
}


.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.required:after {
    content: " *";
    color: red;
}

.readonly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.readonly-grid .form-control[readonly] {
    background-color: #f1f1f1;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.readonly-grid .form-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.traveler-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 32px 28px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.border-start-blue {
    border-left: 3px solid #055160 !important;
}

.traveler-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.traveler-number {
    width: 32px;
    height: 32px;
    background: #c39e36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6,
.col-md-3,
.col-md-4 {
    padding: 0 10px;
    margin-bottom: 20px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Use Bootstrap's native .alert classes */
.form-control:focus {
    border-color: #c39e36 !important;
    box-shadow: 0 0 0 0.25rem rgba(195, 158, 54, 0.25) !important;
    outline: 0;
}

/* Custom Alert Info Styling - Light Blue Theme */
.alert-info {
    background-color: #e7f3ff !important;
    border-color: #4285f4 !important;
    color: #1a56a8 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
}

.alert-info .fw-semibold {
    color: #1a56a8 !important;
    font-weight: 600 !important;
}

.alert-info .small {
    color: #3d6fa8 !important;
}

.alert-info .text-muted {
    color: #5a7ca8 !important;
}

input[type="date"] {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    transition: all 0.3s;
}

input[type="date"]:focus {
    box-shadow: 0 0 5px rgba(113, 127, 188, 0.5);
    border-color: #d4af37;
}

/* Custom select styling */
select.form-control,
select.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 16px;
    }

    .visa-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .step-title {
        font-size: 1.3rem;
    }

    .traveler-card {
        padding: 20px 16px;
    }

    .col-md-6,
    .col-md-3,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nationality-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .nationality-option {
        min-height: 75px;
        padding: 10px 6px;
    }

    .nationality-name {
        font-size: 0.8rem;
    }

    .readonly-grid {
        grid-template-columns: 1fr;
    }

    .visa-type-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific improvements */
    .container {
        padding: 12px !important;
    }

    .card {
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .card-header {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control,
    .form-select {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 12px !important;
        min-height: 48px !important;
        border-radius: 8px;
    }

    .row {
        margin: 0 -8px;
    }

    .col-md-6,
    .col-md-3,
    .col-md-4 {
        padding: 0 8px;
        margin-bottom: 16px;
    }

    /* Better spacing for mobile */
    .traveler-card h5 {
        font-size: 1.1rem;
    }

    .traveler-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    /* Error messages */
    .error-message {
        font-size: 0.75rem;
        margin-top: -12px;
        margin-bottom: 12px;
    }

    /* Date input styling */
    input[type="date"] {
        font-size: 16px !important;
        padding: 12px !important;
        min-height: 48px !important;
    }

    /* Better touch targets */
    button,
    .btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .start-visa-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }
}

/* Focus styles for accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.visa-radio-option:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Error styling for invalid alphabetic input */
.form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: -15px;
    margin-bottom: 15px;
    display: none;
}

/* Person Counter Styles */
.person-counter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.person-counter-info {
    flex: 1;
}

.person-counter-wrapper {
    background-color: #f7f6f2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.bg-gold {
    background-color: #c39e36;
}

.person-counter-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.person-counter-minus {
    background: white;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.person-counter-minus:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.person-counter-plus {
    background: #c9a961;
    color: white;
    border: 1px solid #c9a961;
    border-radius: 8px;
}

.person-counter-plus:hover:not(:disabled) {
    background: #b8923d;
}

.person-counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.person-counter-display {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 8px 12px;
}

.person-count-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c9a961;
    line-height: 1;
}

@media (max-width: 768px) {
    .person-counter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .person-counter-wrapper {
        gap: 8px;
        justify-content: flex-start;
    }

    .person-counter-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .person-counter-display {
        min-width: 45px;
        padding: 6px 10px;
    }

    .person-count-number {
        font-size: 1.35rem;
    }
}






/* Cart Sidebar Styles */
.cart-sidebar {
    width: 350px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.cart-count {
    background: rgba(113, 127, 188, 0.1);
    color: #d4af37;
    width: 36px;
    height: 36px;
    border-radius: 20px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.traveler-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    min-height: 60px;
}

.traveler-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(113, 127, 188, 0.05);
    border: 1px solid rgba(113, 127, 188, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.traveler-cart-item:hover {
    background: rgba(113, 127, 188, 0.1);
    transform: translateX(-4px);
}

.traveler-avatar {
    width: 36px;
    height: 36px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.traveler-details {
    flex: 1;
    min-width: 0;
}

.traveler-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traveler-passport {
    font-size: 0.8rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traveler-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.traveler-status.complete {
    background: #22c55e;
}

.traveler-status.incomplete {
    background: #ef4444;
}

.empty-cart {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 32px 16px;
}

.start-visa-btn {
    width: 100%;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 25px;
    border: none;
    background-color: #d4af37;
    color: white;
    cursor: not-allowed;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    position: relative;
    overflow: hidden;
}

.start-visa-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.start-visa-btn.enabled {
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(113, 127, 188, 0.4);
}

.start-visa-btn.enabled:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 127, 188, 0.5);
}

.start-visa-btn.enabled:hover::before {
    left: 100%;
}

/* Progress indicator */
.progress-bar {
    height: 4px;
    background: rgba(113, 127, 188, 0.2);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #d4af37;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.cart-progress {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 16px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .cart-sidebar {
        width: 100%;
        position: static;
        order: -1;
        margin-bottom: 24px;
    }

    .traveler-cart {
        margin-bottom: 30px;
    }

    /* Better stacking on tablets */
    .container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-height: none;
        position: static;
    }

    .traveler-cart {
        padding: 16px;
    }

    .cart-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .cart-header h3 {
        font-size: 1rem;
    }

    .cart-count {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .traveler-cart-item {
        padding: 12px;
    }

    .traveler-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .traveler-name {
        font-size: 0.9rem;
    }

    .traveler-passport {
        font-size: 0.75rem;
    }

    /* Price summary adjustments */
    .visa-price-summary {
        padding-top: 20px !important;
    }

    .visa-price-summary .bg-light {
        padding: 12px !important;
    }
}

/* Focus styles for accessibility */
.start-visa-btn:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* ==========================================
   FLATPICKR CALENDAR MODERN STYLING
   ========================================== */

/* Calendar Container */
.flatpickr-calendar {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    padding: 0 !important;
    background: white !important;
    overflow: hidden !important;
}

.flatpickr-calendar.open {
    z-index: 9999 !important;
}

/* Calendar Header */
.flatpickr-months {
    padding: 16px 12px 12px !important;
    background: linear-gradient(135deg, #c9a24b 0%, #b8923d 100%) !important;
    border-radius: 6px 6px 0 0 !important;
    position: relative !important;
}

.flatpickr-months::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Month Display */
.flatpickr-current-month {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: white !important;
    padding: 4px 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Month Dropdown */
.flatpickr-monthDropdown-months {
    background: white !important;
    color: #1f2937 !important;
    border-radius: 8px !important;
    padding: 12px 32px 6px 12px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
}

.flatpickr-monthDropdown-months:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Year Input */
.numInputWrapper {
    background: white !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.numInputWrapper input.cur-year {
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 6px 8px !important;
    background: white !important;
    border: none !important;
}

.numInputWrapper span {
    background: transparent !important;
    border: none !important;
    opacity: 0.7 !important;
    padding: 2px 6px !important;
}

.numInputWrapper span:hover {
    opacity: 1 !important;
    background: rgba(201, 162, 75, 0.1) !important;
}

.numInputWrapper span.arrowUp::after {
    border-bottom-color: #6b7280 !important;
}

.numInputWrapper span.arrowUp {
    margin-top: 4px !important;
    margin-right: -2px !important;
    padding: 1px !important;
}

.numInputWrapper span.arrowDown {
    margin-right: -2px !important;
    padding: 1px !important;

}

.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,
.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
    right: 7px !important
        /* /*rtl:end:ignore*/
    ;
}

.numInputWrapper span.arrowDown::after {
    border-top-color: #6b7280 !important;
}

/* Navigation Arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: white !important;
    padding: 10px !important;
    display: flex !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    margin-top: 12px !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #000 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2) !important;

}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    margin-top: 12px !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    width: 14px !important;
    height: 14px !important;
}

/* Weekdays Header */
.flatpickr-weekdays {
    background: #f9fafb !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    height: auto !important;
}

.flatpickr-weekday {
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Days Container */
.flatpickr-days {
    padding: 12px !important;
    background: white !important;
}

.dayContainer {
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Individual Day Cells */
.flatpickr-day {
    border-radius: 10px !important;
    margin: 2px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    color: #1f2937 !important;
    border: 2px solid transparent !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

/* Day Hover State */
.flatpickr-day:hover {
    background: #f3f4f6 !important;
    border-color: #c9a24b !important;
    transform: scale(1.05) !important;
}

/* Selected Day */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: linear-gradient(135deg, #c9a24b 0%, #b8923d 100%) !important;
    border-color: #c9a24b !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(201, 162, 75, 0.35) !important;
    transform: scale(1.05) !important;
}

/* Today's Date */
.flatpickr-day.today {
    border-color: #ccc !important;
    background: rgba(201, 162, 75, 0.08) !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.flatpickr-day.today:hover {
    background: rgba(201, 162, 75, 0.15) !important;
    border-color: #ccc !important;
}

/* Today + Selected */
.flatpickr-day.today.selected {
    background: linear-gradient(135deg, #c9a24b 0%, #b8923d 100%) !important;
    color: white !important;
}

/* Disabled Days */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #e6e7ea !important;
    background: transparent !important;
    cursor: not-allowed !important;
    border-color: transparent !important;
    transform: none !important;
}

/* Previous/Next Month Days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #9ca3af !important;
    opacity: 0.5 !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background: #f8f9fa !important;
    color: #ccc !important;
    cursor: not-allowed !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    opacity: 0.7 !important;
}

/* Input Field Styling */
.form-control.flatpickr-input,
.form-control[readonly].flatpickr-input {
    background-color: white !important;
    cursor: pointer !important;
    padding: 0.7rem 2.5rem 0.7rem 1rem !important;
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    transition: all 0.2s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.8rem center !important;
    background-size: 20px !important;
    font-size: 0.95rem !important;
}

.form-control.flatpickr-input:hover {
    border-color: #9ca3af !important;
}

.form-control.flatpickr-input:focus,
.form-control[readonly].flatpickr-input:focus {
    border-color: #c9a24b !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.1) !important;
    outline: none !important;
}

/* Animation for calendar opening */
.flatpickr-calendar.animate {
    animation: fpFadeInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes fpFadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .flatpickr-calendar {
        font-size: 0.9rem !important;
        width: calc(100vw - 40px) !important;
        max-width: 340px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .flatpickr-day {
        height: 38px !important;
        max-width: 38px !important;
        line-height: 38px !important;
        font-size: 0.85rem !important;
        margin: 1px !important;
    }

    .flatpickr-months {
        padding: 12px 8px 8px !important;
    }

    .flatpickr-current-month {
        font-size: 1rem !important;
    }

    .flatpickr-monthDropdown-months {
        padding: 4px 24px 4px 8px !important;
        font-size: 0.9rem !important;
    }

    /* Better mobile input styling */
    .form-control.flatpickr-input,
    .form-control[readonly].flatpickr-input {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 12px 40px 12px 12px !important;
        min-height: 48px !important;
        background-size: 24px !important;
        background-position: right 12px center !important;
    }

    input[type="date"],
    input[type="number"],
    input[type="text"],
    select.form-control,
    select.form-select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        min-height: 48px !important;
        padding: 12px !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .flatpickr-calendar {
        background: #1f2937 !important;
        border-color: #374151 !important;
    }

    .flatpickr-days {
        background: #1f2937 !important;
    }

    .flatpickr-day {
        color: #e5e7eb !important;
    }

    .flatpickr-weekdays {
        background: #111827 !important;
    }

    .flatpickr-weekday {
        color: #9ca3af !important;
    }
}

/* International Telephone Input (intl-tel-input) Dropdown Fix */
/* Fix for .iti__country-list appearing behind cards */
.iti__country-list {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Allow dropdown to escape card overflow boundaries */
.card:has(.iti),
.traveler-card:has(.iti) {
    overflow: visible !important;
}

/* For older browsers that don't support :has() selector */
.card.phone-input-container,
.traveler-card.phone-input-container {
    overflow: visible !important;
}

/* Ensure the iti container itself has proper positioning */
.iti {
    position: relative;
    z-index: 1;
}

/* When dropdown is open, ensure parent containers don't clip it */
.iti--container-open {
    overflow: visible !important;
}

.iti--container-open .card,
.iti--container-open .traveler-card {
    overflow: visible !important;
}

/* Additional specificity for dropdowns */
.iti__dropdown-content {
    z-index: 99999 !important;
}

/* Fallback styling for country list positioning */
.iti__country-list.iti__country-list--dropup {
    z-index: 99999 !important;
}