* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #11869e;
    --primary-dark: #11869e;
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ec853e 0%,#e5ab85 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.scheduler-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.scheduler-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    /* position: sticky; */
    top: 50;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.header-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Main Content */
.scheduler-main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.scheduler-grid {
    display: grid;
    margin-top: 80px;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Meeting Info Panel */
.meeting-info-panel {
    position: sticky;
    top: 2rem;
}

.meeting-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.meeting-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.meeting-icon i {
    font-size: 1.5rem;
    color: white;
}

.meeting-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.meeting-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.detail-item i {
    width: 1.25rem;
    color: var(--primary-color);
}

.meeting-description {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Booking Panel */
.booking-panel {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.booking-form-container {
    padding: 2rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Calendar */
.calendar-container {
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.nav-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: var(--bg-white);
}

.calendar-day:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.header {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: default;
    border: none;
}

/* Time Slots - FIXED */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    font-weight: 500;
}

.time-slot:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Buttons */
.scheduler-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.scheduler-btn-primary {
    background: var(--primary-color);
    color: white;
}

.scheduler-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.scheduler-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.scheduler-btn-secondary:hover {
    background: var(--border-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Booking Summary */
.booking-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.summary-header h4 {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.meeting-details-final {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .scheduler-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .meeting-info-panel {
        position: static;
    }
    
    .scheduler-main {
        padding: 2rem 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .step-indicator {
        flex-direction: row;
        gap: 1rem;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Animations */
.form-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.logo-image {
    height: 100px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
}

/* Enhanced Phone Input Styles */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.phone-input-container:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.country-code-dropdown {
    position: relative;
    min-width: 120px;
    border-right: 1px solid #e2e8f0;
}

.country-code-selected {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    background: #f8fafc;
    border-radius: 6px 0 0 6px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-height: 48px;
}

.country-code-selected:hover {
    background: #f1f5f9;
}

.country-flag {
    font-size: 18px;
    margin-right: 8px;
}

.country-code-text {
    margin-right: 6px;
    color: #374151;
    font-weight: 600;
}

.dropdown-arrow {
    color: #6b7280;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.country-code-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Large Overlay Dropdown */
.country-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.country-dropdown-overlay.show {
    display: flex;
}

.country-dropdown-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    max-height: 600px;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dropdown-modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dropdown-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #374151;
}

.country-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.country-search:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.country-search::placeholder {
    color: #9ca3af;
}

.dropdown-modal-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.country-option:hover {
    background: #f3f4f6;
}

.country-option.selected {
    background: #eff6ff;
    color: #1d4ed8;
}

.country-option .country-flag {
    font-size: 20px;
    margin-right: 12px;
}

.country-option-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.country-option-main {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.country-option-code {
    font-weight: 600;
    color: #374151;
    margin-right: 12px;
    min-width: 60px;
}

.country-option-name {
    color: #111827;
    font-weight: 500;
}

.popular-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 500;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.phone-number-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    background: transparent;
    outline: none;
    border-radius: 0 6px 6px 0;
}

.phone-number-input::placeholder {
    color: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 32px;
        max-width: 150px;
    }
    
    .country-code-dropdown {
        min-width: 100px;
    }
    
    .country-code-selected {
        padding: 10px 8px;
    }
    
    .phone-number-input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .country-dropdown-modal {
        width: 95%;
        max-height: 80vh;
    }

    .dropdown-modal-header {
        padding: 16px;
    }

    .dropdown-modal-title {
        font-size: 16px;
    }

    .country-search {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .country-option {
        padding: 14px 16px;
    }

    .country-option .country-flag {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 28px;
        max-width: 120px;
    }

    .country-dropdown-modal {
        width: 98%;
        margin: 10px;
        max-height: 85vh;
    }

    .dropdown-modal-header {
        padding: 14px;
    }

    .country-option {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Auto-fill indicator */
.auto-filled {
    background: #f0f9ff !important;
    border-color: #0ea5e9 !important;
}

.auto-filled::after {
    content: "✓ Auto-filled";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #0ea5e9;
    font-weight: 500;
}

/* Main container with flex layout */
.datetime-selection-container {
    display: flex;
    gap: 24px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

/* Enhanced calendar styling */
.calendar-section {
    flex: 1;
    max-width: 380px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.calendar-day.available:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Time slots section */
.time-slots-section {
    flex: 1;
    max-width: 320px;
}

.time-slot {
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.time-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Slide-in animation */
.time-slots-content.slide-in {
    animation: slideInRight 0.3s ease-out;
}

/* Selected Date Info */
.selected-date-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.selected-date-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

#floatingThemeToggle, #backToTop {
    width: 60px !important;
}