:root {
  --cream: #F6F1E4;
  --card: #FFFFFF;
  --ink: #1E1B16;
  --ink-soft: #6E6656;
  --coral: #E97B5F;
  --blue: #3E52D9;
  --blue-soft: #DCE2FA;
  --blue-soft-text: #26339E;
  --amber: #F0B23D;
  --line: #E7DFC8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  padding: 56px 20px;
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 480px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin: 0 0 10px;
}

.spark {
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.subtitle {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 38ch;
}

.wave {
  display: block;
  margin: 0 0 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field {
  margin-bottom: 20px;
}

select,
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E6656' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.range-row {
  display: flex;
  gap: 12px;
}

.range-row .field {
  flex: 1;
  margin-bottom: 0;
}

.error {
  font-size: 13px;
  color: #B24A3A;
  margin: 10px 2px 0;
  display: none;
}

button {
  width: 100%;
  height: 52px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.75;
  cursor: default;
}

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

button:disabled .spinner {
  display: inline-block;
}

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

.result {
  display: none;
  margin-top: 20px;
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 18px 20px;
  align-items: center;
  gap: 12px;
}

.result.show {
  display: flex;
}

.check {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-soft-text);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  flex-shrink: 0;
}

.result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-soft-text);
  margin: 0 0 2px;
}

.result-sub {
  font-size: 13px;
  color: var(--blue-soft-text);
  opacity: 0.75;
  margin: 0;
}

.note {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 20px;
}

.note a {
  color: var(--blue);
  font-weight: 500;
}
