/* ═══════════════════════════════════════════════════════════════
   DIRECTION A, FORMS (2026-10-07)
   The working flows (candidate intake, discovery intake, contact,
   references, the calculator) keep their markup and scripts and take
   the light design from here. Class names are the live site's. Every
   colour and radius follows a.css: white tiles on a grey band, #F5F5F7
   fields, a 1.5px #D2D2D7 line, the teal pill button.
═══════════════════════════════════════════════════════════════ */

.pg-form { max-width: 720px; margin: 0 auto; }
.pg-form-wide { max-width: 1080px; }

/* ── What to expect (the cover) ── */
.cover { margin-bottom: 36px; }
.cover-label { margin: 0 0 14px; font-size: 0.95rem; font-weight: 600; color: var(--accent-ink); text-align: left; }
.cover-items { display: grid; gap: 10px; }
.cover-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: #FFFFFF; border-radius: 16px; }
.cover-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-ink); }
.cover-text { font-size: 1rem; line-height: 1.5; color: var(--text-2); }

/* ── Start card ── */
.start-card { text-align: center; margin-bottom: 36px; }
.start-btn { max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.start-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--text-3); text-align: center; }

/* ── Progress ── */
.progress { margin-bottom: 26px; }
.progress-steps { display: flex; align-items: center; justify-content: center; gap: 10px; }
.p-step { display: flex; align-items: center; gap: 8px; }
.p-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--text-3); background: #FFFFFF; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.p-name { font-size: 0.85rem; font-weight: 600; color: var(--text-3); transition: color 0.2s ease; }
.p-line { width: 44px; height: 1px; background: var(--line); }
.p-step.active .p-dot { background: var(--accent); border-color: var(--accent); color: #0B0C0E; }
.p-step.active .p-name { color: var(--text); }
.p-step.done .p-dot { background: rgba(45,212,191,0.18); border-color: var(--accent); color: var(--accent-ink); }
.p-step.done .p-name { color: var(--accent-ink); }
.progress-count { margin-top: 10px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--text-3); }

