/* Calm Pro public admission pages (mobile-first, 380px reference). */

.rdp-shell {
    margin: 0;
    font-family: var(--rd-font-ui);
    background: var(--rd-bg);
    color: var(--rd-body);
    font-size: 13.5px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.rdp-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 28px 18px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100vh;
}

.rdp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 0 4px;
}

.rdp-brand img { height: 30px; width: auto; }
.rdp-brand__name { font-size: 15px; font-weight: 700; color: var(--rd-text); }

.rdp-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--rd-shadow-public);
}

.rdp-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--rd-text);
    letter-spacing: -.2px;
    margin: 0 0 4px;
}

.rdp-sub { font-size: 12.5px; color: var(--rd-muted); margin: 0 0 18px; }

.rdp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.rdp-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--rd-faint);
}

.rdp-field input,
.rdp-field select {
    font-family: var(--rd-font-mono);
    font-size: 15px;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    background: var(--rd-surface);
    color: var(--rd-text);
    outline: none;
    /* width: 100%; */
}

.rdp-field input:focus, .rdp-field select:focus {
    border-color: var(--rd-blue);
    box-shadow: 0 0 0 3px var(--rd-blue-tint);
}

.personal-record-form .rdp-field--wide input {
    width: 100%;
    max-width: 487px;
}

.rdp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--rd-font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.rdp-btn--primary { background: var(--rd-blue); color: #fff; }
.rdp-btn--primary:hover { background: var(--rd-blue-hover); color: #fff; }
.rdp-btn--green { background: var(--rd-green); color: #fff; }
.rdp-btn--green:hover { background: var(--rd-green-hover); color: #fff; }
.rdp-btn--outline { background: var(--rd-surface); border-color: var(--rd-border); color: var(--rd-body); }
.rdp-btn--outline:hover { border-color: var(--rd-blue); color: var(--rd-blue); }

.rdp-foot {
    text-align: center;
    font-size: 12px;
    color: var(--rd-muted);
    padding-top: 4px;
}

/* Congratulations / match card */
.rdp-match {
    background: var(--rd-green-tint);
    border: 1px solid var(--rd-green);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.rdp-match__name { font-size: 17px; font-weight: 700; color: var(--rd-text); }
.rdp-match__line { font-size: 12.5px; color: var(--rd-muted); margin-top: 4px; }
.rdp-match__program { font-size: 15px; font-weight: 700; color: var(--rd-green); margin-top: 6px; }
.rdp-match__meta { font-family: var(--rd-font-mono); font-size: 11.5px; color: var(--rd-muted); margin-top: 8px; }

/* Payment options */
.rdp-option {
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.rdp-option--recommended { border-color: var(--rd-blue); border-width: 2px; }

.rdp-option__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rdp-option__title { font-size: 14px; font-weight: 700; color: var(--rd-text); }
.rdp-option__note { font-size: 12px; color: var(--rd-muted); margin-bottom: 12px; }

/* Deep navy panel (token login) */
.rdp-panel {
    background: var(--rd-deep-navy);
    border-radius: 16px;
    padding: 22px;
    color: #e8edf4;
}

.rdp-panel .rdp-title { color: #fff; }
.rdp-panel .rdp-sub { color: rgba(232, 237, 244, .72); }
.rdp-panel .rdp-field label { color: rgba(232, 237, 244, .62); }

.rdp-panel .rdp-field input {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.rdp-panel .rdp-field input::placeholder { color: rgba(232, 237, 244, .4); }

/* Errors */
.rdp-error {
    background: var(--rd-red-tint);
    color: var(--rd-red);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 12.5px;
    margin-bottom: 14px;
}

/* Portal */
.rdp-portal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.rdp-portal-bar__title { font-size: 14px; font-weight: 700; color: var(--rd-text); }

.rdp-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    padding: 13px;
    margin-bottom: 10px;
    background: var(--rd-surface);
}

.rdp-doc__title { font-size: 13.5px; font-weight: 600; color: var(--rd-text); }
.rdp-doc__sub { font-size: 11.5px; color: var(--rd-muted); }

.rdp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rd-border-subtle);
    font-size: 13px;
}

.rdp-check:last-child { border-bottom: 0; }
.rdp-check__box { font-size: 15px; line-height: 1.2; flex: none; }
.rdp-check.is-done .rdp-check__label { color: var(--rd-muted); text-decoration: line-through; }
.rdp-check__box--done { color: var(--rd-green); }
.rdp-check__box--pending { color: var(--rd-faint); }

@media (min-width: 720px) {
    .rdp-wrap { max-width: 560px; }
}

/* --- Checker preamble (school-authored HTML) ------------------------------ */
.rdp-preamble {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--rd-muted);
}

.rdp-preamble > *:first-child { margin-top: 0; }
.rdp-preamble > *:last-child { margin-bottom: 0; }

.rdp-preamble p { margin: 0 0 10px; }

.rdp-preamble strong,
.rdp-preamble h1,
.rdp-preamble h2,
.rdp-preamble h3,
.rdp-preamble h4 {
    color: var(--rd-text);
}

.rdp-preamble h1,
.rdp-preamble h2,
.rdp-preamble h3,
.rdp-preamble h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.rdp-preamble ul,
.rdp-preamble ol { margin: 0 0 10px; padding-inline-start: 20px; }

.rdp-preamble li { margin-bottom: 4px; }

.rdp-preamble table { width: 100%; border-collapse: collapse; }
.rdp-preamble th,
.rdp-preamble td { border: 1px solid var(--rd-border); padding: 6px 8px; text-align: start; }

/* --- Personal record form ------------------------------------------------ */
.rdp-section {
    margin: 22px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--rd-border);
}

.rdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
.rdp-grid > .rdp-field { min-width: 0; }
.rdp-field input,
.rdp-field select,
.rdp-field textarea { max-width: 100%; min-width: 0; }

.rdp-field--wide { grid-column: 1 / -1; }

.rdp-grid .rdp-field { margin-bottom: 0; }

.rdp-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-sm);
    background: var(--rd-surface);
    color: var(--rd-text);
    font-family: var(--rd-font-ui);
    font-size: 14px;
    resize: vertical;
}

.rdp-grid textarea:focus {
    outline: none;
    border-color: var(--rd-blue);
    box-shadow: 0 0 0 3px var(--rd-blue-tint);
}

.rdp-readonly {
    margin: 16px 0 4px;
    padding: 14px;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-sm);
    background: var(--rd-bg);
}

