/* ==========================================================================
   The BrainTree - parent self-assessment form (visual layer)
   Scoped under .btas so nothing leaks into the site. Self-contained on
   purpose: css/tailwind.output.css is a purged build, so new utility classes
   would simply not exist on the server.
   Brand palette is taken from images/bt-web.png:
   orange #f39223 / blue #1b9fd8 / green #7cb342 / yellow #ffc107 / ink #12233b
   ========================================================================== */

:root {
    --btas-navy: #10223b;
    --btas-navy-2: #1b3b66;
    --btas-primary: #0056b3;
    --btas-primary-dark: #00448c;
    --btas-blue: #1b7fd4;
    --btas-orange: #ef8b1e;
    --btas-green: #5f9e34;
    --btas-teal: #0d8fa6;
    --btas-ink: #12233b;
    --btas-muted: #5b6b80;
    --btas-line: #dde6f1;
    --btas-soft: #f5f8fc;
    --btas-red: #c02b2b;
    --btas-red-bg: #fdeceb;
    --btas-amber: #b45309;
    --btas-amber-bg: #fdf4e3;
    --btas-green-bg: #eef7e6;
}

.btas,
.btas * {
    box-sizing: border-box;
}

.btas {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--btas-ink);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

.btas-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ------------------------------------------------------- page intro block */

.btas-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 26px;
}

.btas-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.btas-logo img {
    height: 52px;
    width: auto;
    max-width: 100%;
}

.btas-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #0b5aa8;
    background: #e7f1fc;
    border: 1px solid #cfe3f8;
    border-radius: 999px;
    padding: 6px 15px;
    margin-bottom: 16px;
}

.btas-head h2 {
    font-size: 32px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 0 0 12px;
    color: var(--btas-navy);
}

.btas-head h2 em {
    font-style: normal;
    color: var(--btas-primary);
}

.btas-head p {
    margin: 0;
    font-size: 15.5px;
    color: var(--btas-muted);
}

.btas-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 18px 0 0;
}

.btas-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #27405f;
    background: #fff;
    border: 1px solid #dce7f4;
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: 0 2px 6px rgba(16, 34, 59, .05);
}

.btas-chip svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

/* ------------------------------------------------------------------- card */

.btas-card {
    position: relative;
    background: #fff;
    border: 1px solid #e3ebf5;
    border-radius: 20px;
    box-shadow: 0 22px 50px -18px rgba(15, 40, 75, .28), 0 2px 6px rgba(15, 40, 75, .05);
    overflow: hidden;
}

.btas-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--btas-orange) 0%, #f7b733 22%, var(--btas-green) 47%, var(--btas-teal) 70%, var(--btas-blue) 100%);
}

.btas-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 26px 14px;
    background: linear-gradient(180deg, #fbfdff, #ffffff);
    border-bottom: 1px solid #edf2f9;
}

.btas-brand img {
    height: 40px;
    width: auto;
    max-width: 190px;
}

.btas-brand-tag {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7b8ca3;
    text-align: right;
    line-height: 1.5;
}

.btas-brand-tag b {
    display: block;
    color: var(--btas-primary);
    font-size: 12px;
}

/* ---------------------------------------------------------------- stepper */

.btas-card-head {
    padding: 18px 26px 0;
}

.btas-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.btas-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #93a2b6;
    flex: 0 0 auto;
}

.btas-step-num {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: #eef3f9;
    color: #93a2b6;
    border: 1px solid #dfe8f3;
    transition: all .25s ease;
}

.btas-step.is-active {
    color: var(--btas-navy);
}

.btas-step.is-active .btas-step-num {
    background: var(--btas-primary);
    border-color: var(--btas-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .14);
}

.btas-step.is-done .btas-step-num {
    background: #e4f4e8;
    border-color: #bfe3ca;
    color: #1c7a3a;
}

.btas-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #e8eef6;
    border-radius: 2px;
}

.btas-step-line.is-done {
    background: linear-gradient(90deg, #bfe3ca, #d8ecd9);
}

.btas-step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--btas-muted);
    margin-bottom: 8px;
}

.btas-step-meta span:last-child {
    color: var(--btas-primary);
}

.btas-progress {
    height: 8px;
    background: #eef3f9;
    border-radius: 999px;
    overflow: hidden;
}

.btas-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--btas-blue), #4fb6ee);
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------ body */

.btas-card-body {
    padding: 22px 26px 26px;
}

