/* ── WCSH Portal — Shared form styles ── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0B1C3D;
  --teal: #00BFA6;
  --teal-light: #00D4B8;
  --gold: #F5C842;
  --white: #F7F9FC;
  --text: #E8EDF5;
  --text-muted: #8A99B5;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.09);
  --input-bg: rgba(255,255,255,0.06);
  --input-border: rgba(255,255,255,0.12);
  --input-focus: rgba(0,191,166,0.5);
  --success: #22c55e;
  --error: #ef4444;
}

html { background: var(--navy); }

body {
  min-height: 100vh;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--navy);
  padding-bottom: 60px;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,191,166,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,166,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,28,61,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.back-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
  font-family: 'Sora', sans-serif;
}
.back-btn:hover { color: var(--teal); }
.back-btn svg { width: 16px; height: 16px; }

.topbar-title { font-size: 14px; font-weight: 700; color: var(--white); }
.topbar-title small { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); }

.lang-toggle { display: flex; gap: 6px; }
.lt-btn {
  padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--card-border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}
.lt-btn.active { background: var(--teal); border-color: var(--teal); color: var(--navy); }

/* ── Page wrapper ── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
  padding: 28px 18px 0;
}

/* ── Form card header ── */
.form-header {
  margin-bottom: 24px;
}
.form-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); background: rgba(0,191,166,0.1);
  border: 1px solid rgba(0,191,166,0.2);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.form-title {
  font-size: clamp(18px, 4vw, 22px); font-weight: 700; color: var(--white);
  line-height: 1.25; margin-bottom: 6px;
}
.form-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
}
.form-desc.amh { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: 12px; }

/* ── Form card ── */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 16px;
}

/* ── Field ── */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.field-label .req { color: var(--teal); font-size: 14px; }
.field-label.amh { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: 12px; }

.field-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ── Inputs ── */
input[type="text"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="date"]:focus,
select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,191,166,0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); font-size: 13px; }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A99B5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; cursor: pointer; }
select option { background: #1a2e52; color: var(--text); }

textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); cursor: pointer; }

/* ── Radio/Checkbox group ── */
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-group.inline { flex-direction: row; flex-wrap: wrap; gap: 8px; }

.opt-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.opt-item:hover { border-color: rgba(0,191,166,0.35); background: rgba(0,191,166,0.04); }
.opt-item input[type="radio"],
.opt-item input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--teal); cursor: pointer;
  border: none; box-shadow: none; padding: 0; background: none;
}
.opt-item.selected {
  border-color: var(--teal);
  background: rgba(0,191,166,0.08);
}
.opt-label { font-size: 13px; color: var(--text); line-height: 1.4; cursor: pointer; }
.opt-label.amh { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: 12px; }

/* Severity pills */
.sev-group { display: flex; flex-direction: column; gap: 6px; }
.sev-item {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px; padding: 10px 14px;
  cursor: pointer; transition: all 0.2s;
}
.sev-item:hover { border-color: rgba(0,191,166,0.35); }
.sev-item input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); }
.sev-code { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--gold); min-width: 26px; margin-top: 1px; }
.sev-desc { font-size: 12px; color: var(--text); line-height: 1.4; }
.sev-desc.amh { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: 11px; }

/* Star rating */
.star-row { display: flex; gap: 8px; }
.star-btn {
  font-size: 28px; background: none; border: none; cursor: pointer;
  opacity: 0.3; transition: all 0.15s; transform: scale(1);
  filter: grayscale(1);
}
.star-btn.lit { opacity: 1; filter: grayscale(0); transform: scale(1.1); }
.star-btn:hover { transform: scale(1.2); }

/* ── Submit button ── */
.submit-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy); font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,191,166,0.35); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.submit-btn svg { width: 18px; height: 18px; }

/* ── Success state ── */
.success-screen {
  display: none; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 24px;
  animation: fadeUp 0.5s both;
}
.success-screen.show { display: flex; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 20px;
}
.success-screen h2 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.success-screen p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }
.ticket-box {
  background: rgba(0,191,166,0.1); border: 1px solid rgba(0,191,166,0.3);
  border-radius: 10px; padding: 12px 24px; margin-bottom: 28px;
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em;
}
.ticket-box strong { display: block; font-size: 18px; font-weight: 700; color: var(--teal); letter-spacing: 0.1em; }

.home-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  color: var(--text); font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
}
.home-btn:hover { border-color: var(--teal); color: var(--teal); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Confidential notice ── */
.conf-notice {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.15);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 20px;
  font-size: 11.5px; color: rgba(245,200,66,0.8); line-height: 1.4;
}
.conf-notice svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); }

/* ── Urgency badges ── */
.urg-high   { border-color: rgba(239,68,68,0.5) !important; }
.urg-medium { border-color: rgba(245,158,11,0.5) !important; }
.urg-low    { border-color: rgba(34,197,94,0.5) !important; }
.urg-high.selected   { background: rgba(239,68,68,0.1) !important; }
.urg-medium.selected { background: rgba(245,158,11,0.1) !important; }
.urg-low.selected    { background: rgba(34,197,94,0.1) !important; }

/* ── Section divider ── */
.section-sep {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); opacity: 0.7;
  margin: 20px 0 14px; border-top: 1px solid var(--card-border); padding-top: 18px;
}

/* ── Amharic font helper ── */
.amh { font-family: 'Noto Sans Ethiopic', sans-serif !important; }