/* ============================================
   BOOKING / AGENDAR STYLES
   ============================================ */

/* Hero */
.booking-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.booking-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.booking-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Booking Section */
.booking-section {
    padding: 40px 0 80px;
}

.booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Progress Steps */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--accent);
    color: #fff;
}

.progress-step.completed .step-number {
    background: var(--accent);
    color: #fff;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.progress-step.active .step-label {
    color: var(--text-dark);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 0 16px;
}

/* Booking Steps */
.booking-step {
    padding: 40px;
}

/* Form Styles */
.lead-form .form-section {
    margin-bottom: 32px;
}

.lead-form .form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.field-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.field-note-red {
    color: #dc3545;
}

/* Conditional field animation */
.conditional-field,
.conditional-note {
    animation: slideDown 0.3s ease-out;
}

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

/* Info box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e8f4fd;
    border: 1px solid #b8daef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-box svg {
    flex-shrink: 0;
    color: #1a73e8;
    margin-top: 2px;
}

.info-box p {
    font-size: 14px;
    color: #1a4a6e;
    line-height: 1.5;
    margin: 0;
}

.info-box strong {
    color: #1a73e8;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.1);
}

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

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-grid-small {
    grid-template-columns: 1fr;
    gap: 8px;
}

.checkbox-grid-small .checkbox-item {
    padding: 10px 14px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: #f0f0f0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-dark);
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Host Message */
.host-message {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
}

.host-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: 180%;
    background-position: 50% 22%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.host-text p {
    font-size: 14px;
    color: #166534;
    line-height: 1.6;
    margin: 0;
}

.host-text strong {
    color: #15803d;
}

/* Calendar Section */
.calendar-section {
    padding: 0;
}

.calendar-header {
    margin-bottom: 24px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.calendar-header p {
    font-size: 14px;
    color: #666;
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Calendar Picker */
.calendar-picker {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #eee;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.available {
    color: var(--text-dark);
    background: #fff;
}

.calendar-day.available:hover {
    background: rgba(46, 213, 115, 0.1);
    color: var(--accent);
}

.calendar-day.selected {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Time Slots */
.time-slots-container {
    display: flex;
    flex-direction: column;
}

.time-slots-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.time-slots-empty,
.time-slots .loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 20px;
}

.time-slot {
    padding: 14px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot:hover {
    border-color: var(--accent);
    background: rgba(46, 213, 115, 0.05);
}

.time-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Calendar Actions */
.calendar-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.calendar-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Confirmation Section */
.confirmation-section {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.confirmation-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.confirmation-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    margin: 0 auto 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value.meet-link {
    color: var(--accent);
    text-decoration: none;
}

.detail-value.meet-link:hover {
    text-decoration: underline;
}

.confirmation-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(46, 213, 115, 0.08);
    border-radius: 12px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: left;
}

.confirmation-note svg {
    flex-shrink: 0;
    color: var(--accent);
}

.confirmation-note p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.confirmation-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Loading State */
.booking-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #eee;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.booking-loading p {
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-hero {
        padding: 120px 0 40px;
    }

    .booking-hero h1 {
        font-size: 28px;
    }

    .booking-subtitle {
        font-size: 16px;
    }

    .booking-progress {
        padding: 20px 16px;
        overflow-x: auto;
    }

    .progress-step {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .step-label {
        font-size: 11px;
    }

    .progress-line {
        width: 30px;
        margin: 0 8px;
    }

    .booking-step {
        padding: 24px;
    }

    .host-message {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .host-photo {
        width: 56px;
        height: 56px;
    }

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

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

    .calendar-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-actions {
        flex-direction: column;
        gap: 12px;
    }

    .calendar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }

    .checkbox-item {
        padding: 10px 12px;
    }

    .checkbox-label {
        font-size: 13px;
    }
}
