/* Patient registration (tablet) look, matched to SSDC_Official v2.
   Colours and radius follow the v2 theme variables. Sizes are set for finger use on tablets. */

:root {
    --app-primary: #6258d9;
    --app-primary-dark: #4e45bd;
    --app-ink: #1d2340;
    --app-muted: #72798f;
    --app-border: #e7e9f1;
    --app-surface: #ffffff;
    --app-bg: #f4f5fb;
    --app-radius: 20px;
    --app-shadow: 0 24px 70px rgba(37, 45, 91, 0.11), 0 4px 14px rgba(37, 45, 91, 0.04);
}

html,
body {
    background: var(--app-bg);
    color: var(--app-ink);
    font-size: 17px;
}

#content-wrapper,
#content {
    background: var(--app-bg);
}

/* Clinic header (logo, name, address, phone) */
.container-fluid > .col-lg-12.d-flex {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 16px 22px;
    margin-top: 12px;
}

.container-fluid h4 {
    color: var(--app-ink);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.container-fluid p {
    color: var(--app-muted);
    margin-bottom: 2px;
}

/* Section cards */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

.reg-card-header {
    background: var(--app-primary) !important;
    color: #fff !important;
    padding: 18px 24px !important;
}

.reg-card-header h6 {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.card-body {
    padding: 28px 32px;
}

h5 {
    color: var(--app-ink);
    font-weight: 700;
}

hr {
    border-top: 1px solid var(--app-border);
}

/* Form fields: tall enough to tap, readable from arm's length */
.form-control,
.form-select,
select.form-control {
    min-height: 56px;
    font-size: 1.1rem;
    border: 1.5px solid var(--app-border);
    border-radius: 14px;
    padding: 10px 16px;
    color: var(--app-ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 4px rgba(98, 88, 217, 0.15);
}

label,
.form-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--app-ink);
}

/* Yes / No and checkboxes: bigger tap area */
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.15em;
    cursor: pointer;
}

.form-check-label {
    font-size: 1.05rem;
    padding-top: 0.1em;
    cursor: pointer;
}

/* Photo and signature boxes */
#photoPreview {
    border: 2px solid var(--app-border);
    border-radius: var(--app-radius);
    width: 240px;
    height: 240px;
    object-fit: cover;
    background: var(--app-surface);
}

.signature-box {
    border: 2px dashed #c9cde0 !important;
    border-radius: 16px !important;
    background: var(--app-surface);
    font-size: 1.05rem;
    color: var(--app-muted);
}

/* Buttons: large, rounded, easy to press */
.btn {
    min-height: 56px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px;
    padding: 10px 26px;
}

.btn-icon-split {
    padding: 0;
}

.btn-icon-split .icon {
    min-height: 56px;
    padding: 0 16px;
}

.btn-icon-split .text {
    padding: 0 26px 0 0;
    line-height: 56px;
}

.btn-success,
.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-success:hover,
.btn-primary:hover {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.btn-lg {
    min-height: 64px;
    font-size: 1.25rem;
}

/* Completion screen */
#completionScreen .card-body {
    padding: 56px 32px;
}

#completionScreen h4 {
    color: var(--app-primary);
    font-size: 2rem;
}

#completionScreen p {
    font-size: 1.25rem;
    color: var(--app-muted);
}

/* Footer: clinic and developer credit */
.reg-footer {
    background: transparent !important;
    padding: 18px 0 28px;
    box-shadow: none !important;
}

