/* netvisas.nz: application form styles (loaded after site.css) */
.apply-page { background: linear-gradient(to bottom, #f8f7f5 0, #fff 520px); padding: 64px 0 96px; }
.apply-page .wrap { max-width: 1040px; }
.apply-head { text-align: center; margin-bottom: 48px; }
.apply-head .eyebrow { letter-spacing: .28em; font-size: 14px; }
.apply-head h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1.06; color: var(--navy); letter-spacing: -0.02em; }

.apply-head p { margin: 20px auto 0; max-width: 560px; font-size: 18.5px; color: #3b4150; }

/* Progress: Your details / Check & pay */
.progress { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress li { padding-top: 16px; border-top: 3px solid #c9c9c9; font-family: "Lexend", sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5b6070; }
.progress li[aria-current="step"] { border-top-color: var(--blue); color: var(--navy); }

/* Numbered cards */
.form-card { margin: 0 0 26px; padding: 0; min-width: 0; background: #f6f6f6; border: 1px solid #dcdcdc; border-radius: 24px; }
.form-card > legend { float: left; width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 40px; border-bottom: 1px solid #dcdcdc; font-family: "Lexend", sans-serif; font-size: 24px; font-weight: 500; color: var(--navy); }
.form-card > legend + * { clear: both; }
.card-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; }
.card-body { padding: 34px 40px 38px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
.span-2 { grid-column: 1 / -1; }

/* Fields */
.field > label:not(.choice), .field > .label { display: block; margin-bottom: 12px; font-family: "Lexend", sans-serif; font-size: 16.5px; font-weight: 500; color: var(--navy); }
.req { color: var(--blue); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font: 400 17px "DM Sans", system-ui, sans-serif; color: var(--text);
  background: #efefef; border: 1px solid #d5d5d5; border-radius: 12px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #efefef url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1437' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center / 18px;
}
.field textarea { display: block; min-height: 170px; line-height: 1.5; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; background-color: #fff; }
.field [aria-invalid="true"] { border-color: #c2283c; background-color: #fdf3f4; }
.field :disabled { cursor: not-allowed; }
.field.is-off { opacity: .45; }
.error { margin: 8px 0 0; font-size: 14.5px; font-weight: 500; color: #a3142a; }
.error:empty { display: none; }
.date-parts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.phone { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 10px; }

/* Radios and checkboxes */
.choice { display: inline-flex; align-items: center; gap: 14px; font-family: "Lexend", sans-serif; font-size: 16.5px; font-weight: 500; color: var(--navy); cursor: pointer; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #b9b9b9; border-radius: 50%; background: #ececec; cursor: pointer; }
.choice input[type="checkbox"] { border-radius: 6px; }
.choice input:checked { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 5px #fff; }
.choice input[type="checkbox"]:checked { box-shadow: none; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>") center / 16px no-repeat; }
.choice input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.choice.block { display: flex; }

/* Questionnaire (Student Visa pre-screening) */
.apply-title { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.06; color: var(--navy); letter-spacing: -0.02em; }
.form-intro { margin: 0 0 22px; font-size: 15.5px; color: #3b4150; }
.hint { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: #4a5060; }
.hint[hidden] { display: none; }
.field[hidden] { display: none; }
.choices { display: flex; flex-direction: column; gap: 14px; }
.choices.row { flex-direction: row; gap: 14px 44px; }
.choices .choice, .field > .choice { align-items: flex-start; font: 400 16.5px/1.45 "DM Sans", system-ui, sans-serif; color: var(--text); }
.choice a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.phone.compact { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.form-actions.end { justify-content: flex-end; }
.result { margin-top: 44px; scroll-margin-top: 20px; }
.result:focus { outline: none; }
.result-cols { margin-bottom: 34px; }
.result-head { margin: 0 0 14px; font: 600 18px "Lexend", sans-serif; color: var(--navy); }
.result-head.ok { color: #14602a; }
.result-head.review { color: #8a4b00; }
.result-list { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.result-list li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid #dcdcdc; }
.result-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #2f9e52; }
.result-list.review li::before { background: #e39a1c; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.result-actions .btn { margin-top: 0; border: 0; cursor: pointer; font-size: 17px; padding: 17px 30px; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 10px 22px; border: 1px solid #c9c9c9; border-radius: 999px; background: #fff; color: var(--navy); font: 600 15.5px "Lexend", sans-serif; cursor: pointer; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
@media print {
  .site-header, .site-footer, .consent-banner, .page-head, .section, .apply-head, .form-intro, .form-card:not(.result), .form-actions, .result-actions, .result-head:not(.ok):not(.review) { display: none !important; }
  .apply-page { padding: 0; background: none; }
  .result { margin: 0; border: 0; }
}

/* Actions, error summary, review */
.small-print { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #3b4150; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.form-actions .btn { margin-top: 0; border: 0; cursor: pointer; font-size: 17.5px; padding: 17px 34px; }
.form-actions .back { background: none; border: 0; padding: 0; color: var(--navy); font: 600 16px "Lexend", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.form-summary { margin: 0 0 22px; padding: 16px 20px; background: #fdf3f4; border: 1px solid #f0c4ca; border-radius: 14px; color: #a3142a; font-weight: 500; }
.form-summary[hidden], [data-step][hidden] { display: none; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.review dt, .review dd { margin: 0; padding: 13px 0; border-top: 1px solid #dcdcdc; font-size: 16px; }
.review dt { color: #4a5060; padding-right: 20px; }
.review dd { font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.review dl > :nth-child(-n+2) { border-top: 0; padding-top: 0; }

/* Contact page */
.form-actions .small-print { margin: 0; }
.contact-ways { margin-top: 56px; }
.card-title { margin: 0; padding: 24px 40px; border-bottom: 1px solid #dcdcdc; font-family: "Lexend", sans-serif; font-size: 24px; font-weight: 500; color: var(--navy); }
.contact-way { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 16px; line-height: 1.5; color: var(--text); }
.contact-way img { width: 26px; height: 26px; margin-top: 2px; }
.contact-way strong { display: block; font-family: "Lexend", sans-serif; font-weight: 600; color: var(--navy); }
a.contact-way:hover { color: var(--blue); }
.contact-disclaimer { margin: 26px 0 0; text-align: center; }

@media (max-width: 800px) {
  .card-title { padding: 20px 22px; font-size: 21px; }
  .apply-page { padding: 40px 0 64px; }
  .form-card > legend { padding: 20px 22px; font-size: 21px; }
  .card-body { padding: 26px 22px 30px; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .phone { grid-template-columns: 1fr; }
  .date-parts { gap: 8px; }
  .date-parts select { padding-left: 12px; padding-right: 30px; background-position: right 8px center; background-size: 16px; }
  .review dl { grid-template-columns: 1fr; }
  .review dd { border-top: 0; padding-top: 0; }
  .review dl > :nth-child(2) { padding-top: 0; }
}
