/* Novanet promo landing — brand colors from novanet.id (primary #ff4583, Geist) */

:root {
  --pink: #ff4583;
  --pink-hover: #d93b6f;
  --pink-active: #cc3769;
  --pink-soft: #ffdae6;
  --pink-border: #ffb5cd;
  --pink-wash: #fff5f8;
  --ink: #171717;
  --body: #525252;
  --muted: #737373;
  --line: #e5e5e5;
  --bg: #ffffff;
  --success: #09c82c;
  --success-bg: #cef4d5;
  --danger: #fb2c36;
  --danger-bg: #fed5d7;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 8px 28px rgba(255, 69, 131, 0.12);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 420px at 50% -80px, #ffe0ec 0%, transparent 70%),
    linear-gradient(180deg, var(--pink-wash) 0%, #ffffff 46%);
}

[hidden] { display: none !important; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px 28px;
}

.header {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.brand__name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.main { flex: 1; }

.hero {
  text-align: center;
  padding: 8px 0 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid var(--pink-border);
  background: rgba(255, 218, 230, 0.65);
  color: var(--pink);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--pill);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 69, 131, 0.18);
}

.hero__title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.7rem, 7.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero__sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--body);
}

.price {
  display: block;
  margin: 10px 0 6px;
  color: var(--pink);
  font-size: clamp(2.35rem, 10vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.panel {
  margin-top: 28px;
}

.panel__label {
  margin: 0 0 14px;
  text-align: center;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.city-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 108px;
  padding: 16px 12px;
  border: 1.5px solid var(--pink-border);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.city-btn:hover,
.city-btn:focus-visible {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  outline: none;
}

.city-btn:active {
  background: var(--pink-active);
  border-color: var(--pink-active);
  color: #fff;
  transform: scale(0.98);
}

.city-btn.is-selected {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.city-btn__icon {
  display: inline-flex;
  color: var(--pink);
}

.city-btn:hover .city-btn__icon,
.city-btn:focus-visible .city-btn__icon,
.city-btn:active .city-btn__icon,
.city-btn.is-selected .city-btn__icon {
  color: #fff;
}

.city-btn__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
}

.form-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-panel__city {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
}

.form-panel__city strong {
  color: var(--ink);
  font-weight: 800;
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--pink);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--pink-hover);
  text-decoration: underline;
  outline: none;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a3a3;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 69, 131, 0.16);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: #fff8f8;
}

.field__error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: #641216;
  font-size: 0.875rem;
  font-weight: 600;
}

.submit-btn {
  appearance: none;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--pill);
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 69, 131, 0.32);
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--pink-hover);
  outline: none;
}

.submit-btn:active { transform: scale(0.99); }

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

.submit-btn.is-loading .submit-btn__label { display: none; }
.submit-btn.is-loading .submit-btn__loading {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success {
  margin-top: 36px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 22px 40px;
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
}

.success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}

.success__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.success__text {
  margin: 0;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.5;
}

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer p { margin: 0; }

/* Compact hero once the form is open, so fields stay in view on mobile */
body.form-open .hero__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

body.form-open .price {
  display: inline;
  font-size: 1.15rem;
  margin: 0 4px;
}

body.form-open .hero__sub { font-size: 0.95rem; }
body.form-open .hero__note,
body.form-open .badge,
body.form-open .trust { display: none; }
body.form-open .hero { padding-top: 0; }
body.form-open .panel { margin-top: 16px; }

body.success-open .hero,
body.success-open #city-panel,
body.success-open #form-panel { display: none !important; }

@media (min-width: 480px) {
  .page { padding-left: 24px; padding-right: 24px; }
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 22px 0 0;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--line);
}

.trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
}

body.success-open .main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

body.success-open .success {
  margin-top: 0;
  margin-bottom: 8px;
}
