/* Intake step shell, modelled on the apply.entry.com/passport wizard: one card width, one header row
   (Back · section · progress · count), one tile pattern and one field style on every step.
   Loaded last so it settles the older intake rules in styles.css, forms.css and mobile-forms.css. */

/* Card */
.intake-shell{width:min(calc(100% - 32px),820px);max-width:820px;margin:24px auto 64px;padding:0}
.intake-shell .intake-main,.intake-shell.planning-flow .intake-main{max-width:none;margin:0;padding:16px 48px 32px;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 18px 40px #1a22370d}

/* Header row */
.intake-shell .flow-top{display:flex;align-items:center;gap:12px;margin:0;padding:4px 0;font-size:inherit;color:inherit}
.intake-shell .flow-back{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin-left:-10px;padding:0 12px 0 8px;border:0;border-radius:999px;background:transparent;box-shadow:none;color:var(--ink);font-size:15px;font-weight:500}
.intake-shell .flow-back:hover{background:var(--soft)}
.intake-shell .flow-back .icon{width:18px;height:18px}
.intake-shell .flow-back:disabled{visibility:hidden}
.intake-shell .flow-section{flex:none;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.intake-shell .flow-top progress{flex:1 1 auto;width:auto;min-width:40px;height:8px;margin:0;border:0;border-radius:999px;background:var(--soft);overflow:hidden;appearance:none;-webkit-appearance:none}
.intake-shell .flow-top progress::-webkit-progress-bar{background:var(--soft);border-radius:999px}
.intake-shell .flow-top progress::-webkit-progress-value{background:var(--accent);border-radius:999px}
.intake-shell .flow-top progress::-moz-progress-bar{background:var(--accent);border-radius:999px}
.intake-shell .flow-count{flex:none;min-width:36px;text-align:right;color:var(--ink);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}

/* Heading */
.intake-shell .question-heading,.intake-shell.planning-flow .question-heading{max-width:none;margin:24px 0}
.intake-shell .question-heading h1{margin:0 0 8px;font-size:clamp(26px,3.4vw,34px);line-height:1.12;letter-spacing:-.025em}
.intake-shell .question-heading p{margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.intake-shell .error-summary{margin:0 0 20px}

/* One vertical rhythm inside the form */
.intake-shell #intake-fields{display:flex;flex-direction:column;gap:20px}
.intake-shell #intake-fields>*{margin-top:0;margin-bottom:0}
.intake-shell #intake-fields .helper{margin:0;color:var(--muted);font-size:13px;line-height:1.5}

/* Fields */
.intake-shell .field{margin:0 0 16px}
.intake-shell .field:last-child,.intake-shell .field-grid>.field,.intake-shell .name-input>.field{margin-bottom:0}
.intake-shell .name-input{align-items:start}
.intake-shell .name-step-footer{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.intake-shell .name-step-footer>p{align-self:stretch;margin:0}
.intake-shell .name-backup>summary,.intake-shell .name-ideas-link{min-height:44px;padding:0}
.intake-shell .name-backup>summary>span{color:var(--muted)}
.intake-shell .field-grid{gap:16px;margin-bottom:16px}
.intake-shell .field-grid:last-child{margin-bottom:0}
.intake-shell .field>span:first-child,.intake-shell .field>label:first-child,.intake-shell .field-label{display:block;margin:0 0 8px;color:var(--ink);font-size:14px;font-weight:600;letter-spacing:0;text-transform:none}
.intake-shell .field>span:first-child em{margin-left:6px;color:var(--muted);font-size:12px;font-style:normal;font-weight:500}
.intake-shell #intake-fields input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.intake-shell #intake-fields select,.intake-shell #intake-fields textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid #d5d8e3;border-radius:14px;background:#fff;box-shadow:none;color:var(--ink);font-size:16px;line-height:1.35}
.intake-shell #intake-fields textarea{min-height:96px;resize:vertical}
/* One drawn chevron for every dropdown, inset from the edge like the text */
.intake-shell #intake-fields select{appearance:none;-webkit-appearance:none;padding-right:44px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636a7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/16px 16px;text-overflow:ellipsis}
.intake-shell #intake-fields .phone-dial-control select{padding-right:28px;background-position:right 8px center;background-color:transparent}
.intake-shell #intake-fields input:not([type=checkbox]):not([type=radio]):focus,.intake-shell #intake-fields select:focus,.intake-shell #intake-fields textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px #5d43ed1f;outline:none}
.intake-shell #intake-fields [aria-invalid=true]{border-color:#c2412d}
.intake-shell .phone-number-control{min-height:48px;border:1px solid #d5d8e3;border-radius:14px;background:#fff;box-shadow:none}
.intake-shell .phone-number-control:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px #5d43ed1f}
.intake-shell #intake-fields .phone-number-control input,.intake-shell #intake-fields .phone-number-control input:focus{min-height:46px;border:0;border-radius:0 14px 14px 0;box-shadow:none}
.intake-shell .field-error{display:block;margin-top:6px;font-size:13px}

/* Search box: the input carries the border and the ring, the box only places the icon */
.intake-shell .search-box{position:relative;padding:0;border:0;background:none;box-shadow:none}
.intake-shell .search-box>.icon{position:absolute;top:50%;left:14px;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.intake-shell #intake-fields .search-box input:not([type=checkbox]):not([type=radio]):not([type=hidden]){padding-left:44px}

/* One tile pattern for every list of options */
.intake-shell .choices,.intake-shell .value-choices,.intake-shell .formation-lane-list,.intake-shell .plan-options,.intake-shell .state-list,.intake-shell .offer-list{display:flex;flex-direction:column;gap:10px;margin:0}
.intake-shell .choice,.intake-shell .plan-card,.intake-shell .offer-row,.intake-shell .state-option{width:100%;margin:0;border:0;border-radius:16px;background:#f8f8fc;box-shadow:inset 0 0 0 1px #1a223714;color:var(--ink);text-align:left;transition:background .15s,box-shadow .15s,transform .15s}
.intake-shell .choice,.intake-shell .offer-row{display:flex;align-items:center;gap:12px;min-height:80px;padding:16px}
.intake-shell .choice:hover:not(:disabled),.intake-shell .plan-card:hover,.intake-shell .offer-row:hover,.intake-shell .state-option:hover{background:#f3f1fd;transform:translateY(-1px)}
.intake-shell .choice.selected,.intake-shell .plan-card.selected,.intake-shell .offer-row.selected,.intake-shell .state-option.selected{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.intake-shell .choice:disabled,.intake-shell .choice[aria-disabled=true]{opacity:.55;transform:none}
.intake-shell .choice-icon{display:grid;flex:none;place-items:center;width:48px;height:48px;border-radius:12px;background:#e9e5ff;color:var(--accent)}
.intake-shell .choice.selected .choice-icon{background:var(--accent);color:#fff}
.intake-shell .choice-icon .icon{width:20px;height:20px}
.intake-shell .choice strong,.intake-shell .offer-row strong{font-size:15.5px;font-weight:700;letter-spacing:-.01em}
.intake-shell .choice small,.intake-shell .offer-row small{display:block;margin-top:2px;color:var(--muted);font-size:12.5px;font-weight:500;line-height:1.45}
.intake-shell .choice-radio{display:grid;flex:none;place-items:center;width:28px;height:28px;margin-left:auto;border:0;border-radius:999px;background:#5d43ed1a;color:var(--accent)}
.intake-shell .choice.selected .choice-radio{background:var(--accent);color:#fff}
.intake-shell .choice-radio .icon{width:16px;height:16px}
.intake-shell .state-list{max-height:none;border:0;background:none;padding:0;overflow:visible}
.intake-shell .state-option{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border-bottom:0}
.intake-shell .state-option>span{flex:1;font-size:15px;font-weight:600}
.intake-shell .state-option small{color:var(--muted);font-size:12.5px}
.intake-shell .state-option .icon{width:18px;height:18px;color:var(--accent)}
.intake-shell .plan-card{padding:20px}
.intake-shell .plan-card.disabled,.intake-shell .plan-card[aria-disabled=true]{opacity:.55}

/* Short answers (Yes / No) use the same selection language as tiles */
.intake-shell .bubble-options{gap:10px}
.intake-shell .bubble-option{min-height:48px;padding:0 16px;border:0;border-radius:14px;background:#f8f8fc;box-shadow:inset 0 0 0 1px #1a223714;color:var(--ink);font-size:14px;font-weight:600}
.intake-shell .bubble-option.selected,.intake-shell .bubble-option[aria-pressed=true]{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent-dark)}

/* Sections: one level only. A section is a title and a hairline, never a box inside the card */
.intake-shell .simple-form-section{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.intake-shell .simple-form-section>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.intake-shell .simple-form-section>header strong{color:var(--ink);font-size:16px;font-weight:700}
.intake-shell .simple-form-section>header small{color:var(--muted);font-size:12.5px;text-align:right}
.intake-shell .guided-question,.intake-shell .progressive-question,.intake-shell .progressive-question[data-progressive-complete=true]{margin:0;padding:0 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.intake-shell .guided-question:not(.progressive-question):last-child{padding-bottom:0;border-bottom:0}
.intake-shell .progressive-section>div{display:flex;flex-direction:column;gap:20px}
.intake-shell .guided-question legend,.intake-shell .guided-question-content>.field>span:first-child{color:var(--ink);font-size:15px;font-weight:600}
.intake-shell .guided-question-number{background:#e9e5ff;color:var(--accent)}
.intake-shell .owner-card{margin:0 0 12px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:none}
.intake-shell .soft-note,.intake-shell .notice{margin:0;border-radius:14px;font-size:13px;line-height:1.5}
.intake-shell .soft-note strong{margin-right:6px}

/* Actions: one full-width Continue with the short note under it */
.intake-shell .flow-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:32px 0 0;padding:0;border:0}
.intake-shell .flow-actions .primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:none;min-height:56px;margin:0;padding:0 20px;border-radius:16px;font-size:16px;font-weight:700;letter-spacing:-.01em}
.intake-shell .flow-actions .primary .icon{width:20px;height:20px}
.intake-shell .flow-short-note{display:block;max-width:none;margin:0;text-align:center;color:var(--muted);font-size:12px;line-height:1.4}

/* Review: passport-style sections of label / value rows */
.intake-shell .review-missing{padding:16px 18px;border:1px solid #f1c4bb;border-radius:16px;background:#fff5f3;color:#8a2b1c}
.intake-shell .review-missing strong{display:block;font-size:15px}
.intake-shell .review-missing ul{margin:8px 0 6px;padding-left:18px;font-size:14px;line-height:1.5}
.intake-shell .review-missing .text-button{min-height:44px;padding:0;color:#8a2b1c;font-weight:700}
.intake-shell .review-sections{display:flex;flex-direction:column;gap:12px}
.intake-shell .review-section{padding:20px 22px 8px;border:1px solid var(--line);border-radius:20px;background:#fff}
.intake-shell .review-section h2{display:flex;align-items:center;gap:10px;margin:0 0 6px;color:var(--ink);font-size:16px;font-weight:700}
.intake-shell .review-section h2 .icon{width:20px;height:20px;color:var(--accent)}
.intake-shell .review-section .review-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #f0eff6}
.intake-shell .review-section .review-row:last-child{border-bottom:0}
.intake-shell .review-label{color:var(--muted);font-size:14px}
.intake-shell .review-value{color:var(--ink);font-size:14px;font-weight:500;line-height:1.5;text-align:right;overflow-wrap:anywhere}
.intake-shell .review-row .text-button{min-width:44px;min-height:32px;padding:0 4px;font-size:13px;font-weight:600}
.intake-shell .review-section .review-row{padding:8px 0}
.intake-shell .estimate-card{margin:0;padding:20px 22px;border:1px solid var(--line);border-radius:20px}
.intake-shell .estimate-card .price-line{font-size:14px}
.intake-shell .estimate-card .estimate-note,.intake-shell .estimate-card .renewal-line{font-size:12.5px;line-height:1.5}
.intake-shell .estimate-card .helper{margin-top:12px}
.intake-shell .consent,.intake-shell .consent>span{margin:0;font-size:14px;line-height:1.5}
.intake-shell .agent-attestations{display:flex;flex-direction:column;gap:10px}
.intake-shell .agent-attestation{align-items:center;min-height:52px;padding:12px 16px;border-radius:14px}
.intake-shell .agent-attestation>span{color:var(--text);font-size:13.5px}

/* Phones: the passport card runs edge to edge and keeps the sticky Continue bar */
@media(max-width:640px){
 .intake-shell{width:100%;margin:0 0 120px}
 .intake-shell .intake-main,.intake-shell.planning-flow .intake-main{padding:8px 16px 24px;border:0;border-radius:0;box-shadow:none}
 .intake-shell .flow-section{display:none}
 .intake-shell .flow-count{font-size:13px}
 .intake-shell .question-heading,.intake-shell.planning-flow .question-heading{margin:16px 0 20px}
 .intake-shell .question-heading h1{font-size:26px}
 .intake-shell .field-grid{grid-template-columns:minmax(0,1fr)}
 .intake-shell .choice,.intake-shell .offer-row{min-height:72px;padding:14px}
 .intake-shell .choice-icon{width:44px;height:44px}
 .intake-shell .simple-form-section>header{flex-direction:column;gap:4px}
 .intake-shell .simple-form-section>header small{text-align:left}
 .intake-shell .flow-actions{position:fixed;right:0;bottom:0;left:0;z-index:20;gap:6px;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e6e3f4;background:#f8f9fcf5;backdrop-filter:blur(12px)}
 .intake-shell .flow-actions .primary{min-height:52px}
 .intake-shell .review-section{padding:16px 16px 4px}
 .intake-shell .review-section .review-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 0}
 .intake-shell .review-label{grid-column:1;font-size:13px}
 .intake-shell .review-value{grid-column:1;text-align:left}
 .intake-shell .review-row .text-button{grid-column:2;grid-row:1 / span 2;min-height:44px}
}
.intake-shell .review-edit-spacer{min-width:44px}

/* Checkout sits in the same card and header row as the form, wide enough for package + summary side by side */
.checkout-shell.intake-shell{width:min(calc(100% - 32px),1120px);max-width:1120px}
.checkout-shell .intake-main{padding:16px 48px 40px}
.checkout-shell .checkout-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:40px;margin-top:28px}
.checkout-shell .checkout-step{margin:0 0 6px;font-size:11px;letter-spacing:.16em;color:var(--muted)}
.checkout-shell .checkout-title{margin:0 0 20px;font-size:clamp(24px,2.6vw,30px);line-height:1.15;letter-spacing:-.025em}
.checkout-shell .checkout-plans{gap:14px}
.checkout-shell .checkout-plan{padding:18px;border:0;border-radius:16px;background:#f8f8fc;box-shadow:inset 0 0 0 1px #1a223714}
.checkout-shell .checkout-plan.selected{padding:18px;border:0;background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.checkout-shell .checkout-popular{top:-11px;left:18px}
.checkout-shell .checkout-note{margin:16px 0 0;font-size:13px}
.checkout-shell .checkout-card{border:1px solid var(--line);border-radius:20px}
.checkout-shell .checkout-card+.checkout-card{margin-top:16px}
.checkout-shell .checkout-pay{padding:20px;gap:14px}
.checkout-shell .checkout-pay-button{min-height:56px;border-radius:16px;font-size:16px;font-weight:700}
.checkout-shell .checkout-consent{font-size:13.5px;line-height:1.5}
.checkout-shell .checkout-trust{margin:0;text-align:center;font-size:12.5px;color:var(--muted)}
@media(max-width:960px){
 .checkout-shell .checkout-grid{grid-template-columns:minmax(0,1fr);gap:32px}
}
@media(max-width:640px){
 .checkout-shell.intake-shell{width:100%;margin-bottom:48px}
 .checkout-shell .intake-main{padding:8px 16px 32px}
 .checkout-shell .checkout-grid{margin-top:16px}
 .checkout-shell .checkout-plan{grid-template-columns:44px minmax(0,1fr) auto;gap:12px;padding:16px}
 .checkout-shell .checkout-plan.selected{padding:16px}
 .checkout-shell .checkout-radio{display:none}
 .checkout-shell .checkout-summary-body{padding:18px 18px 8px}
 .checkout-shell .checkout-total{padding:16px 18px}
 .checkout-shell .checkout-pay{padding:16px}
}

.intake-shell .estimate-heading h2{margin:0;font-size:17px}
/* The help launcher stays out of the way on checkout phones, as it does on the form steps */
@media(max-width:760px){body:has(.checkout-shell) .support-launcher{display:none}}
.field .field-character-hint{display:block;margin-top:7px;color:#69748a;font-size:11px;line-height:1.5;font-weight:400}
.intake-shell .bubble-question>.activity-review{margin:16px 0 0}
.intake-shell .progressive-follow-up+.activity-review{margin-top:16px}
/* Invalid text inputs get the same red border as selects and the phone field */
.intake-shell #intake-fields input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),.intake-shell #intake-fields select[aria-invalid=true],.intake-shell #intake-fields textarea[aria-invalid=true],.intake-shell .phone-number-control:has([aria-invalid=true]){border-color:#c2412d}
.intake-shell #intake-fields input[aria-invalid=true]:focus,.intake-shell #intake-fields textarea[aria-invalid=true]:focus{box-shadow:0 0 0 4px #c2412d1f}
.intake-shell .agent-reset-note{margin:0 0 20px}
.error-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:24px}
/* Long fee labels wrap inside the state row instead of widening the page on phones */
.intake-shell .state-option>span{flex:1 1 40%;min-width:0;overflow-wrap:anywhere}
.intake-shell .state-option small{flex:0 1 auto;min-width:0;max-width:55%;white-space:normal;text-align:right;line-height:1.35}
