/* === Appointment Page Styles === */

.typeform-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Progress Bar */
.typeform-progress {
    margin-bottom: 48px;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.remaining-count {
    color: var(--accent);
    font-weight: 600;
}

/* Slides */
.typeform-slides {
    flex: 1;
    display: flex;
    align-items: center;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide-content {
    width: 100%;
}

.question-num {
    display: block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.question-sub {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.option:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

.option.selected {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.option-key {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.option.selected .option-key {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.option-text {
    font-size: 1rem;
    color: var(--text);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-fields input:last-child {
    grid-column: 1 / -1;
}

.booking-fields input,
.booking-form select,
#company-url {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.booking-fields input:focus,
.booking-form select:focus,
#company-url:focus {
    outline: none;
    border-color: var(--accent);
}

.booking-fields input::placeholder,
#company-url::placeholder {
    color: var(--text-muted);
}

/* Error States */
.input-error-state {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.input-error {
    display: none;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: -8px;
}

.date-option.input-error-state {
    border-color: #ef4444 !important;
}

/* Date Picker */
.date-picker-section {
    margin-bottom: 4px;
}

.picker-label {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.date-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.date-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.date-option:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

.date-option.selected {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}

.date-day {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.date-full {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.date-option.selected .date-day,
.date-option.selected .date-full {
    color: var(--accent);
}

/* Time Picker */
.time-picker-section {
    margin-bottom: 8px;
}

#book-time {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#book-time:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#book-time:focus {
    outline: none;
    border-color: var(--accent);
}

#book-time option {
    background: var(--bg);
    color: var(--text);
}

/* URL Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn-full {
    width: 100%;
}

.btn-book:disabled,
.btn-submit-url:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigation */
.typeform-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    margin-top: auto;
}

.nav-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-back:hover:not(:disabled) {
    border-color: var(--text-muted);
    color: var(--text);
}

.nav-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-hint kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.6875rem;
}

/* Reveal / Final Screens */
.reveal-content {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 24px;
}

.success-email {
    font-size: 1.125rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.booked-details {
    margin: 20px 0;
}

.booked-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.booked-datetime {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.confirm-note {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    text-align: center;
}

.confirm-note p {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}

.confirm-note strong {
    color: var(--accent);
}

.estimate-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}

.estimate-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.estimate-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 8px 0;
}

.estimate-sub {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 600px) {
    .booking-fields {
        grid-template-columns: 1fr;
    }
    
    .booking-fields input:last-child {
        grid-column: auto;
    }
    
    .date-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
}