/* ClinixPro — Programare online pacient */

:root {
    --firma-primary: #0ea5e9;
    --firma-primary-dark: #0284c7;
}

.booking-page {
    background: linear-gradient(160deg, #f0f9ff 0%, #f8fafc 45%, #ecfdf5 100%);
    min-height: calc(100vh - 80px);
    padding: 2rem 0 3rem;
}

.booking-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-clinic-logo {
    max-height: 72px;
    max-width: 220px;
    object-fit: contain;
}

.booking-clinic-message {
    color: #475569;
    max-width: 520px;
    margin: 0 auto;
}

.booking-hero .clinic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--firma-primary) 12%, transparent);
    color: var(--firma-primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.booking-hero h1 {
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.booking-hero p {
    color: #64748b;
    margin: 0;
}

.booking-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

.booking-steps {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.booking-steps li {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    position: relative;
    transition: color 0.2s;
}

.booking-steps li.active {
    color: var(--firma-primary);
    background: #fff;
}

.booking-steps li.done {
    color: #14b8a6;
}

.booking-steps li .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.booking-steps li.active .step-num {
    background: var(--firma-primary);
    color: #fff;
}

/* ClinixPro — Programare online pacient */

.booking-steps li.done .step-num {
    background: #14b8a6;
    color: #fff;
}

.booking-body {
    padding: 1.75rem;
}

.booking-panel {
    display: none;
}

.booking-panel.active {
    display: block;
    animation: bookingFadeIn 0.25s ease;
}

@keyframes bookingFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-panel h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.service-option,
.medic-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 0.65rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-option:hover,
.medic-option:hover {
    border-color: #7dd3fc;
}

.service-option.selected,
.medic-option.selected {
    border-color: var(--firma-primary);
    background: color-mix(in srgb, var(--firma-primary) 8%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--firma-primary) 20%, transparent);
}

.service-option .svc-name {
    font-weight: 700;
    color: #0f172a;
}

.service-option .svc-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem;
}

.slot-btn {
    padding: 0.65rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    line-height: 1.3;
}

.slot-btn small {
    display: block;
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.72rem;
}

.slot-btn:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.slot-btn.selected {
    border-color: var(--firma-primary);
    background: var(--firma-primary);
    color: #fff;
}

.slot-btn.selected small {
    color: rgba(255, 255, 255, 0.85);
}

.slot-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

.booking-summary {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.15rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}

.booking-summary dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.1rem;
}

.booking-summary dd {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.booking-summary dd:last-child {
    margin-bottom: 0;
}

.booking-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.booking-nav .btn-primary {
    background: linear-gradient(135deg, var(--firma-primary), var(--firma-primary-dark));
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
}

.booking-nav .btn-outline-secondary {
    border-radius: 50px;
    font-weight: 600;
}

.booking-result-page {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.booking-result-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.booking-result-icon.success {
    background: #d1fae5;
    color: #059669;
}

.booking-result-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.booking-result-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.booking-detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
    text-align: left;
    margin: 1.5rem 0;
}

.booking-detail-card p {
    margin-bottom: 0.5rem;
}

.booking-detail-card p:last-child {
    margin-bottom: 0;
}

.booking-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.booking-actions .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
}

@media (max-width: 576px) {
    .booking-steps li span.step-label {
        display: none;
    }

    .booking-body {
        padding: 1.25rem;
    }

    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}
</tool_call>