:root {
  --navy: #0D1E2C;
  --green: #006B3C;
  --green-light: #E8F4ED;
  --green-mid: #3D9965;
  --accent: #00C16E;
  --text: #1A2B38;
  --muted: #6B8091;
  --border: #D4E0E8;
  --bg: #F4F7F9;
  --white: #FFFFFF;
  --red: #D04040;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Header */
.form-header {
  background: var(--navy);
  border-top: 6px solid var(--green);
  padding: 36px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 6px; height: 100%;
  background: var(--green);
}
.header-inner { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.logo-area { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.logo-shield {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white; font-weight: 600;
  overflow: hidden;
}
.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.logo-text { text-align: left; }
.logo-text .club { font-size: 13px; color: #7AA8BC; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.logo-text .dept { font-size: 11px; color: #4A7B96; letter-spacing: .05em; }
.form-header h1 { font-size: 22px; font-weight: 600; color: white; line-height: 1.3; margin-bottom: 8px; }
.form-header p { font-size: 13px; color: #7AA8BC; }
.header-tags { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.htag {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15); color: #9BBDCC; letter-spacing: .04em;
}

/* Progress */
.progress-wrap { background: white; border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.progress-inner { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 6px; }
.progress-labels span { font-size: 11px; color: var(--muted); font-weight: 500; }
.progress-labels .current { color: var(--green); }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width .4s ease; }

/* Form container */
.form-body { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Section cards */
.section-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 24px 0;
  display: none;
}
.section-card.active { display: block; }
.section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.section-letter {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: white; flex-shrink: 0;
}
.section-head-text .sec-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.section-head-text .sec-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-body { padding: 8px 0 20px; }

/* Questions */
.q-block { padding: 16px 24px 0; }
.q-block + .q-block { border-top: 1px solid #EEF2F5; }
.q-label {
  font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 4px; display: flex; align-items: flex-start; gap: 6px;
}
.q-num { color: var(--green-mid); font-family: 'DM Mono', monospace; font-size: 12px; min-width: 24px; padding-top: 1px; }
.q-text { flex: 1; line-height: 1.5; }
.q-hint { font-size: 11px; color: var(--muted); font-style: italic; margin: 4px 0 8px 30px; line-height: 1.5; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 10px; margin-left: 6px; vertical-align: middle; white-space: nowrap;
}
.tag-c { background: #FFF3E0; color: #B35A00; }
.tag-b { background: #E3F2FD; color: #0D5FA1; }

/* Inputs */
input[type="text"], input[type="date"], select, textarea {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--text); background: white;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 16px;
}
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,107,60,.1);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B8091' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Operations table input */
.ops-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.ops-table th { background: var(--navy); color: white; font-weight: 500; font-size: 11px; letter-spacing: .04em; padding: 8px 10px; text-align: left; }
.ops-table td { border-bottom: 1px solid var(--border); vertical-align: top; }
.ops-table td input[type="text"] { border: none; border-radius: 0; margin: 0; padding: 8px 10px; font-size: 12px; background: transparent; }
.ops-table td input[type="text"]:focus { background: var(--green-light); box-shadow: none; border: none; }
.ops-table tr:hover td { background: #FAFCFD; }
.add-row-btn {
  font-size: 12px; color: var(--green); font-weight: 500; cursor: pointer;
  background: none; border: 1px dashed var(--border); border-radius: 6px;
  padding: 6px 14px; width: 100%; text-align: center; margin-bottom: 16px;
  transition: all .15s;
}
.add-row-btn:hover { background: var(--green-light); border-color: var(--green); }

/* Radio / checkbox groups */
.radio-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.radio-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.radio-opt:hover { background: var(--green-light); border-color: var(--green-mid); }
.radio-opt input { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }
.radio-opt label { font-size: 13px; color: var(--text); cursor: pointer; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }

/* Tool chip multi-select */
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; cursor: pointer; background: white; color: var(--muted);
  transition: all .12s; user-select: none;
}
.chip.selected { background: var(--green); border-color: var(--green); color: white; }
.chip:hover:not(.selected) { border-color: var(--green-mid); color: var(--green); }

/* Section nav */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.btn {
  padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; border: none; font-family: 'DM Sans', sans-serif;
}
.btn-back { background: white; color: var(--muted); border: 1px solid var(--border); }
.btn-back:hover { background: var(--bg); color: var(--text); }
.btn-next { background: var(--green); color: white; }
.btn-next:hover { background: #005530; }
.btn-submit { background: var(--navy); color: white; padding: 11px 28px; }
.btn-submit:hover { background: #1a3650; }
.step-counter { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }

/* Thank you screen */
.thankyou { display: none; text-align: center; padding: 60px 20px; }
.thankyou.show { display: block; }
.check-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  font-size: 28px; color: white;
}
.thankyou h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.thankyou p { font-size: 14px; color: var(--muted); max-width: 380px; margin: 0 auto; line-height: 1.6; }

/* Required asterisk */
.req { color: var(--red); margin-left: 2px; }

/* Intro note */
.intro-note {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  border-left: 4px solid var(--green); padding: 16px 20px; margin: 24px 0;
}
.intro-note p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.intro-note strong { color: var(--navy); font-weight: 600; }

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 12px 0 0;
  display: none;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert.error { background: #fdeeee; color: #a62828; border-color: #f1c0c0; }
.alert.success { background: #ebf9f1; color: #0f6b3b; border-color: #b8e5cb; }
