/* Night to Shine sign-up forms. Built for people who may be older, on a phone,
   or not comfortable with computers: large type, big touch targets, one
   section at a time, and plain messages when something needs fixing. */

.nts-section { padding: 48px 20px 88px; background: var(--cream); }
.nts-wrap { max-width: 760px; margin: 0 auto; }
.nts-back { margin-bottom: 20px; font-weight: 600; }

.nts-intro { margin-bottom: 24px; font-size: 1.06rem; color: var(--text-dark); }
.nts-intro p { margin-bottom: 10px; }
.nts-event { color: var(--text-medium); }
.nts-deadline {
    display: inline-block; padding: 8px 14px; border-radius: var(--radius);
    background: #fff4d6; border: 1px solid var(--gold); color: var(--text-dark);
}
.nts-facts { margin: 14px 0 0; padding-left: 22px; color: var(--text-medium); }
.nts-facts li { margin-bottom: 4px; }
.nts-req-word, .nts-req {
    display: inline-block; font-family: 'Figtree', sans-serif; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--flame-red);
    background: #fdecec; border-radius: 4px; padding: 2px 7px; vertical-align: middle;
}

.nts-form {
    background: #fff; border: 1px solid rgba(31,26,20,0.08); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 32px 36px 36px; scroll-margin-top: 92px;
}

/* ---------- progress ---------- */
.nts-step-count { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-medium); }
.nts-bar { height: 8px; margin: 8px 0 20px; border-radius: 99px; background: var(--cream-dark); overflow: hidden; }
.nts-bar span { display: block; height: 100%; border-radius: 99px; background: var(--navy); transition: width 0.3s ease; }
.nts-step-title { font-size: 1.7rem; color: var(--navy); margin-bottom: 6px; outline: none; }
.nts-step-intro { font-size: 1.05rem; color: var(--text-medium); margin-bottom: 8px; }

/* ---------- fields ---------- */
.nts-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; margin-top: 22px; }
.nts-field { grid-column: 1 / -1; min-width: 0; border: 0; }
.nts-field.nts-half { grid-column: span 2; }
.nts-field.nts-quarter { grid-column: span 1; }

.nts-label { display: block; font-size: 1.06rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; line-height: 1.35; padding: 0; }
.nts-hint { font-size: 0.97rem; color: var(--text-medium); margin: -2px 0 8px; line-height: 1.5; }
.nts-sub { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-medium); margin-bottom: 4px; }

