:root {
    /* One font stack reused everywhere — calendar / verify / done all match.
       Plus Jakarta Sans: geometric sans-serif with excellent Vietnamese diacritic
       rendering. Loaded from Google Fonts in meeting.html. */
    --font-stack: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --booking-grid-cols: minmax(280px, 380px) minmax(380px, 1fr);
    --booking-grid-gap: 1.5rem;
}

html, body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font-stack);
    background: #f4f7fb;
    color: #121212;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

button { font: inherit; }

.booking-page {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem 2rem;
}

.booking-header {
    display: grid;
    grid-template-columns: var(--booking-grid-cols);
    gap: var(--booking-grid-gap);
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 80px rgba(39, 42, 53, 0.08);
    margin-bottom: 1.5rem;
}

.brand {
    grid-column: 1;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-company-banner {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    pointer-events: none;
}

.header-company-text {
    position: relative;
    /* Xếp 2 lớp chữ (nền + vệt sáng) vào CÙNG 1 ô lưới → luôn trùng khít,
       không còn lệch hàng do padding như cách dùng position:absolute trước đây. */
    display: inline-grid;
    place-items: center;
    padding: 0.42rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.header-company-base,
.header-company-shine {
    grid-area: 1 / 1; /* cùng ô → 2 lớp chữ chồng khít lên nhau */
    display: block;
    font-size: clamp(0.68rem, 1.35vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

/* Chữ trắng — đọc rõ trên nền gradient tím→xanh, không animation */
.header-company-base {
    background: linear-gradient(135deg, #ffffff 0%, #ede9fe 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Chỉ vệt sáng chạy qua — trong suốt ở chỗ không có highlight.
   Nằm chồng lên lớp nền nhờ grid-area:1/1 (không dùng absolute nữa). */
.header-company-shine {
    pointer-events: none;
    color: transparent;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.35) 46%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.35) 54%,
        transparent 62%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: companyShine 7s linear infinite;
}

@keyframes companyShine {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .header-company-shine {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 720px) {
    .header-company-base,
    .header-company-shine {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 520px) {
    .header-company-banner {
        display: none;
    }
}

.brand-icon {
    /* Default ("KS" text fallback): solid 54×54 gradient pill */
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f6fe8 0%, #3e9fff 100%);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow: hidden;
}

/* When a logo image is present, the box adapts to the image's natural aspect ratio.
   Height stays at 54px (header rhythm); width grows up to ~240px so wide logos look right. */
.brand-icon:has(img) {
    background: transparent;
    width: auto;
    min-width: 0;
    max-width: 240px;
    border-radius: 12px;
    padding: 0;
}

.brand-icon img {
    height: 100%;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Goodfirms horizontal logo — icon + wordmark in one image */
.brand-goodfirms {
    gap: 0;
    flex: 1;
}

.brand-goodfirms .brand-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-goodfirms .brand-logo-wrap img {
    height: 42px;
    width: auto;
    max-width: min(220px, 52vw);
    object-fit: contain;
    display: block;
}

.brand-goodfirms .brand-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 0 1.35rem;
    flex-shrink: 0;
}

.brand-goodfirms .brand-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}

.brand-goodfirms .brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
}

.brand-goodfirms .brand-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: -0.01em;
}

@media (max-width: 560px) {
    .brand-goodfirms .brand-divider {
        margin: 0 0.85rem;
        height: 28px;
    }
    .brand-goodfirms .brand-logo-wrap img {
        height: 34px;
    }
    .brand-goodfirms .brand-subtitle {
        font-size: 0.88rem;
        white-space: normal;
    }
}

.booking-main {
    display: grid;
    gap: var(--booking-grid-gap);
    grid-template-columns: var(--booking-grid-cols);
}

.booking-card,
.booking-calendar {
    background: white;
    border-radius: 28px;
    padding: 1.65rem;
    box-shadow: 0 16px 50px rgba(39, 42, 53, 0.08);
}

.profile-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f6fe8, #3e9fff);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}

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

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    vertical-align: middle;
    animation: verifiedPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               verifiedPulse 2.4s ease-in-out 0.55s infinite;
}

.verified-badge-svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(24, 119, 242, 0.35));
}

.verified-badge-bg {
    fill: #1877F2;
}

.verified-badge-check {
    fill: #fff;
}

.verified-badge-shine {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 62%
    );
    opacity: 0;
    pointer-events: none;
    animation: verifiedShine 2.8s ease-in-out 1s infinite;
}

