/*
 * MySynergy Internship Application — style.css
 * Visual language inherited from BRAND_GUIDE.md v1.1 + report.css
 * Surfaces: index.html (form), thank-you.html (confirmation)
 */

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, a:visited {
  color: #0B66C2;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ----- Header ----- */
.brand-header {
  background: #043B01;
  color: #FFFFFF;
  padding: 28px 24px;
  border-bottom: 4px solid #032A01;
}

.brand-header__inner {
  max-width: 880px;
  margin: 0 auto;
}

.brand-header__wordmark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.brand-header__legal {
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0 0 0;
  color: #DCEAD8;
}

/* ----- Page container ----- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #043B01;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.page-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0 0 28px 0;
}

/* ----- Card ----- */
.card {
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

/* ----- Form sections ----- */
.section {
  margin-bottom: 28px;
}

.section + .section {
  border-top: 1px solid #EDEDED;
  padding-top: 24px;
}

.section__title {
  font-size: 16px;
  font-weight: 700;
  color: #043B01;
  margin: 0 0 4px 0;
}

.section__hint {
  font-size: 13px;
  color: #666666;
  margin: 0 0 16px 0;
}

/* ----- Field grid ----- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.field--full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.field .required {
  color: #C0272D;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  background: #FFFFFF;
  color: #333333;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  width: 100%;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #043B01;
  box-shadow: 0 0 0 2px rgba(4, 59, 1, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #C0272D;
}

.field__error {
  display: none;
  font-size: 12px;
  color: #C0272D;
  margin-top: 4px;
}

.field--invalid .field__error {
  display: block;
}

/* ----- Checkbox stack (acknowledgements) ----- */
.ack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #FAFAFA;
  border: 1px solid #EDEDED;
  border-radius: 3px;
}

.ack input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #043B01;
}

.ack label {
  font-size: 13px;
  color: #333333;
  line-height: 1.45;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.ack--invalid {
  border-color: #C0272D;
  background: #FDF2F2;
}

/* ----- Turnstile + submit row ----- */
.submit-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}

.submit-row .turnstile-wrap {
  min-height: 65px;
}

button.btn-submit {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  background: #043B01;
  color: #FFFFFF;
  padding: 12px 28px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.12s ease, opacity 0.12s ease;
}

button.btn-submit:hover:not(:disabled) {
  background: #032A01;
}

button.btn-submit:disabled {
  background: #999999;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ----- Form-level message banner ----- */
.form-message {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 3px;
  font-size: 14px;
  border: 1px solid;
}

.form-message--error {
  display: block;
  background: #FDF2F2;
  border-color: #C0272D;
  color: #8A1F23;
}

/* ----- Thank-you page ----- */
.thanks {
  text-align: left;
}

.thanks__hero {
  background: #043B01;
  color: #FFFFFF;
  padding: 36px 32px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.thanks__hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.thanks__hero p {
  font-size: 14px;
  color: #DCEAD8;
  margin: 0;
}

.appid-box {
  background: #FAFAFA;
  border: 1px dashed #043B01;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
}

.appid-box__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin: 0 0 6px 0;
}

.appid-box__id {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  color: #043B01;
  margin: 0;
  letter-spacing: 0.02em;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 10px;
  background: #FFFFFF;
  border: 1px solid #EDEDED;
  border-radius: 3px;
  font-size: 14px;
  color: #333333;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #043B01;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  display: block;
  color: #043B01;
  font-size: 14px;
  margin-bottom: 2px;
}

.thanks__footer-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: #FFFCEB;
  border-left: 3px solid #C47900;
  font-size: 13px;
  color: #5A4400;
}

/* ----- Identity summary (Stage 2 prefilled identity panel) ----- */
.identity-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 24px;
}

.identity-summary__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.identity-summary__label {
  flex-shrink: 0;
  width: 150px;
  color: #666666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.identity-summary__value {
  color: #043B01;
  font-weight: 600;
  word-break: break-word;
}

/* ----- Back-link button (error-state on continue.html) ----- */
.btn-link-back {
  display: inline-block;
  background: #043B01;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.btn-link-back:hover {
  background: #032A01;
}

/* ----- Page footer ----- */
.page-footer {
  text-align: center;
  font-size: 12px;
  color: #666666;
  padding: 24px 16px 32px 16px;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .brand-header { padding: 22px 18px; }
  .brand-header__wordmark { font-size: 21px; }
  .brand-header__legal { font-size: 12px; }
  .container { padding: 22px 16px 48px 16px; }
  .card { padding: 20px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-title { font-size: 20px; }
  .thanks__hero { padding: 26px 20px; }
  .thanks__hero h2 { font-size: 19px; }
  .appid-box__id { font-size: 20px; }
  .identity-summary__row { flex-direction: column; gap: 2px; }
  .identity-summary__label { width: auto; }
}
