/* Colours and type follow the Smart Electric Support site (app/globals.css). */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --fg: #1C1814;
  --fg-2: #6B625C;
  --accent: #D42B1E;
  --accent-dark: #AA201A;
  --border-strong: rgba(28, 24, 20, 0.13);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(ellipse 110% 65% at 50% -8%, rgba(212, 43, 30, 0.10) 0%, rgba(232, 113, 26, 0.04) 50%, transparent 70%),
    var(--bg);
}

.site-header {
  display: flex;
  align-items: center;
  padding: 10px 28px;
  background: var(--surface);
  border-bottom: 2px solid rgba(212, 43, 30, 0.45);
}

.site-header img {
  display: block;
  width: auto;
  height: 70px;
  margin: -14px 0;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 43, 30, 0.07);
  border: 1px solid rgba(212, 43, 30, 0.14);
  border-radius: 100px;
}

h1 {
  margin: 18px 0 32px;
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.accent { color: var(--accent); }

.card {
  width: 100%;
  padding: 28px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(28, 24, 20, 0.06);
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

select {
  width: 100%;
  min-height: 50px;
  margin-bottom: 20px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px; /* below 16px, iOS zooms the page when the control is focused */
  color: var(--fg);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  cursor: pointer;
}

button {
  width: 100%;
  min-height: 50px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

button:hover { background: var(--accent-dark); }

select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.help {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}

a {
  color: var(--accent-dark);
  font-weight: 500;
}

.site-footer {
  padding: 18px 24px;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .site-header { padding: 10px 16px; }
  .page { padding: 40px 16px 32px; }
  .card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
