.gcfs-booking-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

.gcfs-booking-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gcfs-booking-form input[type="date"],
.gcfs-booking-form input[type="text"],
.gcfs-booking-form input[type="email"],
.gcfs-booking-form input[type="tel"],
.gcfs-booking-form input[type="number"] {
    width: 100%;
    width: -webkit-fill-available;
    padding: 12px 15px;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.gcfs-booking-form input:focus {
    outline: none;
    border-color: var(--gcfs-primary);
}

.gcfs-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.gcfs-slot-item {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.gcfs-slot-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.gcfs-slot-item.selected {
    background: linear-gradient(172.12deg, var(--gcfs-primary) 41.38%, var(--gcfs-primary-dark) 144.34%);
    color: white;
    border-color: var(--gcfs-primary);
}

.booking-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(172.12deg, var(--gcfs-primary) 41.38%, var(--gcfs-primary-dark) 144.34%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 0;
}

.booking-btn:hover {
    opacity: 0.9;
}

.booking-btn.btn-secondary {
    background: transparent;
    border: 1px solid var(--gcfs-primary);
    color: var(--gcfs-primary);
    margin-top: 10px;
}

.booking-btn.btn-secondary:hover {
    background: var(--gcfs-primary);
    color: #fff;
    opacity: 1;
}

.gcfs-booking-form .form-group {
    margin-bottom: 20px;
}

.gcfs-booking-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.gcfs-selected-summary {
    display: flex;
    align-items: center;
    background: #f8faff;
    border: 1px solid rgba(var(--gcfs-primary-rgb), 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 15px;
}

.gcfs-selected-summary .summary-icon {
    width: 40px;
    height: 40px;
    background: var(--gcfs-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(var(--gcfs-primary-rgb), 0.2);
}

.gcfs-selected-summary .summary-details {
    display: flex;
    flex-direction: column;
}

.gcfs-selected-summary .summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
    margin-bottom: 2px;
}

.gcfs-selected-summary .gcfs-selected-time-display {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.gcfs-booking-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.message-success {
    background: #d4edda;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.no-slots-container {
    grid-column: span 3;
    padding: 30px 20px;
    text-align: center;
    background: #fff8f8;
    border: 1px dashed #facccc;
    border-radius: 12px;
    color: #c0392b;
}

.gcfs-nearest-dates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.gcfs-date-btn-item {
    padding: 10px 5px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gcfs-date-btn-item.active {
    background: linear-gradient(172.12deg, var(--gcfs-primary) 41.38%, var(--gcfs-primary-dark) 144.34%) !important;
    color: white !important;
    border-color: var(--gcfs-primary) !important;
}

.gcfs-date-btn-item .day-name {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.gcfs-date-btn-item .day-date {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gcfs-primary);
    color: var(--gcfs-primary);
}

.btn-outline:hover {
    background: var(--gcfs-primary);
    color: #fff;
    opacity: 1;
}

/* Lightbox Specific */
[id^="gcfs-booking-popup"] {
    background: #fff;
    border-radius: 12px;
}

[id^="gcfs-booking-popup"] .gcfs-booking-form {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 30px;
}

/* Generic Modal Fallback (for non-Flatsome themes) */
.gcfs-generic-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcfs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.gcfs-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.gcfs-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.gcfs-modal-close:hover {
    color: #333;
}

/* ITI Flags Fix */
.iti__flag {
    background-image: url("../vendor/img/flags.png") !important;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("../vendor/img/flags@2x.png") !important;
    }
}

/* Premium Styling for ITI Dropdown */
.iti {
    width: 100%;
    margin-bottom: 0;
}

.iti__dropdown-content input.iti__search-input {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0px !important;
}

.iti__country-list {
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0px !important;
    margin-top: 1px !important;
    padding: 8px 0 !important;
    background: #fff !important;
    z-index: 10000 !important;
    max-width: 100%;
    width: 100%;
}

.iti__country-list .iti__country {
    margin-left: 0 !important;
}

.iti__country {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    transition: background 0.2s;
    color: #444 !important;
}

.iti__country:hover {
    background-color: #f8f9fa !important;
}

.iti__country.iti__active {
    background-color: #f1f5f9 !important;
    color: var(--gcfs-primary) !important;
}

.iti__country-name {
    font-weight: 500 !important;
}

.iti__dial-code {
    color: #94a3b8 !important;
}

/* ITI Search Styling */
.iti__search-input {
    width: 100% !important;
    padding: 10px 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin: 5px 10px 10px 10px !important;
    width: calc(100% - 20px) !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    outline: none !important;
}

.iti__search-input:focus {
    border-color: var(--gcfs-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--gcfs-primary-rgb), 0.1) !important;
}

.iti__selected-flag {
    padding-left: 15px !important;
    border-radius: 8px 0 0 8px !important;
}

.iti__selected-dial-code {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-left: 6px !important;
}