/*
 * AGENDO by Bedigi — Booking Page Styles
 * Inspired by Reservo & Buk — Card-centered booking flow
 */

/* =============================================
   PAGE LAYOUT
   ============================================= */
.booking-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f0ff 0%, #f8f7ff 40%, #faf9ff 100%);
    display: flex;
    flex-direction: column;
}

/* =============================================
   HERO / BANNER
   ============================================= */
.booking-hero {
    position: relative;
    width: 100%;
    background: var(--gray-900);
    overflow: hidden;
}

.booking-hero.has-banner {
    height: 220px;
}

.booking-hero:not(.has-banner) {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.booking-hero .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.booking-hero .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

/* Business identity */
.booking-identity {
    text-align: center;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
}

.booking-identity .biz-logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.625rem;
    overflow: hidden;
}

.booking-identity .biz-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-identity .biz-logo .logo-letter {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.booking-identity .biz-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* =============================================
   MAIN CARD
   ============================================= */
.booking-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 2rem;
}

.booking-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08), 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}

.booking-card-body {
    padding: 2rem 1.75rem;
}

/* =============================================
   STEP INDICATOR  (inside card top)
   ============================================= */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 1.75rem 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--gray-100);
    color: var(--gray-400);
    border: 2px solid var(--gray-200);
}

.step-item.active .step-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.step-item.completed .step-icon {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.step-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

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

.step-item.completed .step-label {
    color: var(--success);
}

.step-line {
    width: 3rem;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.25rem;
    margin-bottom: 1.25rem; /* align with icon center */
    transition: background 0.3s;
}

.step-line.done {
    background: var(--success);
}

/* =============================================
   SECTION TITLE
   ============================================= */
.booking-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.booking-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.category-tabs {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font);
}

.cat-tab:hover {
    color: var(--primary);
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.cat-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.cat-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--gray-200);
    color: var(--gray-600);
    transition: all 0.2s;
}

.cat-tab.active .cat-tab-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.cat-panel {
    display: none;
}

.cat-panel.active {
    display: block;
    animation: fadeTabIn 0.2s ease;
}

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

/* =============================================
   SERVICE LIST
   ============================================= */
.category-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

.category-label:first-child {
    margin-top: 0;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
}

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

.service-item:hover {
    background: var(--gray-50);
    color: inherit;
}

.service-item .svc-color {
    width: 3px;
    height: 2rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.service-item .svc-info {
    flex: 1;
    min-width: 0;
}

.service-item .svc-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

.service-item .svc-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-item .svc-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
    display: flex;
    gap: 0.75rem;
}

.service-item .svc-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    flex-shrink: 0;
}

.service-item .svc-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    font-size: 1rem;
    transition: color 0.15s;
}

.service-item:hover .svc-arrow {
    color: var(--primary);
}

/* =============================================
   PROFESSIONAL LIST
   ============================================= */
.prof-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prof-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.prof-item:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    color: inherit;
}

.prof-item .prof-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.prof-item .prof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-item .prof-info {
    flex: 1;
    min-width: 0;
}

.prof-item .prof-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

.prof-item .prof-title {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.prof-item .prof-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    transition: color 0.15s;
}

.prof-item:hover .prof-arrow {
    color: var(--primary);
}

.prof-item.any {
    border-style: dashed;
}

.prof-item.any .prof-avatar {
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 1.125rem;
}

/* =============================================
   CALENDAR PICKER (modern design)
   ============================================= */
.cal-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-100);
}

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

.cal-month {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    text-transform: capitalize;
}

.cal-nav {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cal-nav:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

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

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.cal-day-hdr {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-400);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    background: transparent;
    color: var(--gray-700);
    font-family: var(--font);
    position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--primary-50);
    color: var(--primary);
}

.cal-day.today {
    font-weight: 700;
    color: var(--primary);
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.cal-day.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.cal-day.selected::after {
    display: none;
}

.cal-day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.cal-day.empty {
    cursor: default;
    background: transparent;
}

/* =============================================
   TIME SLOTS (modern design)
   ============================================= */
.time-section {
    margin-top: 1.25rem;
}

.time-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.time-section-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.time-section-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

.time-period {
    margin-bottom: 1rem;
}

.time-period:last-child {
    margin-bottom: 0;
}

.time-period h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-period h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-100);
}

.time-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.375rem;
}

.time-btn {
    padding: 0.625rem 0.25rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    color: var(--gray-700);
    font-family: var(--font);
}

.time-btn:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--primary);
}

.time-btn.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.time-slots-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-400);
}

.no-slots {
    text-align: center;
    padding: 1.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* =============================================
   SELECTED SUMMARY CHIP
   ============================================= */
.selected-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.selected-chip .chip-label {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.selected-chip .chip-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.selected-chip .chip-price {
    font-weight: 600;
    color: var(--gray-700);
}

/* =============================================
   CONFIRM SECTION
   ============================================= */
.confirm-section .form-group {
    margin-bottom: 1rem;
}

.confirm-section .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    display: block;
}

.confirm-section .form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color 0.15s;
    font-family: var(--font);
}