@keyframes verifiedPop {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-12deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes verifiedPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

@keyframes verifiedShine {
    0%, 72%, 100% {
        opacity: 0;
        transform: translateX(-130%) rotate(25deg);
    }
    78% {
        opacity: 0.85;
    }
    88% {
        opacity: 0;
        transform: translateX(130%) rotate(25deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .verified-badge {
        animation: none;
    }

    .verified-badge-shine {
        animation: none;
        display: none;
    }
}

.profile-role {
    color: #6b7280;
    font-size: 0.95rem;
}

.meeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f2f8ff;
    color: #0f4db4;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.details-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: center;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef5ff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.detail-label {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

#timezone-value {
    display: block;
    min-height: 1.35rem;
}

.detail-value-loading {
    color: #94a3b8;
    font-weight: 500;
}

.booking-note {
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.booking-note[hidden] {
    display: none !important;
}

.booking-note-line {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.booking-note-line:last-child {
    margin-bottom: 0;
}

.booking-note-check {
    flex-shrink: 0;
    color: #0f4db4;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.calendar-month {
    color: #6b7280;
    font-weight: 600;
}

.calendar-panel {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 24px;
    background: #f8fbff;
    margin-bottom: 1.5rem;
    min-height: 15rem;
}

.weekday-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    gap: 0.35rem;
    color: #6b7280;
    letter-spacing: 0.12em;
    font-size: 0.84rem;
    margin-bottom: 0.85rem;
    min-height: 1.25rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    min-height: 12rem;
}

.day-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: white;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    min-height: 58px;
}

.day-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.day-button.selected {
    background: #eff6ff;
    border-color: #93c5fd;
}

/* No bookable time-slots remain on this date (today past 10pm). */
.day-button.disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.55;
    text-decoration: line-through;
}
.day-button.disabled:hover {
    transform: none;
    box-shadow: none;
}
.day-button.disabled .day-week,
.day-button.disabled .day-num { color: #9ca3af; }

.day-button .day-week {
    font-size: 11px;
    color: #6b7280;
    line-height: 1;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.day-button .day-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.time-panel { margin-bottom: 0.85rem; }

.time-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    min-height: 0;
}

.selection-summary {
    margin: 0 0 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
    color: #334155;
}

.time-grid button {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1.24rem 0.9rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.time-grid button.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0f172a;
}

.time-grid button:hover { background: #eef2ff; }

.time-empty {
    grid-column: 1 / -1;
    padding: 1.25rem;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.continue-button {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 14px;
    background: #0f4db4;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.continue-button:hover { background: #0b41a8; }

/* ───── Booking form (step 2) ───── */
.booking-form {
    background: white;
    border-radius: 28px;
    padding: 1.65rem;
    box-shadow: 0 16px 50px rgba(39, 42, 53, 0.08);
}

.booking-form[hidden] { display: none !important; }

.back-button {
    background: none;
    border: none;
    color: #0f4db4;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    margin: -0.4rem 0 0.85rem -0.6rem;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.back-button:hover { background: #eff6ff; }

.form-header { margin-bottom: 1.5rem; }

.form-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.form-sub {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-sub strong { color: #0f172a; }

.form-fields {
    display: grid;
    gap: 1.15rem;
}

.form-field { display: grid; gap: 0.45rem; }

.form-field label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1f2937;
}

.req { color: #dc2626; margin-left: 2px; }

.form-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 0.98rem;
    color: #0f172a;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-field input::placeholder { color: #94a3b8; }

.form-field input:hover { border-color: #bfdbfe; }

.form-field input:focus {
    outline: none;
    border-color: #1f6fe8;
    background: white;
    box-shadow: 0 0 0 4px rgba(31, 111, 232, 0.12);
}

.form-field input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.field-hint {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

.form-msg {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-msg.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-msg.loading {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #bae6fd;
    border-top-color: #0369a1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.loading-text strong {
    font-variant-numeric: tabular-nums;
    color: #0c4a6e;
}

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

/* ───── Booking verify (step 3) ───── */
.booking-verify {
    background: white;
    border-radius: 28px;
    padding: 2rem 1.8rem;
    box-shadow: 0 16px 50px rgba(39, 42, 53, 0.08);
    text-align: center;
}

.booking-verify[hidden] { display: none !important; }

.verify-header { margin-bottom: 1.75rem; text-align: center; }

.verify-shield {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e8f0fe 0%, #d2e3fc 100%);
    color: #1a73e8;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.18),
                inset 0 0 0 1px rgba(26, 115, 232, 0.12);
}

#step-verify:not([hidden]) .verify-shield {
    animation:
        verifyShieldEnter 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both,
        verifyShieldGlow 2.8s ease-in-out 0.75s infinite;
}

#step-verify:not([hidden]) .verify-shield svg {
    animation: verifyShieldIconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.verify-shield::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 62%
    );
    transform: translateX(-130%) rotate(20deg);
    pointer-events: none;
}

#step-verify:not([hidden]) .verify-shield::after {
    animation: verifyShieldShine 0.85s ease-out 0.45s both;
}

@keyframes verifyShieldEnter {
    0% {
        transform: scale(0.35);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes verifyShieldGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(26, 115, 232, 0.18),
                    inset 0 0 0 1px rgba(26, 115, 232, 0.12);
    }
    50% {
        box-shadow: 0 12px 36px rgba(26, 115, 232, 0.34),
                    inset 0 0 0 1px rgba(26, 115, 232, 0.22);
    }
}

@keyframes verifyShieldIconPop {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes verifyShieldShine {
    0% { transform: translateX(-130%) rotate(20deg); }
    100% { transform: translateX(130%) rotate(20deg); }
}

#step-verify:not([hidden]) .verify-header h2 {
    animation: verifyTextFade 0.5s ease 0.28s both;
}

#step-verify:not([hidden]) .verify-sub {
    animation: verifyTextFade 0.5s ease 0.38s both;
}

@keyframes verifyTextFade {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy lock icon (kept so older JS/HTML paths still render). */
.verify-icon {
    width: 64px; height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f6fe8, #3e9fff);
    color: white;
    display: grid; place-items: center;
    font-size: 1.65rem;
    box-shadow: 0 12px 30px rgba(31, 111, 232, 0.25);
}

.verify-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #202124;
    letter-spacing: -0.01em;
}

.verify-sub {
    margin: 0;
    color: #5f6368;
    line-height: 1.55;
    font-size: 0.95rem;
}

.verify-summary {
    text-align: left;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 0.4rem 0.25rem;
    margin: 1.5rem 0 1.5rem;
    display: grid;
}

/* ─── Verify checklist (replaces summary box; nudges user to the Google button) ─── */
.verify-checklist {
    list-style: none;
    margin: 1.5rem 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}

.vchk-step {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border: 1px solid #e8eaed;
    background: #fff;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.vchk-step:first-child { border-radius: 12px 12px 0 0; border-bottom: 0; }
.vchk-step:not(:first-child):not(:last-child) { border-radius: 0; border-bottom: 0; }
.vchk-step:last-child  { border-radius: 0 0 12px 12px; }
.vchk-step:only-child  { border-radius: 12px; }

/* Vertical connector between bullets */
.vchk-step + .vchk-step::before {
    content: '';
    position: absolute;
    left: calc(1rem + 15px);
    width: 2px;
    height: 14px;
    background: #dadce0;
    transform: translateY(-50%);
    transform-origin: top center;
    margin-top: -0.9rem;
    transition: background 0.35s ease;
}

.vchk-step.done + .vchk-step::before {
    background: #34a853;
}

#step-verify:not([hidden]) .vchk-step.done + .vchk-step::before {
    animation: vchkLineGrow 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

#step-verify:not([hidden]) .vchk-step.done:first-child + .vchk-step::before {
    animation-delay: 0.62s;
}

.vchk-bullet {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

/* DONE state — green check */
.vchk-step.done {
    background: #f6fbf8;
}

#step-verify:not([hidden]) .vchk-step.done {
    animation: vchkStepDoneFlash 0.55s ease both;
}

.vchk-step.done .vchk-bullet {
    background: #34a853;
    color: #fff;
}

#step-verify:not([hidden]) .vchk-step.done .vchk-bullet {
    animation: vchkBulletPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#step-verify:not([hidden]) .vchk-step.done:first-child .vchk-bullet {
    animation-delay: 0.38s;
}

#step-verify:not([hidden]) .vchk-step.done .vchk-bullet svg {
    animation: vchkCheckPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.14s both;
}

#step-verify:not([hidden]) .vchk-step.done:first-child .vchk-bullet svg {
    animation-delay: 0.52s;
}

.vchk-step.done .vchk-bullet::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(52, 168, 83, 0.55);
    pointer-events: none;
}

#step-verify:not([hidden]) .vchk-step.done .vchk-bullet::after {
    animation: vchkDoneRing 0.65s ease-out both;
}

#step-verify:not([hidden]) .vchk-step.done:first-child .vchk-bullet::after {
    animation-delay: 0.38s;
}

