:root {
  color-scheme: light;
  --paper: #fcfbf7;
  --ink: #24231f;
  --muted: #615f57;
  --line: #d4d0c5;
  --strong-line: #99958a;
  --gold: #efedc8;
  --focus: #595c24;
  --error: #962c30;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.45 var(--body); }
::selection { color: var(--ink); background: #e1dfa8; }
a { color: inherit; text-underline-offset: 0.22em; }
button, input, select { font: inherit; }
button, label:has(input[type="radio"]), select { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.masthead, .layout { max-width: 1180px; width: calc(100% - 96px); margin-inline: auto; }
.masthead { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; border-bottom: 1px solid var(--ink); }
.masthead-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.15rem 1.2rem; }
#form-language { color: var(--ink); background-color: var(--paper); border: 1px solid var(--strong-line); border-radius: 4px; min-height: 40px; padding: 0.3rem 0.45rem; font-size: 0.9rem; }
.wordmark { display: flex; flex: none; align-items: center; width: 12.5rem; min-height: 44px; }
.wordmark img { display: block; width: 100%; height: auto; }
.assistance { font-size: 0.87rem; font-weight: 550; padding-block: 0.6rem; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 2; transform: translateY(-180%); padding: 8px 14px; background: white; }
.skip-link:focus { transform: none; }
.layout { display: grid; grid-template-columns: minmax(245px, 0.8fr) minmax(350px, 1.2fr); column-gap: clamp(48px, 8vw, 126px); align-items: start; padding: clamp(50px, 6vw, 88px) 0 72px; }
.introduction { position: sticky; top: 32px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(3.5rem, 6.3vw, 5.6rem); font-weight: 520; line-height: 0.98; letter-spacing: -0.04em; }
h1 em { font: italic 1.09em/0.98 var(--display); }
.lead { max-width: 30ch; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.demo-panel { background: var(--gold); margin-top: 40px; padding: 16px 19px 15px; max-width: 340px; border-radius: 3px; }
.demo-panel strong { display: block; font-size: 0.93rem; }
.demo-panel p { font-size: 0.9rem; margin: 5px 0 6px; }
.text-button { border: 0; background: transparent; color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; font-size: 0.88rem; padding: 6px 0; }
.form-column { min-width: 0; }
#config-status { color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, h2 { font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.2; padding: 0; }
.hint, .privacy { font-size: 0.88rem; color: var(--muted); }
.legend-note { margin-top: 7px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .location-name { font-size: 0.95rem; font-weight: 600; }
.full-width { grid-column: 1/-1; }
.field input, .field select { width: 100%; min-width: 0; min-height: 47px; padding: 10px 12px; border: 1px solid var(--strong-line); border-radius: 4px; color: var(--ink); background-color: #fff; caret-color: var(--focus); line-height: 1.3; }
.field select { padding-right: 25px; }
.place-search { position: relative; }
#birthPlace-options { position: absolute; z-index: 1; inset: 100% 0 auto; margin: 3px 0 0; padding: 0; overflow-y: auto; max-height: min(16rem, 35vh); list-style: none; border: 1px solid var(--strong-line); border-radius: 4px; background: white; box-shadow: 0 3px 9px #24231f18; }
#birthPlace-options li { padding: 11px 12px; cursor: pointer; }
#birthPlace-options li[aria-selected="true"] { background: var(--gold); }
#birthPlace-status:empty { display: none; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], #studio-field.invalid .locations { border-color: var(--error); }
#fiscalCode { text-transform: uppercase; letter-spacing: 0.065em; }
.tax-code-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.tax-code-choice input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--ink); }
.error { display: block; color: var(--error); font-size: 0.9rem; }
.error:empty, #turnstile:empty { display: none; }
#turnstile { width: 100%; }
.personal-fields, #studio-field { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
#studio-field { margin-top: 30px; }
#studio-question { font-size: 0.96rem; margin: 8px 0 16px; }
.locations { border-top: 1px solid var(--line); }
.location { display: flex; align-items: center; gap: 13px; padding: 13px 10px 13px 4px; border-bottom: 1px solid var(--line); transition: background 140ms ease-out; }
.location:has(input:checked) { background: var(--gold); }
.location input { width: 19px; height: 19px; flex: 0 0 auto; margin: 0 0 0 4px; accent-color: var(--ink); }
.location-name { flex: 1; }
.address { font-size: 0.82rem; color: var(--muted); text-align: right; }
#locationId-error:not(:empty) { margin-top: 8px; }
#acknowledgements { margin-top: 30px; }
#documents-notice:not(:empty), #acknowledgements-error:not(:empty) { margin-top: 10px; }
#registration-documents { margin-top: 16px; border-top: 1px solid var(--line); }
.registration-document { border-bottom: 1px solid var(--line); }
.registration-document summary { padding: 13px 4px; min-height: 44px; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.registration-document summary::marker { color: var(--muted); }
.document-text { max-width: 68ch; line-height: 1.55; overflow-wrap: anywhere; }
.document-text p { margin-bottom: 0.9rem; white-space: pre-line; }
.document-text h3 { margin: 1rem 0 0.35rem; font-size: 1rem; }
.document-text > :first-child { margin-top: 0; }
.document-text .document-source-language { margin-bottom: 0.35rem; font-style: italic; }
.document-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 12px 4px 8px; cursor: pointer; }
.document-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
#acceptedDocuments-error:not(:empty) { margin: 0 4px 12px; }
.document-text .document-original { margin: 0 0 1.15rem; }
.document-text .document-original summary { font-weight: 500; font-size: 0.92rem; padding-block: 9px; }
#signature { margin-top: 24px; }
#signature legend { font-size: 1.12rem; }
#signature-prompt { margin: 7px 0 3px; }
.signature-methods { display: flex; gap: 2px 18px; flex-wrap: wrap; margin-block: 7px; }
.signature-methods label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.signature-methods input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
#signature-canvas { display: block; width: 100%; height: auto; touch-action: none; background: white; border: 1px solid var(--strong-line); border-radius: 4px; cursor: crosshair; }
#signature[aria-invalid="true"] #signature-canvas, #signature[aria-invalid="true"] #signature-name { border-color: var(--error); }
#signature-clear { min-height: 44px; }
#signature-clear:disabled { color: var(--muted); opacity: 0.65; cursor: default; }
#signature-error:not(:empty) { margin-top: 7px; }
.submit-area { margin-top: 23px; display: grid; justify-items: start; gap: 16px; }
.primary { border: 1px solid var(--ink); color: #fff; background: var(--ink); border-radius: 4px; min-height: 49px; padding: 12px 23px; font: 600 1rem/1.35 var(--body); text-decoration: none; text-align: center; }
.primary:hover { background: #424136; }
.primary:disabled { opacity: 0.65; }
#result { border-block: 1px solid var(--line); padding: 32px 0; }
#result p { margin: 12px 0 22px; max-width: 48ch; }
#result .primary { display: inline-block; }
@media (hover: hover) {
  .location:hover { background: #f1f0e8; }
  .location:has(input:checked):hover { background: var(--gold); }
}
@media (max-width: 780px) {
  .masthead, .layout { width: calc(100% - 48px); max-width: 620px; }
  .masthead { min-height: 69px; }
  .layout { display: block; padding: 34px 0 48px; }
  .introduction { position: static; }
  h1 { font-size: clamp(2.8rem, 6.8vw, 3.5rem); }
  h1 br { display: none; }
  .lead { max-width: 46ch; margin-top: 12px; }
  .demo-panel { margin-top: 20px; max-width: none; }
  .form-column { margin-top: 32px; }
  .field-grid { margin-top: 20px; }
}
@media (max-width: 460px) {
  .masthead, .layout { width: calc(100% - 36px); }
  .masthead { gap: 0.5rem; padding-block: 7px; }
  .masthead-tools { column-gap: 0.65rem; }
  .wordmark { width: clamp(8.25rem, 36vw, 10rem); }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .location { flex-wrap: wrap; column-gap: 11px; row-gap: 0; }
  .location-name { flex: 1 1 calc(100% - 46px); }
  .address { flex: 1 1 100%; padding-left: 34px; text-align: left; }
  .submit-area, .submit-area .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .location { transition: none; } }