.reg-footer .copyright {
    color: var(--app-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.reg-footer .developer-credit {
    margin-top: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.reg-footer .developer-credit strong {
    color: var(--app-primary);
}

/* Tablets in portrait: keep the layout single-column and roomy */
@media (max-width: 1024px) {
    .card-body {
        padding: 22px 20px;
    }

    .col-lg-4 {
        width: 100%;
    }
}

/* ---- Round 2: header button fix, modern cards, step progress, photo ---- */

/* Split buttons (Ortho Consent, Next, Back, Submit): icon block and label side by side */
.btn-icon-split {
    display: inline-flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 14px;
}

.btn-icon-split .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.12);
    color: inherit !important;
}

.btn-icon-split .text {
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.btn-warning.btn-icon-split {
    background: #fbbf24;
    border-color: #fbbf24;
    color: var(--app-ink);
}

.btn-warning.btn-icon-split:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: var(--app-ink);
}

.btn-danger.btn-icon-split {
    background: #f1f2f8;
    border-color: #f1f2f8;
    color: var(--app-ink);
}

.btn-danger.btn-icon-split:hover {
    background: #e2e4ef;
    border-color: #e2e4ef;
    color: var(--app-ink);
}

/* Buttons: a small press effect for tablets */
.btn {
    transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-success,
.btn-primary {
    box-shadow: 0 10px 22px rgba(98, 88, 217, 0.25);
}

/* Header: clinic card */
.container-fluid > .col-lg-12.d-flex {
    flex-wrap: wrap;
    gap: 14px;
    border-top: 4px solid var(--app-primary);
}

.container-fluid > .col-lg-12.d-flex img {
    max-height: 96px;
}

/* Section headers: gradient band */
.reg-card-header {
    background: linear-gradient(135deg, #6258d9 0%, #8b5cf6 100%) !important;
    border-bottom: none !important;
}

/* Photo: round avatar with a clear tap target */
#photoPreview {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(37, 45, 91, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#photoPreview:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 36px rgba(98, 88, 217, 0.3);
}

.photo-hint {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--app-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Step progress: three steps shown above the form */
.step-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 16px 22px;
    margin: 16px 0 4px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--app-muted);
    white-space: nowrap;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eceef8;
    color: var(--app-muted);
    font-size: 1.1rem;
}

.step-item.active {
    color: var(--app-primary);
}

.step-item.active .step-dot {
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(98, 88, 217, 0.18);
}

.step-item.done .step-dot {
    background: #22c55e;
    color: #fff;
}

.step-item.done {
    color: #15803d;
}

.step-line {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #eceef8;
}

.step-label {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .step-label {
        display: none;
    }
}

/* Tablets: a little more room between fields */
.form-group,
.mb-2 {
    margin-bottom: 0.6rem;
}

/* ---- Round 3: clinic brand header and the Ortho Consent action ---- */

/* Header: logo at a modest size, clinic name and address as one brand block */
.container-fluid > .col-lg-12.d-flex {
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
}

.container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center {
    gap: 16px;
    flex: 1 1 420px;
    min-width: 0;
}

.brand-logo {
    width: auto;
    max-height: 64px;
    flex-shrink: 0;
    padding-right: 16px;
    border-right: 2px solid var(--app-border);
}

.container-fluid h4 {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-ink);
}

.container-fluid p {
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Ortho Consent: a single row, icon and label side by side */
.header-action {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    min-height: 52px;
    border-radius: 14px;
    background: #fbbf24;
    color: var(--app-ink);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.35);
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.header-action i {
    font-size: 1.15rem;
}

.header-action:hover {
    background: #f59e0b;
    color: var(--app-ink);
}

.header-action:active {
    transform: scale(0.97);
}

@media (max-width: 640px) {
    .brand-logo {
        max-height: 48px;
    }

    .container-fluid h4 {
        font-size: 1rem;
    }
}

/* ---- Round 4: header layout (brand block + action), responsive ---- */

.container-fluid > .col-lg-12.d-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
    padding: 18px 24px;
}

/* Brand block: logo and clinic details side by side, details take the free width */
.container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: none;
    min-width: 0;
}

.container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center > div {
    min-width: 0;
}

.container-fluid h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.container-fluid p {
    max-width: 60ch;
}

.brand-logo {
    max-height: 72px;
}

.header-action {
    justify-self: end;
    font-size: 1.1rem;
    padding: 14px 24px;
    min-height: 56px;
}

/* Narrow screens (tablet portrait, phones): stack the brand and the action */
@media (max-width: 760px) {
    .container-fluid > .col-lg-12.d-flex {
        grid-template-columns: minmax(0, 1fr);
    }

    .container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center {
        flex-wrap: wrap;
    }

    .header-action {
        justify-self: stretch;
        justify-content: center;
    }
}

/* ---- Round 5: sticky top bar, visible on every step ---- */

.container-fluid > .col-lg-12.d-flex {
    position: sticky;
    top: 0;
    z-index: 1030;
    margin: 0 -12px;
    padding: 10px 20px;
    gap: 12px 20px;
    border-radius: 0 0 var(--app-radius) var(--app-radius);
    border-top: none;
    box-shadow: 0 10px 28px rgba(37, 45, 91, 0.14);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
}