.confirm-section .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.confirm-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.confirm-section .form-hint {
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* =============================================
   SUMMARY BOX (inside card)
   ============================================= */
.booking-summary-box {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 1rem 1.125rem;
    margin-top: 1.25rem;
}

.booking-summary-box .sum-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

.booking-summary-box .sum-row .sum-label {
    color: var(--gray-500);
}

.booking-summary-box .sum-row .sum-value {
    font-weight: 500;
    color: var(--gray-800);
}

.booking-summary-box .sum-row.sum-total {
    border-top: 1px solid var(--gray-200);
    margin-top: 0.375rem;
    padding-top: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* =============================================
   CTA BUTTON (full width in card)
   ============================================= */
.booking-cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font);
    margin-top: 1.25rem;
    text-decoration: none;
}

.booking-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

.booking-cta:active {
    transform: scale(0.99);
}

.booking-cta.cta-danger {
    background: var(--danger);
}

.booking-cta.cta-danger:hover {
    background: #dc2626;
}

.booking-cta.cta-secondary {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.booking-cta.cta-secondary:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

/* =============================================
   SUCCESS PAGE
   ============================================= */
.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.success-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.success-msg {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.success-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.8125rem;
}

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

.success-details .detail-row .dl {
    color: var(--gray-500);
}

.success-details .detail-row .dv {
    font-weight: 600;
    color: var(--gray-800);
}

.success-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.success-actions .booking-cta {
    flex: 1;
    margin-top: 0;
}

/* =============================================
   BACK LINK
   ============================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--primary);
}

/* =============================================
   FOOTER
   ============================================= */
.booking-footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.booking-footer a {
    color: var(--gray-400);
}

.booking-footer a:hover {
    color: var(--primary);
}

/* =============================================
   CANCEL PAGE EXTRA
   ============================================= */
.cancel-warning {
    background: var(--warning-bg);
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: #92400e;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 560px) {
    .booking-card {
        border-radius: 1rem 1rem 0 0;
        box-shadow: 0 -2px 24px rgba(0,0,0,0.06);
    }

    .booking-card-body {
        padding: 1.5rem 1.25rem;
    }

    .step-indicator {
        padding: 1.25rem 1rem 0;
    }

    .step-line {
        width: 2rem;
    }

    .step-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }

    .booking-hero.has-banner {
        height: 160px;
    }

    .booking-hero:not(.has-banner) {
        height: 90px;
    }

    .booking-identity {
        margin-top: -2.25rem;
        margin-bottom: 1rem;
    }

    .booking-identity .biz-logo {
        width: 4.5rem;
        height: 4.5rem;
    }

    .booking-identity .biz-name {
        font-size: 1.125rem;
    }

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

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

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

    .cal-wrapper {
        padding: 1rem;
    }

    .category-tabs {
        gap: 0.25rem;
    }

    .cat-tab {
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ── Review / Confirmation Page ── */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    background: #f5f6f8;
    border-radius: 16px;
    padding: 1rem;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.review-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8f0;
}

.review-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-label {
    font-size: 0.75rem;
    color: #8b8fa3;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.review-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
}

.review-price {
    font-size: 0.8125rem;
    color: #8b8fa3;
    font-weight: 400;
    margin-left: 0.5rem;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    align-items: stretch;
}

.review-btn-back {
    flex: 0 0 auto;
    padding: 0 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #f5f6f8;
    color: #555;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-btn-back:hover {
    background: #eaeaec;
}

.cta-confirm {
    flex: 1;
    width: 100%;
    padding: 1.05rem 2rem;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cta-confirm:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.review-footer-note {
    text-align: center;
    color: #8b8fa3;
    font-size: 0.8125rem;
    margin-top: 1.5rem;
}

/* ── Dados (Personal Data) Page ── */
.dados-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f0f0ff;
    color: var(--primary);
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.dados-chip svg {
    width: 14px;
    height: 14px;
}

.dados-form .form-group {
    margin-bottom: 1.25rem;
}

.dados-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.375rem;
}

.dados-form input,
.dados-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.dados-form input:focus,
.dados-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.dados-form .cta-confirm {
    width: 100%;
    margin-top: 0.5rem;
}

/* Continue section on datetime page */
#continueSection {
    margin-top: 2rem;
    text-align: center;
}

#continueSection .cta-confirm {
    display: inline-block;
    text-decoration: none;
    padding: 0.875rem 2.5rem;
}

/* ── Confirm Loading Overlay ── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-overlay-content {
    text-align: center;
}

.confirm-overlay-content p {
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.confirm-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: confirmSpin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* ── Success Page Redesign ── */
.success-card {
    text-align: center;
    padding: 1rem 0;
}

.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
    animation: successPop 0.5s ease-out;
}

.success-check svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.375rem;
}

.success-card .success-subtitle {
    color: #8b8fa3;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.success-details-card {
    background: #f5f6f8;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    text-align: left;
    margin-bottom: 2rem;
}

.success-detail-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.875rem 1rem;
}

.success-detail-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.success-detail-text {
    flex: 1;
    min-width: 0;
}

.success-detail-label {
    font-size: 0.6875rem;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.1rem;
}

.success-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.success-actions .cta-confirm {
    width: 100%;
    text-decoration: none;
    text-align: center;
    display: block;
}

.success-actions .success-btn-secondary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.2s;
}

.success-actions .success-btn-secondary:hover {
    background: #f5f6f8;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 999px;
    padding: 0.3rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.success-badge svg {
    width: 14px;
    height: 14px;
}