@keyframes vchkBulletPop {
    0% {
        transform: scale(0.45);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.45);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(52, 168, 83, 0);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes vchkCheckPop {
    0% {
        transform: scale(0.15) rotate(-22deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(4deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes vchkDoneRing {
    0% {
        transform: scale(0.75);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

@keyframes vchkLineGrow {
    0% {
        transform: translateY(-50%) scaleY(0);
        opacity: 0.35;
    }
    100% {
        transform: translateY(-50%) scaleY(1);
        opacity: 1;
    }
}

@keyframes vchkStepDoneFlash {
    0% { background: #dcfce7; }
    100% { background: #f6fbf8; }
}

/* ACTIVE state — pulsing blue ring + index number */
.vchk-step.active {
    background: linear-gradient(135deg, #eff6ff 0%, #e8f0fe 100%);
    border-color: #aecbfa;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.08), 0 4px 16px rgba(26, 115, 232, 0.12);
}
.vchk-step.active .vchk-bullet {
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: var(--font-stack);
    position: relative;
}

/* PENDING state — step 3 preview (violet, not flat gray) */
.vchk-step.pending {
    background: #fafafa;
}
.vchk-step.pending .vchk-bullet {
    background: #f1f3f4;
    color: #80868b;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: var(--font-stack);
}

#vchk-step-google.pending {
    background: linear-gradient(135deg, #faf8ff 0%, #f5f3ff 100%);
    border-color: #ddd6fe;
}
#vchk-step-google.pending .vchk-bullet {
    background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid #c4b5fd;
    position: relative;
}
#vchk-step-google.pending .vchk-title {
    color: #5b21b6;
}
#vchk-step-google.pending .vchk-meta {
    color: #7c3aed;
}

/* ACTIVE step 3 — violet theme (distinct from step 2 blue) */
.vchk-step.active.active-google {
    background: linear-gradient(135deg, #f5f0ff 0%, #ede9fe 100%);
    border-color: #c4b5fd;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.1), 0 4px 18px rgba(124, 58, 237, 0.18);
}
.vchk-step.active.active-google .vchk-bullet {
    background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 55%, #6d28d9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 3px 12px rgba(109, 40, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}
.vchk-step.active.active-google .vchk-pulse {
    background: rgba(124, 58, 237, 0.35);
}
.vchk-step.active.active-google .vchk-title {
    color: #5b21b6;
}
.vchk-step.active.active-google .vchk-meta {
    color: #7c3aed;
    font-weight: 500;
}
.vchk-step.active.active-google .vchk-arrow {
    color: #7c3aed;
}

.vchk-num { position: relative; z-index: 1; }
.vchk-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.25);
    animation: vchkPulse 1.8s ease-out infinite;
    pointer-events: none;
}
.vchk-pulse-violet {
    background: rgba(124, 58, 237, 0.32);
}

@keyframes vchkPulse {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #step-verify:not([hidden]) .verify-shield,
    #step-verify:not([hidden]) .verify-shield svg,
    #step-verify:not([hidden]) .verify-shield::after,
    #step-verify:not([hidden]) .verify-header h2,
    #step-verify:not([hidden]) .verify-sub,
    #step-verify:not([hidden]) .vchk-step.done,
    #step-verify:not([hidden]) .vchk-step.done .vchk-bullet,
    #step-verify:not([hidden]) .vchk-step.done .vchk-bullet svg,
    #step-verify:not([hidden]) .vchk-step.done .vchk-bullet::after,
    #step-verify:not([hidden]) .vchk-step.done + .vchk-step::before {
        animation: none !important;
    }
    .vchk-pulse,
    .vchk-arrow {
        animation: none !important;
    }
}

.vchk-content {
    min-width: 0;
}
.vchk-title {
    font-family: var(--font-stack);
    font-weight: 500;
    color: #202124;
    font-size: 0.96rem;
    margin-bottom: 0.15rem;
}
.vchk-meta {
    font-size: 0.84rem;
    color: #5f6368;
}
.vchk-step.active .vchk-meta {
    color: #5f6368;
    font-weight: 400;
}

.vchk-form-sections {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.85rem;
}

.vchk-form-section + .vchk-form-section {
    padding-top: 0.15rem;
    border-top: 1px solid #e8eaed;
}

.vchk-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3c4043;
    letter-spacing: 0.01em;
    margin-bottom: 0.15rem;
}

.vchk-step.done .vchk-form-sections input,
.vchk-step.done .phone-field {
    pointer-events: none;
    opacity: 0.85;
}

#vchk-step-info.done .vchk-form-sections input,
#vchk-step-info.done .phone-field {
    pointer-events: auto;
    opacity: 1;
}

.vchk-field {
    margin-top: 0.75rem;
}

.vchk-form-section .vchk-field:first-of-type {
    margin-top: 0.55rem;
}

.vchk-field label {
    display: block;
    font-size: 0.88rem;
    color: #202124;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.35;
}

.vchk-field label .req {
    color: #ea4335;
    margin-left: 0.15rem;
    font-weight: 700;
}

.vchk-field label .label-hint {
    display: inline;
    margin-left: 0.25rem;
    font-size: 0.78rem;
    font-weight: 400;
    color: #5f6368;
}

.vchk-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fff;
    color: #202124;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vchk-field input::placeholder { color: #94a3b8; }

.vchk-field input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.vchk-field input.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.vchk-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.vchk-field input[type="number"]::-webkit-outer-spin-button,
.vchk-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #dadce0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-field:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.phone-field.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.7rem;
    background: #f8f9fa;
    border-right: 1px solid #dadce0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3c4043;
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-field input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    box-shadow: none;
}

.phone-field input:focus {
    box-shadow: none;
}

.vchk-cv-field {
    margin-top: 0.85rem;
}

.cv-upload-label {
    display: block;
    font-size: 0.88rem;
    color: #202124;
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.35;
}

.cv-upload-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.vchk-step.done .vchk-cv-field {
    pointer-events: none;
    opacity: 0.85;
}

.cv-upload-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    border: 1.5px dashed #93c5fd;
    border-radius: 10px;
    background: #f0f7ff;
    color: #1e3a8a;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cv-upload-box.invalid {
    border-color: #fca5a5;
    background: #fef2f2;
}

.cv-upload-btn {
    flex-shrink: 0;
    padding: 0.72rem 1rem;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    background: #fff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cv-upload-btn:hover {
    background: #eff6ff;
    border-color: #60a5fa;
}

.cv-upload-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.cv-upload-icon {
    flex-shrink: 0;
    color: #64748b;
}

.cv-upload-placeholder {
    color: #64748b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-upload-name {
    flex: 1;
    min-width: 0;
    color: #202124;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-upload-name:empty {
    display: none;
}

.cv-upload-box.has-file .cv-upload-placeholder {
    display: none;
}

.cv-upload-error {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #dc2626;
    font-weight: 500;
}

.cv-upload-error[hidden] {
    display: none !important;
}

.vchk-step.done .vchk-meta {
    color: #1e8e3e;
    font-weight: 500;
}

/* Arrow pointing down to the Google button */
.vchk-arrow {
    color: #1a73e8;
    animation: vchkArrowBounce 1.6s ease-in-out infinite;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
@keyframes vchkArrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(4px); opacity: 1; }
}

.verify-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}
.verify-summary-row:last-child { border-bottom: 0; }
.verify-summary-row[hidden] { display: none; }