.nts-form input[type="text"], .nts-form input[type="email"], .nts-form input[type="tel"],
.nts-form select, .nts-form textarea {
    width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.06rem; color: var(--text-dark);
    background: #fff; border: 1.5px solid #8a7f73; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
.nts-form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.nts-form select {
    padding-right: 38px; background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a2e4a' stroke-width='2'/%3E%3C/svg%3E");
}
.nts-form input:focus-visible, .nts-form select:focus-visible, .nts-form textarea:focus-visible,
.nts-form button:focus-visible, .nts-form a:focus-visible, .nts-choice:focus-within {
    outline: 3px solid #2f6fd0; outline-offset: 2px;
}
.nts-dob { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 12px; max-width: 460px; }
.nts-age { font-size: 0.97rem; color: var(--sage); margin-top: 8px; }
.nts-age:empty { display: none; }
.nts-opt { font-size: 0.9rem; font-weight: 400; color: var(--text-medium); }

/* ---------- choices ---------- */
.nts-choices { display: grid; gap: 10px; }
.nts-choices.nts-inline { grid-template-columns: repeat(2, minmax(0, 180px)); }
.nts-choice {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer;
    background: #fff; border: 1.5px solid #8a7f73; border-radius: var(--radius); font-size: 1.06rem; line-height: 1.35;
    transition: background 0.15s, border-color 0.15s;
}
.nts-choice:hover { border-color: var(--navy); }
.nts-choice.is-on { background: #eef3fa; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
.nts-choice input { flex: none; width: 24px; height: 24px; accent-color: var(--navy); cursor: pointer; }

.nts-activity { padding: 18px 20px; border: 1.5px solid var(--cream-dark); border-radius: var(--radius-lg); background: var(--warm-white); }
.nts-activity.is-on { border-color: var(--navy); }
.nts-activity-title { font-family: 'Young Serif', serif; font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; }
.nts-activity-details { list-style: none; margin: 0 0 14px; color: var(--text-medium); font-size: 1rem; }
.nts-activity-details li { margin-bottom: 2px; }

.nts-note, .nts-notice {
    padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: var(--radius);
    background: #fdf8ea; font-size: 1rem; color: var(--text-dark); line-height: 1.55;
}
.nts-note-title { font-weight: 700; margin-bottom: 4px; }
.nts-notice h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.nts-notice p + p { margin-top: 8px; }

/* ---------- problems ---------- */
.nts-bad input, .nts-bad select, .nts-bad textarea, .nts-bad .nts-choice { border-color: var(--flame-red); }
.nts-error { margin-top: 8px; font-size: 1rem; font-weight: 600; color: #a31515; }
.nts-error span {
    display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px;
    border-radius: 50%; background: #a31515; color: #fff; font-size: 0.8rem; font-weight: 700;
}
.nts-summary {
    margin-top: 18px; padding: 16px 18px; border: 2px solid var(--flame-red); border-radius: var(--radius);
    background: #fdecec; font-size: 1.02rem; outline: none;
}
.nts-summary ul { margin: 6px 0 0 20px; }
.nts-summary a { color: #a31515; font-weight: 600; text-decoration: underline; }

/* ---------- buttons ---------- */
.nts-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--cream-dark); }
.nts-actions .btn, .nts-done-actions .btn { min-height: 54px; font-size: 1.06rem; justify-content: center; }
.nts-actions .btn[disabled] { opacity: 0.6; cursor: default; }
.nts-send { padding-left: 36px; padding-right: 36px; }

/* ---------- review ---------- */
.nts-review-block { margin-top: 22px; border: 1px solid var(--cream-dark); border-radius: var(--radius-lg); overflow: hidden; }
.nts-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--cream); }
.nts-review-head h3 { font-size: 1.15rem; color: var(--navy); }
.nts-edit {
    flex: none; min-height: 44px; padding: 8px 16px; cursor: pointer; font: inherit; font-weight: 600; color: var(--navy);
    background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius);
}
.nts-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 18px; padding: 10px 18px; border-top: 1px solid var(--cream-dark); font-size: 1rem; }
.nts-row dt { color: var(--text-medium); }
.nts-row dd { color: var(--text-dark); font-weight: 600; overflow-wrap: anywhere; }
.nts-row dd.nts-blank { font-weight: 400; color: var(--text-light); font-style: italic; }

/* ---------- finished ---------- */
.nts-done { text-align: center; padding: 12px 0 4px; }
.nts-check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-size: 2.2rem; }
.nts-done h2 { font-size: 2rem; color: var(--navy); margin-bottom: 10px; outline: none; }
.nts-done p { font-size: 1.08rem; color: var(--text-medium); max-width: 540px; margin: 0 auto 10px; }
.nts-done-lead { color: var(--text-dark) !important; }
.nts-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 18px; }
.nts-print-copy { display: none; }

.nts-alt { margin-top: 22px; font-size: 1rem; color: var(--text-medium); text-align: center; }
.nts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nts-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
    .nts-section { padding: 28px 12px 64px; }
    .nts-form { padding: 22px 18px 26px; }
    .nts-step-title { font-size: 1.45rem; }
    .nts-field.nts-half { grid-column: 1 / -1; }
    .nts-field.nts-quarter { grid-column: span 2; }
    .nts-choices.nts-inline { grid-template-columns: 1fr 1fr; }
    .nts-row { grid-template-columns: 1fr; }
    .nts-actions { flex-direction: column-reverse; }
    .nts-actions .btn, .nts-done-actions .btn { width: 100%; }
    .nts-actions > span { display: none; }
}

@media (prefers-reduced-motion: reduce) { .nts-bar span, .nts-choice { transition: none; } }

/* Printing the confirmation: only the copy of the answers. */
@media print {
    .navbar, .page-header, .divider-glass, footer, .nts-back, .nts-intro, .nts-alt, .nts-done, body::after { display: none !important; }
    .nts-section { padding: 0; background: #fff; }
    .nts-form { border: 0; box-shadow: none; padding: 0; }
    .nts-print-copy { display: block; }
    .nts-print-copy h2 { font-size: 16pt; margin-bottom: 4pt; }
    .nts-review-block { break-inside: avoid; margin-top: 10pt; }
    .nts-row { padding: 4pt 10pt; font-size: 10.5pt; }
}