.btas-card-foot {
    padding: 18px 26px;
    background: linear-gradient(180deg, #f8fbff, #f2f7fd);
    border-top: 1px solid #e8eef7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.btas-h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.2px;
    margin: 0 0 5px;
    color: var(--btas-navy);
}

.btas-hint {
    font-size: 13.5px;
    color: var(--btas-muted);
    margin: 0 0 20px;
}

/* ------------------------------------------------------------------ form */

.btas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btas-field {
    margin-bottom: 16px;
}

.btas-field.btas-full {
    grid-column: 1 / -1;
}

.btas-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--btas-ink);
    margin-bottom: 6px;
}

.btas-label .btas-req {
    color: #d94b4b;
}

.btas-input,
.btas-select {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--btas-ink);
    background: #fbfdff;
    border: 1.5px solid #d5e1ef;
    border-radius: 11px;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btas-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235b6b80' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.btas-input:hover,
.btas-select:hover {
    border-color: #b6c9de;
}

.btas-input:focus,
.btas-select:focus {
    outline: none;
    background: #fff;
    border-color: var(--btas-primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .12);
}

.btas-input.btas-bad,
.btas-select.btas-bad {
    border-color: var(--btas-red);
    box-shadow: 0 0 0 4px rgba(192, 43, 43, .1);
}

.btas-error {
    display: none;
    color: var(--btas-red);
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 6px;
}

.btas-error.btas-show {
    display: block;
}

/* --------------------------------------------------------------- buttons */

.btas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btas-btn:active {
    transform: translateY(1px);
}

.btas-btn--primary {
    background: linear-gradient(135deg, #0a67c9, #0056b3);
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(0, 86, 179, .7);
}

.btas-btn--primary:hover {
    background: linear-gradient(135deg, #0b72dd, #005ecb);
    box-shadow: 0 14px 26px -10px rgba(0, 86, 179, .75);
}

.btas-btn--wa {
    background: linear-gradient(135deg, #2ee06f, #1dbb5b);
    color: #04301a;
    box-shadow: 0 10px 22px -8px rgba(29, 187, 91, .6);
}

.btas-btn--wa:hover {
    background: linear-gradient(135deg, #35e877, #21c862);
}

.btas-btn--ghost {
    background: #fff;
    color: #27405f;
    border-color: #d5e1ef;
}

.btas-btn--ghost:hover {
    background: #f4f8fd;
    border-color: #b7cadd;
}

.btas-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.btas-btn svg {
    width: 17px;
    height: 17px;
}

/* ------------------------------------------------------------- questions */

.btas-qgroup {
    border: 1px solid #e6eef8;
    border-radius: 15px;
    background: linear-gradient(180deg, #fbfdff, #ffffff);
    padding: 16px 18px 6px;
    margin-bottom: 18px;
}

.btas-qgroup-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #e2ebf6;
}

.btas-badge {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 4px 10px -4px rgba(16, 34, 59, .35);
}

.btas-badge svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.btas-qgroup-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--btas-navy);
}

.btas-qgroup-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #8a99ad;
    letter-spacing: .01em;
}

.btas-qgroup-count {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 800;
    color: #7b8ca3;
    background: #f1f6fc;
    border-radius: 999px;
    padding: 3px 10px;
}

.btas-q {
    padding: 13px 0;
    border-bottom: 1px dashed #eaf0f8;
}

.btas-q:last-child {
    border-bottom: 0;
}

.btas-q-text {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 11px;
    color: #1b2f4a;
}

.btas-opts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btas-opt {
    position: relative;
    display: block;
    cursor: pointer;
}

.btas-opt input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.btas-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #33506f;
    background: #fff;
    border: 1.5px solid #d5e1ef;
    border-radius: 10px;
    padding: 10px 6px;
    transition: all .15s ease;
}

.btas-opt-symbol {
    font-size: 13px;
    font-weight: 900;
    opacity: .55;
}

.btas-opt:hover span {
    border-color: #9dbde0;
    background: #f4f9ff;
    transform: translateY(-1px);
}

.btas-opt input:checked + span {
    background: linear-gradient(135deg, #0a67c9, #0056b3);
    border-color: #0056b3;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(0, 86, 179, .8);
}

.btas-opt input:checked + span .btas-opt-symbol {
    opacity: 1;
}

.btas-opt input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .2);
}

.btas-note {
    font-size: 12.5px;
    color: #40587a;
    background: #f0f7ff;
    border: 1px solid #d7e8fa;
    border-left: 4px solid var(--btas-blue);
    border-radius: 10px;
    padding: 11px 14px;
    margin: 0 0 18px;
}

/* --------------------------------------------------------------- consent */

.btas-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 13.5px;
    color: #42566f;
    background: #f6faff;
    border: 1px solid #dbe8f6;
    border-radius: 12px;
    padding: 13px 15px;
    margin-top: 4px;
}

.btas-consent input {
    margin: 3px 0 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--btas-primary);
}