.vsum-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #5f6368;
    font-weight: 400;
}
.vsum-icon { color: #80868b; flex-shrink: 0; }
.verify-summary-row strong {
    color: #202124;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}
.vsum-pending { font-weight: 400 !important; color: #80868b !important; }
.vsum-placeholder { font-style: italic; font-size: 0.86rem; }

.download-document-button .download-doc-icon {
    color: #0f4db4;
    flex-shrink: 0;
}

.google-signin-button {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 999px;            /* Material pill */
    background: #ffffff;
    color: #3c4043;                  /* fix: dark text on white (was invisible) */
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --mana-fill: 0%;
}

/* Mana fill INSIDE the button — matches verify-icon gradient (#1f6fe8 → #3e9fff).
   --mana-fill (0%–100%) is the target width.
   --mana-speed controls the transition duration (JS swaps 0s / 0.5s / 90s per phase). */
.google-signin-button::before {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--mana-fill);
    background: linear-gradient(90deg, #3e9fff 0%, #2680f0 50%, #1f6fe8 100%);
    box-shadow: inset 0 0 16px rgba(31, 111, 232, 0.45);
    opacity: 0.78;
    transition: width var(--mana-speed, 2s) cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
    pointer-events: none;
}

/* Keep text + logo above the fill */
.google-signin-button > * {
    position: relative;
    z-index: 1;
}

/* Live mana percentage shown at the right edge of the button */
.google-signin-button .mana-percent {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #0c4a6e;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.15);
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.02em;
    min-width: 38px;
    text-align: center;
}

.google-signin-button:hover:not(:disabled) {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16), 0 2px 6px rgba(60, 64, 67, 0.08);
    background: #f8faff;
    border-color: #c6d4ff;
}

.google-signin-button:active:not(:disabled) {
    background: #eef3ff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
}

.google-signin-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.32);
}

