:root{
  --bg:#f7f7f8;
  --card:#fff;
  --text:#111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#2563eb;
  --danger:#ef4444;
}

/* base */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  margin:0;
  padding:32px;
  color:var(--text);
}
.container{
  max-width:980px;                /* wider card */
  margin:0 auto;
  background:var(--card);
  padding:24px;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
h2{
  margin:0 0 16px;
  font-size:32px;
  line-height:1.2;
  text-align:center;
}
label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#374151;
  margin-bottom:6px;
}
.field{ display:flex; flex-direction:column }
input:not([type="checkbox"]),select,textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:14px;
  background:#fff;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
.actions{ display:flex; gap:16px; align-items:center; margin-top:6px }
button{ border:0; border-radius:14px; padding:12px 18px; font-weight:700; cursor:pointer }
button.primary{ background:var(--primary); color:#fff }
button.danger{ background:var(--danger); color:#fff }
small,.help{ color:var(--muted); font-size:12px }

/* ===== Form layout (3 columns) =====
   Row 1: Title | First | Last
   Row 2: DOB   | Email | Phone
   Row 3: Address (full width)
*/
#subscribe-form{
  display:grid;
  grid-template-columns: 300px 1fr 1fr;  /* wider first column → bigger DOB */
  gap:24px;                              /* more space between columns/rows */
  grid-auto-flow:dense;
  align-items:end;
}

/* Row 1: Title | First | Last (matches current HTML order) */
#subscribe-form > .field:nth-of-type(1){ grid-column:1; grid-row:1; } /* Title  */
#subscribe-form > .field:nth-of-type(2){ grid-column:2; grid-row:1; } /* First  */
#subscribe-form > .field:nth-of-type(3){ grid-column:3; grid-row:1; } /* Last   */

/* Row 2: DOB | Email | Phone */
#subscribe-form > .field:nth-of-type(4){ grid-column:1; grid-row:2; } /* DOB    */
#subscribe-form > .field:nth-of-type(5){ grid-column:2; grid-row:2; } /* Email  */
#subscribe-form > .field:nth-of-type(6){ grid-column:3; grid-row:2; } /* Phone  */

/* Row 3: Address spans full width */
#subscribe-form .full{ grid-column:1 / -1; }

/* Field sizing */
#title{ width:80px; min-width:80px; }     /* compact title */
#dob{   width:100%; }                      /* now fills 300px column (~3× old) */
#email{ width:100%; }                      /* align edges cleanly */
#phone{ width:100%; }                      /* align edges cleanly */
/* if you prefer Phone a bit slimmer:  #phone{ width:85%; } */

/* Consent + T&Cs */
input[type="checkbox"]{ width:auto }
.consent{ display:flex; align-items:center; gap:10px; font-weight:600 }
.terms-note{ margin-top:6px }
a.terms-link{ font-size:13px }

/* ===== Modal (T&Cs) ===== */
.modal{ position:fixed; inset:0; display:none }
.modal.show{ display:block }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35) }
.modal-dialog{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(920px,94vw); max-height:80vh; overflow:auto;
  background:#fff; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.modal-header{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--border) }
.modal-body{ padding:18px }
.modal h3{ margin:0 0 10px }
.modal .close{ background:transparent; border:0; font-size:20px; cursor:pointer }

/* ===== Mobile ===== */
@media (max-width:780px){
  .container{ padding:18px }
  #subscribe-form{ grid-template-columns:1fr; gap:14px }
  #subscribe-form > .field:nth-of-type(n){ grid-column:1; grid-row:auto }
  #title,#dob,#email,#phone{ width:100%; min-width:0; max-width:100% }
}

/* Phone slightly slimmer on desktop */
#phone{ width:85%; }