.btas-consent b {
    color: var(--btas-ink);
}

/* ---------------------------------------------------------------- result */

.btas-hero {
    position: relative;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btas-hero.btas-green { background: linear-gradient(135deg, #2f7a35, #4f9a34 55%, #7cb342); }
.btas-hero.btas-amber { background: linear-gradient(135deg, #a35a06, #d97f12 55%, #f39223); }
.btas-hero.btas-red   { background: linear-gradient(135deg, #8e1f1f, #b62a2a 55%, #d94b4b); }

.btas-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.btas-hero::before {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -70px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}

.btas-score-ring {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    border: 3px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(4px);
    flex: 0 0 auto;
}

.btas-score-ring b {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

.btas-score-ring small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
    margin-top: 3px;
}

.btas-tier {
    flex: 1 1 260px;
    min-width: 210px;
    position: relative;
    z-index: 1;
}

.btas-tier h3 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.3px;
    margin: 6px 0 6px;
    color: #fff;
}

.btas-tier p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
    max-width: 46ch;
}

.btas-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 11px;
    background: rgba(255, 255, 255, .95);
    color: #10223b;
}

.btas-domains {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.btas-domain {
    border: 1px solid #e6eef8;
    border-left: 5px solid #cbd8e8;
    border-radius: 12px;
    padding: 13px 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 34, 59, .04);
}

.btas-domain.btas-green { border-left-color: #5f9e34; }
.btas-domain.btas-amber { border-left-color: var(--btas-orange); }
.btas-domain.btas-red   { border-left-color: #d94b4b; }

.btas-domain-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.btas-domain-name {
    font-size: 14px;
    font-weight: 700;
    color: #1b2f4a;
}

.btas-domain-status {
    font-size: 12px;
    font-weight: 800;
}

.btas-domain-status.btas-green { color: #4a8230; }
.btas-domain-status.btas-amber { color: #b45309; }
.btas-domain-status.btas-red   { color: #c02b2b; }

.btas-bar {
    height: 9px;
    background: #eef3f9;
    border-radius: 999px;
    overflow: hidden;
}

.btas-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .5s ease;
}

.btas-bar.btas-green span { background: linear-gradient(90deg, #5f9e34, #8cc63f); }
.btas-bar.btas-amber span { background: linear-gradient(90deg, #ef8b1e, #f7b733); }
.btas-bar.btas-red span   { background: linear-gradient(90deg, #d94b4b, #ef7a7a); }

.btas-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #33455c;
}

.btas-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
}

.btas-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--btas-orange);
}

.btas-list.btas-steps-list li::before {
    background: var(--btas-green);
}

.btas-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 4px;
}

.btas-actions .btas-btn {
    flex: 1 1 200px;
}

.btas-ref {
    font-size: 12.5px;
    color: var(--btas-muted);
    text-align: center;
    margin: 18px 0 0;
}

.btas-ref b {
    color: var(--btas-ink);
    letter-spacing: .02em;
}

.btas-disclaimer {
    font-size: 12px;
    color: #75859b;
    background: #f7f9fc;
    border: 1px solid #e9eff7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 20px;
}

.btas-status {
    font-size: 13px;
    font-weight: 700;
    color: #4c6079;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btas-status.btas-warn {
    color: var(--btas-amber);
}

.btas-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #c9d4e2;
    border-top-color: var(--btas-primary);
    border-radius: 50%;
    animation: btas-spin .7s linear infinite;
}

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

.btas-alert {
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.btas-alert.btas-warn {
    background: var(--btas-amber-bg);
    border-color: #f0d6a8;
    color: #7a4a06;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 640px) {
    .btas-head h2 { font-size: 25px; }
    .btas-logo img { height: 42px; }
    .btas-grid { grid-template-columns: 1fr; }
    .btas-brand { padding: 18px 16px 12px; }
    .btas-brand img { height: 32px; }
    .btas-brand-tag { display: none; }
    .btas-card-head, .btas-card-body { padding-left: 16px; padding-right: 16px; }
    .btas-card-foot { padding: 16px; }
    .btas-card-foot .btas-btn { width: 100%; }
    .btas-step-label { display: none; }
    .btas-qgroup { padding: 14px 13px 4px; }
    .btas-q-text { font-size: 14.5px; }
    .btas-opt span { font-size: 12px; padding: 10px 3px; gap: 4px; }
    .btas-hero { padding: 18px; gap: 14px; }
    .btas-score-ring { width: 84px; height: 84px; }
    .btas-score-ring b { font-size: 24px; }
    .btas-tier h3 { font-size: 19px; }
    .btas-actions .btas-btn { flex: 1 1 100%; }
}
