:root {
  color-scheme: light;
  --wmcgw-navy: #0a1628;
  --wmcgw-navy-deep: #050a14;
  --wmcgw-navy-mid: #152238;
  --wmcgw-navy-soft: #1e3a52;
  --wmcgw-teal: #2b5e7d;
  --wmcgw-teal-light: #3d7394;
  --wmcgw-teal-muted: #5a7d9a;
  --wmcgw-gold: #c9a227;
  --wmcgw-gold-light: #ddbc5a;
  --wmcgw-gold-dark: #a6851f;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --accent: var(--wmcgw-teal);
  --accent-soft: rgba(43, 94, 125, 0.08);
  --accent-strong: #1e4a63;
  --text: var(--wmcgw-navy);
  --muted: var(--wmcgw-teal-muted);
  --danger: #b91c1c;
  --warning: var(--wmcgw-gold-dark);
  --success: #2d6a4f;
  --border: #d4dde8;
  --error-soft: #fee2e2;
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 20px 60px rgba(10, 22, 40, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(720px 440px at 12% 18%, rgba(201, 162, 39, 0.14), transparent 58%),
    radial-gradient(640px 420px at 88% 82%, rgba(43, 94, 125, 0.28), transparent 55%),
    linear-gradient(145deg, var(--wmcgw-navy-deep) 0%, var(--wmcgw-navy) 42%, var(--wmcgw-navy-soft) 100%);
  -webkit-font-smoothing: antialiased;
}

.frame {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 26px 24px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wmcgw-gold);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.frame-main,
.frame-side {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .frame {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
  }

  .frame-side {
    order: -1;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px 10px;
  }

  .frame {
    padding: 18px 14px 16px;
    border-radius: 22px;
    gap: 18px;
  }

  .form-card {
    padding: 14px 12px 14px;
  }

  .field-group {
    flex-direction: column;
    align-items: stretch;
  }

  .input-shell {
    border-radius: 12px;
    padding: 10px 11px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .field-helper {
    display: block;
    margin-top: 4px;
    max-width: 100%;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wmcgw-navy);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: rgba(43, 94, 125, 0.08);
  border: 1px solid rgba(43, 94, 125, 0.2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #faf3e0 0, var(--wmcgw-gold-light) 35%, var(--wmcgw-gold) 100%);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.5);
}

.badge-dot-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.title {
  margin: 18px 0 8px;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--wmcgw-navy);
}

.title span {
  background: linear-gradient(120deg, var(--wmcgw-teal), var(--wmcgw-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 10px 0 22px;
  font-size: 0.98rem;
  color: #374151;
  max-width: 40rem;
}

.subtitle strong {
  color: var(--wmcgw-navy);
  font-weight: 600;
}

.form-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-label span {
  font-weight: 500;
}

.field-helper {
  font-size: 0.72rem;
  color: var(--wmcgw-teal-muted);
  text-transform: none;
  letter-spacing: 0;
}

.field-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.input-shell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input-shell:focus-within {
  border-color: var(--wmcgw-teal);
  box-shadow: 0 0 0 3px rgba(43, 94, 125, 0.15);
  background: #ffffff;
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 5px;
  border-radius: 999px;
  background: rgba(43, 94, 125, 0.08);
  border: 1px solid rgba(43, 94, 125, 0.2);
  font-size: 0.72rem;
  color: var(--muted);
}

.input-prefix-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

input[type="email"] {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
}

input[type="email"]::placeholder {
  color: rgba(90, 125, 154, 0.7);
}

.button {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--wmcgw-teal) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 94, 125, 0.35);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.button:disabled {
  cursor: default;
  opacity: 0.65;
  box-shadow: none;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(43, 94, 125, 0.4);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(43, 94, 125, 0.08);
  border: 1px solid rgba(43, 94, 125, 0.2);
}

.status-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wmcgw-gold);
}

.status-chip[data-variant="success"] .status-chip-dot {
  background: var(--success);
}

.status-chip[data-variant="danger"] .status-chip-dot {
  background: var(--danger);
}

.status-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-right {
  text-align: right;
  font-size: 0.72rem;
  color: var(--muted);
}

.results {
  margin-top: 18px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-lg);
  background: #f4f6f9;
  border: 1px solid var(--border);
  max-height: 360px;
  overflow: auto;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.results-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.results-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.results-body {
  font-size: 0.9rem;
}

.results-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.pill-grade {
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(43, 94, 125, 0.08);
  border: 1px solid rgba(43, 94, 125, 0.2);
  color: var(--wmcgw-navy);
  font-weight: 600;
}

.pill-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.08);
  color: var(--success);
  border: 1px solid rgba(45, 106, 79, 0.5);
}

.pill-tag[data-variant="warning"] {
  background: rgba(201, 162, 39, 0.1);
  color: var(--wmcgw-gold-dark);
  border-color: rgba(201, 162, 39, 0.6);
}

.pill-tag[data-variant="danger"] {
  background: rgba(185, 28, 28, 0.08);
  color: var(--danger);
  border-color: rgba(185, 28, 28, 0.5);
}

.pill-tag[data-variant="paid"] {
  background: rgba(201, 162, 39, 0.12);
  color: var(--wmcgw-gold-dark);
  border-color: rgba(201, 162, 39, 0.7);
}

.pill-tag[data-variant="notpaid"] {
  background: rgba(90, 125, 154, 0.12);
  color: var(--muted);
  border-color: rgba(90, 125, 154, 0.4);
}

.results-link-area {
  margin-top: 14px;
  margin-bottom: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wmcgw-gold-light) 0%, var(--wmcgw-gold) 55%, var(--wmcgw-gold-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--wmcgw-navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}

.cta-link span.icon {
  font-size: 1.1rem;
}

.note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(43, 94, 125, 0.06);
  border: 1px dashed rgba(43, 94, 125, 0.25);
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.note strong {
  color: var(--wmcgw-teal);
}

.error-banner {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: var(--error-soft);
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: var(--danger);
  font-size: 0.8rem;
  display: none;
}

.error-banner[data-visible="true"] {
  display: block;
}

.side-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(43, 94, 125, 0.06), rgba(201, 162, 39, 0.06));
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.side-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-title-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(45, 106, 79, 0.5);
  color: var(--success);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.side-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.side-body {
  font-size: 0.86rem;
}

.side-body p {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.9);
}

.side-body p:nth-of-type(1) {
  border-left-color: var(--success);
  background: rgba(45, 106, 79, 0.08);
}

.side-body p:nth-of-type(2) {
  border-left-color: var(--wmcgw-gold);
  background: rgba(201, 162, 39, 0.08);
}

.side-body p:nth-of-type(3) {
  border-left-color: var(--danger);
  background: rgba(185, 28, 28, 0.06);
}

.side-footer {
  margin-top: 16px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-size: 0.8rem;
  color: var(--wmcgw-gold-dark);
}

.portal-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.portal-links a {
  color: var(--wmcgw-teal);
  text-decoration: none;
  font-weight: 500;
}

.portal-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}
