:root {
  --ink: #17252b;
  --ink-soft: #53656a;
  --ivory: #f8f4ed;
  --paper: #fffdf9;
  --teal: #0d7774;
  --teal-dark: #075a5a;
  --copper: #b9674f;
  --line: #d9ded7;
  --focus: #e7a543;
  --shadow: 0 24px 70px rgba(23, 37, 43, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--teal), var(--copper)); }
main { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 74px 0 90px; }
.site-header { max-width: 760px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; color: var(--ivory); background: var(--ink); border-radius: 50%; font-size: .62rem; letter-spacing: 0; vertical-align: middle; }
.course-tag { margin-left: 12px; padding-left: 12px; color: var(--copper); border-left: 1px solid #c7b6a7; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
h1 { max-width: 720px; font-size: clamp(2.7rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.intro { max-width: 620px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.contact-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: stretch; }
.contact-panel, .form-card { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.contact-panel { display: flex; flex-direction: column; padding: 42px; color: var(--ivory); background: var(--ink); }
.contact-panel .eyebrow { color: #9ad3c8; }
.contact-panel h2 { max-width: 330px; color: white; }
.contact-panel > p:not(.eyebrow):not(.panel-note) { color: #bdcdcb; }
.contact-details { margin: 40px 0 0; }
.contact-details div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-details dt { color: #9ad3c8; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 5px 0 0; color: white; }
.panel-note { margin-top: auto; padding-top: 40px; color: #e7b19c; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.form-card { padding: 42px; background: var(--paper); }
.section-heading { margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field-wide, .choice-group, .form-actions { grid-column: 1 / -1; }
.field label, legend { display: block; color: var(--ink); font-size: .83rem; font-weight: 800; }
input, textarea, select { width: 100%; margin-top: 8px; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #b9c6c2; border-radius: 9px; font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { min-height: 132px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid rgba(231,165,67,.36); outline-offset: 2px; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
/* Validation-ready states keep feedback visually consistent with the palette. */
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #b34d46; background: #fff8f6; box-shadow: 0 0 0 3px rgba(179,77,70,.12); }
input:user-valid, textarea:user-valid, select:user-valid { border-color: var(--teal); background: #f5fbf9; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #b34d46; background: #fff8f6; }
.field.is-valid input, .field.is-valid textarea, .field.is-valid select { border-color: var(--teal); background: #f5fbf9; }
.choice-group { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.choice-group label { display: inline-flex; align-items: center; gap: 8px; margin: 14px 24px 0 0; font-weight: 500; }
.choice-group input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.button { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: transparent; border-color: #9ab9b1; }
.button-secondary:hover { background: #edf7f4; }
.status-message { margin-top: 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.status-message.info { color: var(--teal-dark); background: #edf7f4; }
.status-message.success { color: #155f4d; background: #e5f5ed; }
.status-message.error { color: #8d3933; background: #fff0ed; }
.preview-section { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #f5faf7; }
.preview-section h2 { font-size: 1.8rem; }
.preview-note { color: var(--ink-soft); }
#preview-list { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; gap: 10px 18px; margin: 20px 0 0; }
#preview-list dt { color: var(--teal-dark); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#preview-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 820px) { main { width: min(100% - 36px, 620px); padding-top: 56px; } .contact-layout { grid-template-columns: 1fr; } .contact-panel { min-height: 300px; } }
@media (max-width: 560px) { main { width: min(100% - 28px, 440px); padding: 48px 0 56px; } h1 { font-size: clamp(2.5rem, 13vw, 4rem); } .form-card, .contact-panel { padding: 26px 20px; border-radius: 14px; } form { grid-template-columns: 1fr; gap: 18px; } .field-wide, .choice-group, .form-actions { grid-column: auto; } .form-actions { flex-direction: column; } .button { width: 100%; } }
