/* ===== Glossy Paints – Coupon Registration ===== */
:root {
  --blue: #1f4e9c;
  --blue-dark: #1b438a;
  --blue-deep: #12306a;
  --yellow: #f5d90a;
  --red: #c8102e;
  --bg: #f8fafc;
  --white: #fff;
  --text: #1e293b;
  --heading: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #cbd5e1;
  --line: #e2e8f0;
  --danger: #dc2626;
  --radius: 12px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100% !important;
  max-width: 1152px !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 700;
  color: var(--blue);
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-link {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}

.help-link svg {
  width: 16px;
  height: 16px;
}

.help-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- Main layout ---------- */
.main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.band {
  display: none;
}

/* desktop-only left blue panel */

.layout {
  position: relative;
  display: grid;
  padding-top: 0;
  padding-bottom: 40px;
}

/* ---------- Left pitch ---------- */
.pitch {
  margin: 0 -16px;
  padding: 32px 16px 128px;
  color: var(--white);
  background:
    radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(135deg, var(--blue), var(--blue-dark) 50%, var(--blue-deep));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.pitch h1 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

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

.br-desktop {
  display: none;
}

.lead {
  margin-top: 12px;
  max-width: 28rem;
  color: #dbeafe;
}

.how {
  display: none;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.how li {
  display: flex;
  gap: 16px;
}

.how li+li {
  margin-top: 20px;
}

.how-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  font-weight: 700;
}

.how-title {
  font-weight: 600;
}

.how-desc {
  font-size: 14px;
  color: #dbeafe;
}

/* ---------- Card ---------- */
.card {
  position: relative !important;
  margin-top: -96px !important;
  padding: 24px !important;
  background: var(--white) !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .1) !important;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  white-space: nowrap;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
}

.step.is-active {
  color: var(--blue);
}

.step.is-active .step-num {
  background: var(--blue);
  color: var(--white);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--heading) !important;
}

.card-sub {
  margin-top: 4px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

.alert {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

/* ---------- Form ---------- */
.form {
  margin-top: 24px;
}

.field+.field,
.field+.btn {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.input {
  display: block;
  width: 100%;
  padding: 12px 16px 12px 44px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 78, 156, .2);
}

.input-coupon {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: .2em;
}

.input-coupon::placeholder {
  color: #cbd5e1;
}

.phone {
  display: flex;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.input-phone {
  padding-left: 16px;
  letter-spacing: .05em;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}

.error {
  margin-top: 6px;
  font-size: 14px;
  color: var(--danger);
}

.has-error .input {
  border-color: #f87171;
}

.has-error .input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .2);
}

/* ---------- Button ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(31, 78, 156, .25);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  transition: transform .15s;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 78, 156, .3);
}

.btn:disabled {
  opacity: .7;
  cursor: wait;
}

.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.privacy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- ≥640px ---------- */
@media (min-width: 640px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .help-link {
    display: inline-flex;
  }

  .pitch {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .pitch h1 {
    font-size: 36px;
  }

  .br-desktop {
    display: inline;
  }

  .card {
    padding: 32px !important;
  }
}

/* ---------- ≥1024px: two-column ---------- */
@media (min-width: 1024px) {
  .band {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background:
      radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(135deg, var(--blue), var(--blue-dark) 50%, var(--blue-deep));
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .pitch {
    margin: 0;
    padding: 24px 0 0;
    background: none;
  }

  .how {
    display: block;
  }

  .card {
    margin-top: 0 !important;
    align-self: start !important;
  }
}