/* Conclave page: hero "Join the Conversation" CTA (matches the CSC/Home gold CTA)
   and the registration popup (Figma 2779:7987 "Conclave 2027 registration"). */

/* ===== Hero CTA ===== */
.hero-actions .hero-register-btn {
    gap: 10px;
    height: 46px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 1000px;
    background: #f5b123;
    color: #00123a;
    font: 700 16px/1.2 Helvetica, 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    transition: background-color 200ms ease;
}
.hero-actions .hero-register-btn:hover { background: #e39e0e; }
.hero-actions .hero-register-btn svg {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 200ms ease;
}
.hero-actions .hero-register-btn:hover svg { transform: translateX(2px); }
.hero-actions .hero-register-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ===== Registration popup ===== */
dialog.cr-modal {
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: .6px solid #ccd9e0;
    border-radius: 5px;
    background: #fafaf8;
    color: #194668;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
dialog.cr-modal::backdrop { background: rgba(0, 18, 58, .6); }
dialog.cr-modal[open] { animation: cr-in 220ms ease-out; }
@keyframes cr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cr-modal *, .cr-modal *::before, .cr-modal *::after { box-sizing: border-box; }
.cr-modal p, .cr-modal h2, .cr-modal h3, .cr-modal fieldset, .cr-modal legend { margin: 0; padding: 0; }
.cr-modal fieldset { border: 0; min-width: 0; }
.cr-star { color: #d96b65; }
.cr-modal .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.cr-header {
    position: relative;
    display: flex; flex-direction: column; gap: 24px;
    padding: 32px;
    overflow: hidden;
    background: linear-gradient(90deg, #00123a 0%, #073763 100%);
}
.cr-pattern {
    position: absolute; top: -1px; left: 495px;
    width: 225px; height: 280px; max-width: none;
    object-fit: cover; opacity: .14; pointer-events: none;
}
.cr-topbar { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cr-title-group { display: flex; flex-direction: column; gap: 4px; }
.cr-modal .cr-title { font: 400 40px/normal 'DM Serif Text', Georgia, serif; color: #fff; }
.cr-modal .cr-subtitle { margin-bottom: 1.4em; font-size: 14px; line-height: 1.4; color: #d5d5d5; }
.cr-modal .cr-close {
    position: static;
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 16px;
    background: rgba(0, 23, 64, .55); color: #fff; cursor: pointer;
    transition: background-color 200ms ease;
}
.cr-modal .cr-close:hover { background: rgba(0, 23, 64, .85); }
.cr-close svg { width: 16px; height: 16px; }
.cr-details { position: relative; display: flex; gap: 16px; }
.cr-card {
    flex: 1 0 0; min-width: 1px;
    display: flex; flex-direction: column; gap: 8px;
    padding: 16px;
    border: 1px solid #03254f; border-radius: 8px;
    background: #001740;
}
.cr-card-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; color: #d5d5d5; }
.cr-card-label svg { width: 16px; height: 16px; flex: none; }
.cr-modal .cr-card-value { font-size: 16px; font-weight: 500; color: #fff; }

/* Icons (Lucide set used in the Figma file) */
.cr-modal svg.cr-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Body */
.cr-body {
    display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 271fr);
    gap: 6px; padding: 10px 3px;
}
.cr-panel { border: .6px solid #e1e8ed; border-radius: 4px; min-height: 570px; }
.cr-panel--form { padding: 7px 10px; }
.cr-panel--side { display: flex; flex-direction: column; gap: 6px; padding: 10px; }

.cr-modal .cr-form-title { font: 400 14px/normal 'DM Serif Text', Georgia, serif; color: #194668; }
.cr-modal .cr-form-note { font-size: 10px; line-height: 1.6; color: #63839b; }
.cr-form-head { margin-bottom: 12px; }

.cr-section { display: flex; flex-direction: column; gap: 10px; }
.cr-section--basic { padding: 7px 0 12px; margin-bottom: 12px; }
.cr-section--academic { padding-top: 6px; }
.cr-section-heading { display: flex; align-items: center; gap: 7px; font: 400 12px/normal 'DM Serif Text', Georgia, serif; color: #194668; }
.cr-badge {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #073458; color: #fff; font: 400 8px/normal 'DM Serif Text', Georgia, serif;
}

.cr-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cr-label { display: flex; align-items: flex-start; justify-content: space-between; font-size: 11px; font-weight: 500; line-height: 1.3; color: #194668; }
.cr-optional { font-size: 9px; font-weight: 400; line-height: normal; color: #63839b; }
.cr-control { position: relative; }
.cr-modal .cr-input {
    display: block; width: 100%; height: 34px; margin: 0; padding: 0 10px;
    border: .65px solid #d3dfe7; border-radius: 2px;
    background: transparent; color: #194668;
    font: 400 11px/normal 'Helvetica Neue', Helvetica, Arial, sans-serif;
    outline: none; box-shadow: none;
    transition: border-color 150ms ease;
}
.cr-modal .cr-input::placeholder { color: #63839b; opacity: 1; }
.cr-modal .cr-input:focus { border-color: #073458; }
.cr-modal select.cr-input { appearance: none; -webkit-appearance: none; padding-right: 24px; cursor: pointer; }
.cr-modal select.cr-input:invalid { color: #63839b; }
.cr-modal select.cr-input option { color: #194668; }
.cr-chevron { position: absolute; top: 50%; right: 10px; width: 5px; height: 5px; color: #63839b; transform: translateY(-50%); pointer-events: none; }
.cr-row { display: flex; gap: 9px; }
.cr-row > .cr-field { flex: 1 0 0; }

.cr-gender { display: flex; flex-direction: column; gap: 6px; }
.cr-gender legend { float: left; width: 100%; margin-bottom: 6px; font-size: 11px; font-weight: 500; line-height: 1.3; color: #194668; }
.cr-gender legend + * { clear: both; }
.cr-radio-rows { display: flex; flex-direction: column; gap: 8px; }
.cr-radio-row { display: flex; align-items: flex-start; }
.cr-radio { display: flex; align-items: center; gap: 4px; flex: none; font-size: 11px; color: #63839b; white-space: nowrap; cursor: pointer; }
.cr-radio input {
    appearance: none; -webkit-appearance: none; flex: none;
    width: 11px; height: 11px; margin: 0;
    border: .8px solid #63839b; border-radius: 50%; background: transparent; cursor: pointer;
    display: grid; place-content: center;
}
.cr-radio input::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #073458; transform: scale(0); transition: transform 120ms ease; }
.cr-radio input:checked { border-color: #073458; }
.cr-radio input:checked::before { transform: scale(1); }
.cr-radio input:checked + span { color: #194668; }
.cr-radio input:focus-visible, .cr-check input:focus-visible { outline: 2px solid #f5b123; outline-offset: 2px; }
.cr-gender-other { margin-top: 2px; }

.cr-error { min-height: 0; font-size: 9px; line-height: 1.3; color: #d96b65; }
.cr-error:empty { display: none; }
.cr-field.is-invalid .cr-input { border-color: #d96b65; }

/* Side column */
.cr-intro { display: flex; flex-direction: column; gap: 3px; }
.cr-modal .cr-intro p:not(.cr-section-heading) { font-size: 9px; line-height: 1.3; color: #63839b; }
.cr-discussion { display: flex; align-items: flex-start; gap: 8px; padding: 7px; border-radius: 4px; background: #e9f1f7; }
.cr-discussion-icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 23px; height: 23px; border: .5px solid #c7d8e6; border-radius: 50%; color: #194668;
}
.cr-discussion-icon svg { width: 15px; height: 15px; }
.cr-discussion-copy { display: flex; flex-direction: column; gap: 3px; flex: 1 0 0; min-width: 1px; }
.cr-modal .cr-discussion-copy h3 { font: 400 10px/1.3 'DM Serif Text', Georgia, serif; color: #194668; }
.cr-modal .cr-discussion-copy .cr-kicker { font: 400 8px/normal 'DM Serif Text', Georgia, serif; color: #63839b; }
.cr-modal .cr-discussion-copy p:last-child { font-size: 9px; line-height: 1.42; color: #63839b; }

/* Figma 2779:8112: 7px padding, 7px gap between title and each declaration row. */
.cr-declaration { display: flex; flex-direction: column; gap: 7px; min-height: 154px; padding: 7px; border-radius: 4px; background: #e9f1f7; }
.cr-modal .cr-declaration-title { font: 400 10px/normal 'DM Serif Text', Georgia, serif; color: #194668; }
.cr-check { display: flex; align-items: flex-start; gap: 7px; font-size: 9px; line-height: 1.4; color: #63839b; cursor: pointer; }
.cr-check input {
    appearance: none; -webkit-appearance: none; flex: none;
    width: 9px; height: 9px; margin: 1.8px 0 0; /* centred on the 12.6px first line */
    border: .8px solid #073458; border-radius: 1px; background: transparent no-repeat center / 6px 6px; cursor: pointer;
}
/* Checked: navy box with the 6px Lucide check (Figma "Selected checkbox"). */
.cr-check input:checked {
    border: 0; background-color: #073458;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.cr-check > span { flex: 1 0 0; min-width: 1px; }
.cr-check a { color: inherit; text-decoration: none; }
.cr-check a:hover { text-decoration: underline; }

.cr-modal .cr-submit {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 34px; padding: 0;
    border: 0; border-radius: 3px;
    background: linear-gradient(180deg, #0b3d65 0%, #03223e 100%);
    color: #fff; font: 700 12px/normal 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer; transition: filter 200ms ease;
}
.cr-modal .cr-submit:hover { filter: brightness(1.2); }
.cr-modal .cr-submit:disabled { cursor: progress; opacity: .7; }
.cr-submit svg { width: 9px; height: 9px; }
.cr-modal .cr-footnote { font: 400 8px/normal 'DM Serif Text', Georgia, serif; color: #63839b; text-align: center; }
.cr-modal .cr-status { font-size: 9px; line-height: 1.3; color: #63839b; text-align: center; }
.cr-modal .cr-status:empty { display: none; }
.cr-modal .cr-status.is-error { color: #d96b65; }

/* Success state */
.cr-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 32px 64px; text-align: center; }
.cr-success[hidden] { display: none; }
.cr-success-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #073458; color: #fff; }
.cr-success-icon svg { width: 22px; height: 22px; }
.cr-modal .cr-success h3 { font: 400 24px/normal 'DM Serif Text', Georgia, serif; color: #194668; }
.cr-modal .cr-success p { max-width: 420px; font-size: 12px; line-height: 1.5; color: #63839b; }
.cr-modal .cr-success .cr-submit { width: auto; padding: 0 24px; margin-top: 8px; }

/* Responsive */
@media (max-width: 767px) {
    .cr-header { padding: 24px 20px; gap: 20px; }
    .cr-pattern { left: auto; right: 0; }
    .cr-modal .cr-title { font-size: 30px; line-height: 1.15; }
    .cr-subtitle br { display: none; }
    .cr-details { gap: 10px; }
    .cr-card { padding: 12px; }
    .cr-modal .cr-card-value { font-size: 14px; }
    .cr-body { grid-template-columns: minmax(0, 1fr); }
    .cr-panel { min-height: 0; }
    .cr-radio-row { flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 420px) {
    .cr-details { flex-direction: column; }
    .cr-row { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    dialog.cr-modal[open] { animation: none; }
    .hero-actions .hero-register-btn, .hero-actions .hero-register-btn svg, .cr-radio input::before { transition: none; }
}
.cr-modal form[hidden], .cr-modal .cr-input[hidden] { display: none; }

/* College autocomplete: drops down directly under the College / University field. */
.cr-combo { display: block; }
.cr-modal .cr-suggest {
    position: absolute; z-index: 5; top: calc(100% + 2px); left: 0; right: 0;
    max-height: 176px; margin: 0; padding: 3px 0; overflow-y: auto; overscroll-behavior: contain;
    list-style: none;
    border: .65px solid #d3dfe7; border-radius: 2px;
    background: #fff; box-shadow: 0 8px 20px rgba(0, 18, 58, .12);
}
.cr-modal .cr-suggest[hidden] { display: none; }
.cr-suggest li {
    padding: 8px 10px;
    font-size: 11px; line-height: 1.3; color: #194668;
    cursor: pointer;
}
.cr-suggest li:hover, .cr-suggest li[aria-selected="true"] { background: #e9f1f7; }
@media (max-width: 767px) {
    .cr-suggest li { padding: 11px 12px; font-size: 13px; }
}

/* ===== OTP verification steps (mobile → email) ===== */
.cr-otp { padding: 10px 3px; }
.cr-otp[hidden] { display: none; }
.cr-otp-card {
    display: flex; flex-direction: column; align-items: stretch;
    max-width: 420px; margin: 0 auto; padding: 32px 24px 36px;
    border: .6px solid #e1e8ed; border-radius: 4px;
}
.cr-modal .cr-steps { display: flex; justify-content: center; gap: 22px; margin: 0 0 24px; padding: 0; list-style: none; }
.cr-steps li { display: flex; align-items: center; gap: 7px; font: 400 12px/normal 'DM Serif Text', Georgia, serif; color: #63839b; }
.cr-step-dot {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    border: .8px solid #c7d8e6; font: 400 8px/1 'DM Serif Text', Georgia, serif; color: #63839b;
}
.cr-steps li.is-current { color: #194668; }
.cr-steps li.is-current .cr-step-dot { border-color: #073458; color: #073458; }
.cr-steps li.is-done { color: #194668; }
.cr-steps li.is-done .cr-step-dot { border-color: #073458; background: #073458; color: #fff; }
.cr-modal .cr-otp-notice {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; padding: 10px 12px;
    border-radius: 4px; background: #e6f4ec; color: #1f6b43; font-size: 11px; line-height: 1.45;
}
.cr-modal .cr-otp-notice[hidden] { display: none; }
.cr-otp-notice svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.cr-modal .cr-otp-title { font: 400 22px/1.2 'DM Serif Text', Georgia, serif; color: #194668; text-align: center; outline: none; }
.cr-modal .cr-otp-text { margin-top: 6px; font-size: 12px; line-height: 1.5; color: #63839b; text-align: center; overflow-wrap: anywhere; }
.cr-otp-text strong { font-weight: 500; color: #194668; }
.cr-otp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.cr-modal .cr-otp-input { height: 42px; font-size: 16px; letter-spacing: 6px; text-align: center; }
.cr-modal .cr-otp-input::placeholder { font-size: 12px; letter-spacing: normal; }
.cr-modal .cr-otp-form .cr-submit { height: 38px; }
.cr-modal .cr-otp-resend { font-size: 11px; color: #63839b; text-align: center; }
.cr-otp-resend button {
    padding: 0; border: 0; background: none; cursor: pointer;
    font: 500 11px/normal 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #073458; text-decoration: underline;
}
.cr-otp-resend button:disabled { color: #63839b; text-decoration: none; cursor: default; }
.cr-modal .cr-otp-form .cr-status { font-size: 11px; }
@media (max-width: 767px) {
    .cr-otp-card { padding: 24px 16px 28px; }
    .cr-modal .cr-steps { gap: 14px; }
}

/* ===== Close button + side-column groups (structure shared by desktop and mobile) ===== */
dialog.cr-modal { position: fixed; }
.cr-modal .cr-close { position: absolute; top: 32px; right: 32px; z-index: 2; }
.cr-title-group { padding-right: 48px; }
.cr-side-group { display: contents; } /* desktop: children stay direct flex items of .cr-panel--side */

/* ===== Mobile registration form (Figma 2828:1927) ===== */
@media (max-width: 767px) {
    /* Dialog becomes a transparent shell: white close button above the bordered sheet. */
    dialog.cr-modal {
        width: calc(100% - 30px);
        padding-top: 47px; /* 36px button + 11px gap */
        border: 0; border-radius: 0;
        background: transparent;
        scrollbar-width: none;
    }
    dialog.cr-modal::-webkit-scrollbar { display: none; }
    .cr-modal .cr-close {
        top: 0; left: 50%; right: auto; transform: translateX(-50%);
        width: 36px; height: 36px; border-radius: 100px;
        background: #fff; color: #00123a;
    }
    .cr-modal .cr-close:hover { background: #e9f1f7; }
    .cr-sheet { overflow: hidden; border: .6px solid #ccd9e0; border-radius: 5px; background: #fafaf8; }

    /* Header */
    .cr-header { padding: 24px; gap: 20px; }
    .cr-title-group { padding-right: 0; }
    .cr-pattern { top: -26px; left: 88px; right: auto; width: 246px; height: 306px; opacity: .1; }
    .cr-modal .cr-title { font-size: 28px; line-height: normal; }
    .cr-modal .cr-subtitle { font-size: 12px; }
    .cr-details { flex-direction: row; flex-wrap: nowrap; gap: 12px; }
    .cr-card { flex: 0 1 auto; min-width: 0; padding: 16px; }
    .cr-card-label { font-weight: 400; }
    .cr-card-label svg { width: 24px; height: 24px; stroke-width: 1.5; }
    .cr-modal .cr-card-value { font-size: 16px; font-weight: 400; white-space: nowrap; }

    /* Body: Panel Discussions (01) → Participant Registration (02, 03) → Declaration + submit */
    .cr-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
    .cr-panel { min-height: 0; }
    .cr-panel--side { display: contents; }
    .cr-panel--form,
    .cr-side-group {
        display: flex; flex-direction: column; gap: 16px;
        padding: 16px;
        border: .6px solid #e1e8ed; border-radius: 4px;
    }
    .cr-side-group--discussions { order: 0; }
    .cr-panel--form { order: 1; gap: 12px; }
    .cr-side-group--confirm { order: 2; }
    .cr-form-head { margin-bottom: 0; }
    .cr-section--basic { margin-bottom: 0; }

    /* Section numbers follow the mobile order. */
    .cr-badge { font-size: 9px; }
    .cr-badge[data-m] { font-size: 0; }
    .cr-badge[data-m]::after { content: attr(data-m); font-size: 9px; }

    .cr-discussion-icon { width: 24px; height: 24px; }
    .cr-optional { display: none; }
    .cr-row { flex-direction: row; gap: 9px; }

    /* Declaration: 24px checkboxes with an 18px check. */
    .cr-check input { width: 24px; height: 24px; margin: 0; background-size: 18px 18px; }
    .cr-modal .cr-submit svg { width: 24px; height: 24px; stroke-width: 1.5; }
}
/* Narrow phones: keep Date + Location side by side as in the design. */
@media (max-width: 380px) {
    .cr-details { gap: 8px; }
    .cr-card { padding: 12px 10px; }
    .cr-card-label { gap: 6px; }
    .cr-card-label svg { width: 20px; height: 20px; }
    .cr-modal .cr-card-value { font-size: 14px; }
}

/* ===== Mobile: fixed-height card; header + content scroll together inside it (Figma 2806:10592) ===== */
@media (max-width: 767px) {
    dialog.cr-modal { width: min(330px, calc(100% - 30px)); }
    dialog.cr-modal[open] {
        display: flex; flex-direction: column;
        overflow: hidden; /* the card scrolls, not the dialog */
    }
    /* Cap against the viewport, not the dialog: the dialog's height is fit-content, so
       `max-height: 100%` resolves to 0 in iOS Safari and collapses the card.
       79px = dialog max-height inset (32px) + close-button gap (47px). */
    .cr-sheet {
        flex: 0 1 auto; min-height: 0;
        height: 510px;
        max-height: calc(100vh - 79px);
        max-height: calc(100dvh - 79px);
        overflow-y: auto; overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; scrollbar-color: #d9d9d9 transparent;
    }
    .cr-sheet::-webkit-scrollbar { width: 6px; }
    .cr-sheet::-webkit-scrollbar-track { background: transparent; margin: 16px 0; }
    .cr-sheet::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 100px; }
}

/* ===== Inline OTP verification for Email + Mobile (option A) ===== */
.cr-verify-control { display: block; }
.cr-modal .cr-verify .cr-input { padding-right: 92px; }
.cr-modal .cr-verify .cr-input[readonly] { color: #4f6b80; }
.cr-modal .cr-verify-btn {
    position: absolute; top: 4px; right: 4px; bottom: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 76px; padding: 0 12px; border: 0; border-radius: 2px;
    background: linear-gradient(180deg, #0b3d65 0%, #03223e 100%);
    color: #fff; font: 700 11px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; cursor: pointer;
}
.cr-modal .cr-verify-btn:hover { filter: brightness(1.2); }
.cr-modal .cr-verify-btn[hidden] { display: none; }
.cr-modal .cr-verify-btn.is-link {
    min-width: 0; padding: 0 8px; background: none; color: #073458;
    font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.cr-modal .cr-verify-btn.is-link:hover { filter: none; color: #0b5a94; }
.cr-modal .cr-verify-btn:disabled { cursor: progress; opacity: .75; }
.cr-modal .is-loading::before {
    content: ''; width: 10px; height: 10px; flex: none;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: cr-spin .7s linear infinite;
}
@keyframes cr-spin { to { transform: rotate(360deg); } }
.cr-modal .cr-verify-btn.is-loading { font-size: 0; gap: 0; }

.cr-verified-pill {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 99px; background: #2e9d62;
    color: #fff; font-size: 11px; font-weight: 600; line-height: 1; pointer-events: none;
}
.cr-verified-pill[hidden] { display: none; }
.cr-verified-pill svg { width: 12px; height: 12px; stroke-width: 3; }
.cr-modal .cr-verify.is-verified .cr-input { border-color: #2e9d62; background: #ecf8f1; color: #194668; }
.cr-modal .cr-verified-msg { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 10px; line-height: 1.3; color: #1f7a4b; }
.cr-modal .cr-verified-msg[hidden] { display: none; }
.cr-verified-msg svg { width: 11px; height: 11px; stroke-width: 3; }

.cr-otp-inline { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cr-otp-inline[hidden] { display: none; }
.cr-modal .cr-otp-hint { font-size: 10px; line-height: 1.4; color: #63839b; overflow-wrap: anywhere; }
.cr-otp-hint strong { color: #194668; font-weight: 600; }
.cr-otp-row { display: flex; align-items: center; gap: 8px; }
.cr-otp-boxes { display: flex; gap: 5px; flex: 1 1 auto; min-width: 0; }
.cr-modal .cr-otp-box {
    flex: 1 1 0; min-width: 0; max-width: 36px; height: 36px; margin: 0; padding: 0;
    border: .65px solid #d3dfe7; border-radius: 3px; background: #fff;
    color: #194668; font: 600 15px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; text-align: center;
    outline: none; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.cr-modal .cr-otp-box:focus { border-color: #073458; box-shadow: 0 0 0 2px rgba(7, 52, 88, .12); }
.cr-modal .cr-otp-box.is-error { border-color: #d96b65; background: #fff6f5; }
.cr-modal .cr-otp-verify {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 14px; border: 0; border-radius: 3px;
    background: linear-gradient(180deg, #0b3d65 0%, #03223e 100%);
    color: #fff; font: 700 11px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; cursor: pointer;
}
.cr-modal .cr-otp-verify:disabled { opacity: .45; cursor: not-allowed; }
.cr-modal .cr-otp-verify.is-loading { opacity: 1; cursor: progress; }
.cr-modal .cr-otp-meta { font-size: 10px; line-height: 1.3; }
.cr-modal .cr-otp-resend { padding: 0; border: 0; background: none; color: #073458; font: 600 10px/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; cursor: pointer; text-decoration: underline; }
.cr-modal .cr-otp-resend:disabled { color: #63839b; font-weight: 400; text-decoration: none; cursor: default; }
.cr-modal .cr-error.is-info { color: #63839b; }

@media (max-width: 767px) {
    .cr-modal .cr-verify .cr-input { padding-right: 84px; }
    .cr-modal .cr-verify-btn { min-width: 68px; padding: 0 10px; font-size: 10px; }
    .cr-modal .cr-otp-box { height: 34px; font-size: 14px; }
    .cr-modal .cr-otp-verify { height: 34px; padding: 0 12px; }
    .cr-otp-boxes { gap: 4px; }
}
/* A wrong OTP highlights only the code boxes, not the locked email/mobile field. */
.cr-modal .cr-verify[data-state="sent"].is-invalid .cr-input { border-color: #d3dfe7; }