/* ── Panels (candidate flow uses .form-section, discovery uses .form-card) ── */
.form-section, .form-card { margin-bottom: 20px; padding: 34px 32px 32px; background: #FFFFFF; border-radius: var(--r); }
.step-panel { display: none; }
.step-panel.active { display: block; }
.section-label { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

/* ── Fields ── */
.field, .form-group { margin-bottom: 18px; }
.field label, .form-label { display: block; margin-bottom: 7px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field label .required, .form-label .req, .cf-label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea, .form-input, .form-select, .form-textarea, .cf-input, .calc-input, .calc-select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--grey); border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field select:focus, .field textarea:focus, .form-input:focus, .form-select:focus, .form-textarea:focus, .cf-input:focus, .calc-input:focus, .calc-select:focus {
  border-color: var(--accent-ink); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(45,212,191,0.18); }
.field input::placeholder, .field textarea::placeholder, .form-input::placeholder, .form-textarea::placeholder, .cf-input::placeholder { color: #9A9AA0; }
.field select, .form-select, .cf-select, .calc-select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23636368' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field textarea, .form-textarea, .cf-textarea { min-height: 110px; resize: vertical; }
.field-row, .form-row, .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { margin-bottom: 0; align-items: end; }
.field-hint { margin-top: 6px; font-size: 0.82rem; line-height: 1.5; color: var(--text-3); }
.field-error, .flow-err, .form-err, .form-error { display: none; margin-top: 8px; font-size: 0.88rem; color: #B42318; }
.flow-err, .form-err, .form-error { text-align: center; margin: 14px 0 0; }
.form-divider { height: 1px; background: var(--line); margin: 26px 0; }
.form-note { margin: 20px 0 0; text-align: center; font-size: 0.9rem; line-height: 1.55; color: var(--text-3); }

/* ── Multi-select pills ── */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-grid .checkbox-item { display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 16px; background: var(--grey); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 0.95rem; font-weight: 500; color: var(--text); user-select: none; line-height: 1.3; transition: border-color 0.2s ease, background-color 0.2s ease; }
.checkbox-grid .checkbox-item:hover { border-color: var(--accent-ink); }
.checkbox-grid .checkbox-item input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; width: 17px; height: 17px; min-width: 17px; flex: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; accent-color: var(--accent-ink); cursor: pointer; }
.checkbox-grid .checkbox-item span { flex: 1; }
.checkbox-grid .checkbox-item:has(input:checked) { border-color: var(--accent-ink); background: rgba(45,212,191,0.12); }

/* ── Upload ── */
.upload-area { padding: 28px 20px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.upload-area:hover { border-color: var(--accent-ink); background: rgba(45,212,191,0.06); }
.upload-area svg { width: 28px; height: 28px; color: var(--accent-ink); margin: 0 auto 8px; display: block; }
.upload-area p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.upload-area .upload-hint { margin-top: 4px; font-size: 0.82rem; color: var(--text-3); }
.upload-area input[type="file"] { display: none; }
.file-name { margin-top: 8px; text-align: center; font-size: 0.9rem; color: var(--accent-ink); }

/* ── Buttons ── */
.submit-btn, .cf-submit { width: 100%; margin-top: 8px; padding: 17px 28px; font: inherit; font-size: 1rem; font-weight: 600; color: #0B0C0E; background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background-color 0.2s ease, transform 0.2s ease; }
.submit-btn:hover, .cf-submit:hover { background: #5EE2D1; transform: translateY(-1px); }
.submit-btn:disabled, .cf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.submit-btn svg { width: 17px; height: 17px; }
.step-nav { display: flex; gap: 12px; margin-top: 22px; }
.step-nav .submit-btn { margin-top: 0; flex: 1; }
.back-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 16px 22px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); background: transparent; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color 0.2s ease; }
.back-btn:hover { border-color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--text); }

/* ── The calendar step (discovery) ── */
.calendly-section { margin-bottom: 36px; }
.cal-head { text-align: center; margin-bottom: 22px; }
.cal-head .cover-label { text-align: center; margin-bottom: 10px; }
.cal-title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
.cal-sub { margin: 0 auto; max-width: 460px; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.calendly-wrapper { min-height: 540px; border-radius: 20px; overflow: hidden; background: #FFFFFF; }
.bottom { text-align: center; margin-top: 28px; }
.bottom-lock { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-3); }
.bottom-lock svg { width: 14px; height: 14px; color: var(--accent-ink); }

/* ── Contact ── */
.pg-contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cf-wrap { padding: 36px 34px; background: #FFFFFF; border-radius: var(--r); }
.cf-head { margin-bottom: 26px; }
.cf-title { margin: 0 0 6px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.cf-title em { font-style: normal; color: var(--accent-ink); }
.cf-sub { font-size: 0.98rem; line-height: 1.55; color: var(--text-2); }
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cf-success { display: none; text-align: center; padding: 48px 20px; }
.cf-success.show { display: block; }
.cf-success-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(45,212,191,0.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.cf-success-icon svg { width: 26px; height: 26px; color: var(--accent-ink); }
.cf-success h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 600; color: var(--text); }
.cf-success h3 em { font-style: normal; color: var(--accent-ink); }
.cf-success p { margin: 0; font-size: 1rem; color: var(--text-2); }
.cf-form.hidden { display: none; }
.pg-contact-aside dl { margin: 0; display: grid; gap: 18px; }
.pg-contact-aside dt { font-size: 0.85rem; font-weight: 600; color: var(--text-3); margin-bottom: 3px; }
.pg-contact-aside dd { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--text); }
.pg-contact-aside dd a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(14,124,112,0.4); text-underline-offset: 3px; }
/* Hours as a small table, one day per line (Blake, 2026-10-07). */
.pg-hours { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; max-width: 300px; }
.pg-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 7px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
.pg-hours li::before { content: none; }
.pg-hours li span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pg-hours-note { margin: 12px 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--text-3); }

/* ── References ── */
.pg-refs .header { text-align: center; margin-bottom: 36px; }
.pg-refs .header h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--text); }
.pg-refs .header h1 em { font-style: normal; color: var(--accent-ink); }
.pg-refs .header-desc { margin: 0 auto; max-width: 540px; font-size: 1.05rem; line-height: 1.6; color: var(--text-2); }
.pg-refs .header-desc strong { color: var(--text); font-weight: 600; }
.ref-meta { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 8px 18px; background: #FFFFFF; border-radius: 999px; font-size: 0.9rem; color: var(--text-2); }
.ref-meta svg { width: 15px; height: 15px; color: var(--accent-ink); }
.state { text-align: center; padding: 48px 24px; color: var(--text-2); }
.state-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(45,212,191,0.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.state-icon svg { width: 28px; height: 28px; color: var(--accent-ink); }
.state h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.state h2 em { font-style: normal; color: var(--accent-ink); }
.state p { margin: 0 auto; max-width: 440px; font-size: 1rem; line-height: 1.6; }
.ty-content { text-align: center; max-width: 600px; margin: 0 auto; padding-top: 8px; }
.ty-check { width: 72px; height: 72px; border-radius: 50%; background: rgba(45,212,191,0.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.ty-check svg { width: 34px; height: 34px; color: var(--accent-ink); }
.ty-h1 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--text); }
.ty-h1 em { font-style: normal; color: var(--accent-ink); }
.ty-desc { margin: 0 0 32px; font-size: 1.08rem; line-height: 1.65; color: var(--text-2); }
.ty-steps { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 36px; position: relative; }
.ty-step { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; width: 160px; position: relative; z-index: 1; }
.ty-step-num { width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); position: relative; z-index: 2; }
.ty-step-text { font-size: 0.9rem; line-height: 1.45; text-align: center; color: var(--text-2); }
.ty-step-line { position: absolute; top: 17px; left: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--line); z-index: 0; }
.ty-step:last-child .ty-step-line { display: none; }
.ty-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ref-block { position: relative; margin-bottom: 16px; padding: 24px 22px 20px; background: #FFFFFF; border-radius: 20px; }
.ref-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ref-block-title { font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
.ref-remove { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-3); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.ref-remove:hover { color: #B42318; }
.ref-remove svg { width: 13px; height: 13px; }
.field:last-child { margin-bottom: 0; }
.year-range { display: flex; align-items: center; gap: 10px; }
.year-range select { flex: 1; min-width: 0; }
.year-to { flex: none; font-size: 0.95rem; color: var(--text-3); }
.add-ref { width: 100%; margin-bottom: 24px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--accent-ink); background: transparent; border: 1.5px dashed rgba(14,124,112,0.5); border-radius: 14px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.add-ref:hover { border-color: var(--accent-ink); background: rgba(45,212,191,0.08); }
.add-ref:disabled { opacity: 0.4; cursor: not-allowed; }
.add-ref svg { width: 15px; height: 15px; }
.hidden { display: none; }

/* ── Calculator ── */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.calc-card { position: relative; overflow: hidden; padding: 36px 34px; background: #FFFFFF; border-radius: var(--r); }
.calc-card.calc-output-card { background: #0B0C0E; color: #FFFFFF; }
.calc-cap { margin: 0 0 10px; font-size: 0.95rem; font-weight: 600; color: var(--accent-ink); }
.calc-output-card .calc-cap { color: var(--accent); }
.calc-card h2 { margin: 0 0 26px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.calc-card h2 em { font-style: normal; color: var(--accent-ink); }
.calc-output-card h2 { color: #FFFFFF; }
.calc-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.calc-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.calc-help { font-size: 0.82rem; line-height: 1.5; color: var(--text-3); }
.calc-input-wrap { position: relative; }
.calc-input.has-prefix { padding-left: 34px; }
.calc-input-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1rem; font-weight: 600; color: var(--text-3); pointer-events: none; }
.calc-output-block { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.calc-output-block:last-of-type { border-bottom: 0; margin-bottom: 0; }
.calc-output-label { margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.calc-output-big { margin-bottom: 6px; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-output-sub { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.68); }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.calc-breakdown-item { display: flex; flex-direction: column; gap: 4px; }
.calc-breakdown-num { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.calc-breakdown-lbl { font-size: 0.85rem; line-height: 1.4; color: rgba(255,255,255,0.62); }
.calc-context { padding: 16px 18px; background: rgba(45,212,191,0.1); border-radius: 14px; font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.88); }
.calc-context strong { color: var(--accent); font-weight: 600; }
.method-body p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.65; color: var(--text-2); }
.method-body p:last-child { margin-bottom: 0; }
.method-body strong { color: var(--text); font-weight: 600; }
.method-formula { margin: 20px 0; padding: 20px 22px; background: var(--grey); border-radius: 16px; }
.method-formula-cap { margin-bottom: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-3); }
.method-formula code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; line-height: 1.6; color: var(--text); }
.method-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.method-source-pill { display: inline-block; padding: 6px 12px; background: var(--grey); border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); }

/* ── Tablet and phone ── */
@media (max-width: 860px) {
  .pg-contact, .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-section, .form-card, .cf-wrap, .calc-card { padding: 26px 20px 24px; }
  .field-row, .form-row, .cf-row, .checkbox-grid, .calc-breakdown { grid-template-columns: 1fr; }
  .p-name { display: none; }
  .p-line { width: 20px; }
  .field input, .field select, .field textarea, .form-input, .form-select, .form-textarea, .cf-input, .calc-input, .calc-select { font-size: 16px; }
  .ty-steps { flex-direction: column; align-items: center; }
  .ty-step { width: 280px; flex-direction: row; gap: 16px; padding-bottom: 24px; }
  .ty-step-text { text-align: left; padding-top: 6px; }
  .ty-step-line { display: none; }
}