.container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center {
    gap: 14px;
}

.brand-logo {
    max-height: 48px;
    padding-right: 14px;
}

.container-fluid h4 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-fluid p {
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center > div {
    max-width: 100%;
}

.header-action {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 1rem;
    box-shadow: none;
}

/* Tablet portrait: keep the bar one row; hide the second and third address lines */
@media (max-width: 760px) {
    .container-fluid > .col-lg-12.d-flex {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .container-fluid > .col-lg-12.d-flex > .d-flex.align-items-center {
        flex-wrap: nowrap;
    }

    .header-action {
        justify-self: end;
    }

    .header-action span {
        display: none;
    }
}

/* ---- Round 6: full-width sticky top bar (outside the padded page container) ---- */

.reg-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 8px 22px rgba(37, 45, 91, 0.12);
    backdrop-filter: blur(6px);
}

.reg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.reg-brand .brand-logo {
    max-height: 46px;
    width: auto;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 2px solid var(--app-border);
}

.reg-brand-text {
    min-width: 0;
}

.reg-topbar h4 {
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--app-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-topbar p {
    font-size: 0.8rem;
    color: var(--app-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-topbar .header-action {
    flex-shrink: 0;
    min-height: 46px;
    padding: 10px 18px;
    font-size: 1rem;
    box-shadow: none;
}

/* Tablet portrait: icon-only link so the name and address keep their room */
@media (max-width: 760px) {
    .reg-topbar .header-action span {
        display: none;
    }

    .reg-topbar .header-action {
        padding: 10px 14px;
    }

    .reg-brand .brand-logo {
        max-height: 40px;
    }
}

/* ---- Round 7: step buttons (Next, Back, Submit, Close) as one row: icon and label side by side ---- */

.step-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    min-width: 150px;
    padding: 10px 26px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border-width: 0;
    transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.step-btn:active {
    transform: scale(0.97);
}

/* The icon and label are plain inline items inside the row */
.step-btn .icon,
.step-btn .text {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

.step-btn .icon i {
    font-size: 1.1rem;
}

.step-btn.btn-success {
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(98, 88, 217, 0.25);
}

.step-btn.btn-success:hover {
    background: var(--app-primary-dark);
    color: #fff;
}

.step-btn.btn-danger {
    background: #eef0f7;
    color: var(--app-ink);
    box-shadow: none;
}

.step-btn.btn-danger:hover {
    background: #e2e4ef;
    color: var(--app-ink);
}

.step-btn.btn-warning {
    background: #fbbf24;
    color: var(--app-ink);
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.3);
}

.step-btn.btn-warning:hover {
    background: #f59e0b;
    color: var(--app-ink);
}

/* Button rows: keep them on one line and spaced on tablets */
.step-btn + .step-btn {
    margin-left: 10px;
}

/* ---- Round 8: glass look (frosted panels over a soft gradient backdrop) ---- */

:root {
    --glass-fill: rgba(255, 255, 255, 0.58);
    --glass-fill-strong: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 18px 50px rgba(37, 45, 91, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Backdrop: soft colour fields behind the whole page (fixed, so they stay put while scrolling) */
html,
body {
    background: #e9ebfb;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.45), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.40), transparent 40%),
        radial-gradient(circle at 80% 88%, rgba(45, 212, 191, 0.35), transparent 42%),
        radial-gradient(circle at 15% 90%, rgba(98, 88, 217, 0.30), transparent 40%),
        linear-gradient(160deg, #eef0ff 0%, #e6ecfb 55%, #e9f7f6 100%);
}

#content-wrapper,
#content {
    background: transparent;
}

/* Top bar: frosted strip */
.reg-topbar {
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(37, 45, 91, 0.12);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* Cards: frosted panels */
.card {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.card-body {
    background: transparent;
}

/* Section header: a tinted glass band instead of a solid block */
.reg-card-header {
    background: linear-gradient(135deg, rgba(98, 88, 217, 0.85) 0%, rgba(139, 92, 246, 0.8) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Progress bar: glass pill */
.step-progress {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.step-dot {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
}

/* Fields: translucent white with a crisp edge */
.form-control,
.form-select,
select.form-control {
    background: var(--glass-fill-strong);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px rgba(37, 45, 91, 0.06);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.95);
}

/* Photo and signature areas: frosted */
#photoPreview {
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 34px rgba(37, 45, 91, 0.2);
}

.signature-box {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px dashed rgba(98, 88, 217, 0.45) !important;
}

.photo-hint {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
}

/* Completion card: glass panel */
#completionScreen {
    background: var(--glass-fill-strong);
}

/* Footer: text sits on the glass backdrop */
.reg-footer .copyright {
    color: var(--app-ink);
    opacity: 0.75;
}

/* Older tablets may struggle with blur: keep the panels readable without it */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card,
    .reg-topbar,
    .step-progress {
        background: rgba(255, 255, 255, 0.92);
    }
}

/* ---- Round 9: checkbox lists (medical conditions) — no overlap, readable on tablets ---- */

/* Reserve room for the enlarged checkbox and let long words wrap inside the column */
.form-check {
    position: relative;
    display: block;
    min-height: 1.6rem;
    padding-left: 2.1em;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.form-check .form-check-input {
    float: none;
    position: absolute;
    left: 0;
    top: 0.2em;
    margin: 0;
}

.form-check-label {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

/* Tablets: two columns instead of three, so each label has room */
@media (min-width: 768px) and (max-width: 1199px) {
    .row > .col-md-4:has(> .form-check) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Narrow screens: one column */
@media (max-width: 767px) {
    .row > .col-md-4:has(> .form-check) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---- Round 10: medical history uses the full card width; checklist in three columns ---- */

@media (min-width: 600px) {
    .row > .col-md-4:has(> .form-check) {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 599px) {
    .row > .col-md-4:has(> .form-check) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---- Round 11: option rows (checkboxes and Yes/No radios) as a simple flex row, no offsets ---- */

.form-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.6em;
    padding-left: 0 !important;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.form-check.form-check-inline {
    display: inline-flex !important;
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-check .form-check-input {
    position: static !important;
    float: none !important;
    flex-shrink: 0;
    margin: 0.2em 0 0 0 !important;
    left: auto !important;
    top: auto !important;
}

.form-check .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
    padding-top: 0.05em;
}

/* ---- Round 12: page text wraps normally (the one-line rule belongs to the top bar only) ---- */

.container-fluid p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    font-size: 1rem;
    line-height: 1.6;
}

.container-fluid p.small,
.container-fluid p small {
    font-size: 0.95rem;
}

/* ---- Round 13: sections without cards (personal, medical history, consent) ---- */

/* Sections sit directly on the glass backdrop: no panel, border or shadow */
.card:not(#completionScreen) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0;
    overflow: visible;
}

.card:not(#completionScreen) > .card-body {
    padding: 8px 4px 24px;
}

/* Section title: plain heading with a coloured rule, no filled band */
.card:not(#completionScreen) > .reg-card-header {
    background: transparent !important;
    color: var(--app-ink) !important;
    padding: 12px 4px 10px !important;
    border-bottom: 3px solid var(--app-primary) !important;
    border-radius: 0;
}

.card:not(#completionScreen) > .reg-card-header h6 {
    color: var(--app-ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0;
}

/* Fields and checklists keep their own glass look (inputs), not the section */
.card:not(#completionScreen) .card-body h5 {
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .card:not(#completionScreen) > .card-body {
        padding: 8px 0 20px;
    }
}

/* ---- Round 14: side margins for the sections (more room for medical history) ---- */

.card:not(#completionScreen) > .card-body {
    padding-left: 28px;
    padding-right: 28px;
}

.card:not(#completionScreen) > .reg-card-header {
    margin-left: 28px;
    margin-right: 28px;
}

#tab2 .card-body {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 1024px) {
    .card:not(#completionScreen) > .card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card:not(#completionScreen) > .reg-card-header {
        margin-left: 20px;
        margin-right: 20px;
    }

    #tab2 .card-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---- Round 15: visible borders on all fields, including dropdowns ---- */

.form-control,
.form-select,
select.form-control,
select {
    border: 1.5px solid #c4c9de !important;
}

.form-control:focus,
.form-select:focus,
select:focus {
    border-color: var(--app-primary) !important;
}