.rdp-readonly__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 14px;
}

.rdp-readonly__label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rd-faint);
}

.rdp-readonly__value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rd-text);
    margin-top: 2px;
}

@media (max-width: 560px) {
    .rdp-grid { grid-template-columns: 1fr; }
}

/* ---- Personal record wizard (stepper) ---- */
.rd-stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.rd-stepper__item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-sm);
    background: var(--rd-surface);
    color: var(--rd-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.rd-stepper__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--rd-bg);
    border: 1px solid var(--rd-border);
    font-size: 12px;
}
.rd-stepper__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-stepper__item.is-active { border-color: var(--rd-blue); color: var(--rd-text); background: var(--rd-blue-tint); }
.rd-stepper__item.is-active .rd-stepper__num { background: var(--rd-blue); border-color: var(--rd-blue); color: #fff; }
.rd-stepper__item.is-done { color: var(--rd-green); }
.rd-stepper__item.is-done .rd-stepper__num { background: var(--rd-green); border-color: var(--rd-green); color: #fff; }

.rdp-step { display: none; }
.rdp-step.is-active { display: block; }
.rdp-step__nav { display: flex; gap: 10px; margin-top: 22px; }
.rdp-step__nav > .rdp-btn { flex: 1; }
.rdp-step__nav > .rdp-btn--primary { flex: 2; }

@media (max-width: 560px) {
    .rd-stepper__label { display: none; }
    .rd-stepper__item { flex: none; }
}