.google-signin-button:disabled {
    cursor: not-allowed;
    background: #f8fafc;
}

/* ── Gentle continuous side-to-side sway: signals "you can click now" ── */
.google-signin-button.flash {
    border-color: #0ea5e9;
    background: #f0f9ff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.22),
                0 6px 22px rgba(2, 132, 199, 0.35);
    animation: btnGentleSway 2.2s ease-in-out infinite;
}

@keyframes btnGentleSway {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-6px); }
    50%  { transform: translateX(0); }
    75%  { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

.google-logo { flex-shrink: 0; width: 20px; height: 20px; }

.verify-footer {
    margin-top: 1rem;
    min-height: 4.5rem;
}

.verify-hint {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.6;
    text-align: center;
}

.verify-hint[hidden] {
    display: none !important;
}

.google-signin-button.is-auto-downloading .mana-percent {
    position: static;
    transform: none;
    display: inline-block !important;
    vertical-align: baseline;
    margin: 0 0 0 0.2rem;
    padding: 1px 7px;
    min-width: 2.5rem;
    font-size: 0.78rem;
    visibility: visible;
    opacity: 1;
}

.google-signin-button.is-auto-downloading {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.google-signin-button.is-auto-downloading.is-download-progress .mana-percent {
    position: static;
    transform: none;
    display: inline-block;
    vertical-align: baseline;
    margin: 0 0 0 0.2rem;
    padding: 1px 7px;
    min-width: 2.5rem;
    font-size: 0.78rem;
}

.google-signin-button.is-auto-downloading .auto-download-msg {
    display: inline;
}

.google-signin-button.is-auto-downloading .auto-download-msg.download-shimmer-text {
    display: inline;
    font-weight: 600;
    background: linear-gradient(
        90deg,
        #64748b 0%,
        #64748b 38%,
        #6366f1 50%,
        #64748b 62%,
        #64748b 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: download-shimmer-sweep 2.4s linear infinite;
}

.google-signin-button.is-auto-downloading .download-doc-icon {
    display: none;
}

.google-signin-button.is-auto-downloading [data-i18n="download_btn"] {
    flex: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    font-size: 0.82rem;
    font-weight: 600;
}

.google-signin-button.is-auto-downloading.is-download-progress [data-i18n="download_btn"] {
    opacity: 1;
    color: #334155;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.google-signin-button.is-auto-downloading.is-download-progress .auto-download-msg {
    color: #334155;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    animation: none;
}

@keyframes download-shimmer-sweep {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ───── Booking done (step 4) ───── */
.booking-done {
    background: white;
    border-radius: 28px;
    padding: 2.25rem 1.8rem;
    box-shadow: 0 16px 50px rgba(39, 42, 53, 0.08);
    text-align: center;
}

.booking-done[hidden] { display: none !important; }

.done-icon {
    margin: 0 auto 1rem;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: #ecfdf5;
    display: grid;
    place-items: center;
    animation: doneIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes doneIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.done-title {
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
    color: #047857;
}

.done-message {
    margin: 0 0 1.5rem;
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

.done-summary {
    text-align: left;
    background: #f8fbff;
    border: 1px solid #e0ecff;
    border-radius: 18px;
    padding: 1rem 1.15rem;
    display: grid;
    gap: 0.6rem;
    max-width: 420px;
    margin: 0 auto;
}

.done-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.95rem;
}

.done-summary-row span { color: #6b7280; }
.done-summary-row strong { color: #0f172a; font-weight: 600; }

@media (max-width: 940px) {
    .booking-header,
    .booking-main {
        grid-template-columns: 1fr;
    }

    .header-company-banner {
        grid-column: 1;
    }
}

@media (max-width: 560px) {
    .booking-header,
    .booking-card,
    .booking-calendar,
    .booking-form {
        border-radius: 20px;
        padding: 1.25rem;
    }
    .days-grid {
        gap: 4px;
    }
    .day-button {
        min-height: 48px;
        padding: 0.5rem 0.25rem;
        border-radius: 12px;
    }
    .day-button .day-num {
        font-size: 15px;
    }
    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
