* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f3f5fa;
  color: #0f172a;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin: 16px;
}

form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  margin-bottom: 0;
}

.field-group {
  width: 100%;
}

.field-group--text input,
.field-group--text select {
  width: 100%;
  max-width: 100%;
  background: #fff;
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.choice-chips {
  display: grid;
  gap: 10px;
  width: 100%;
}

.choice-chips--2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice-chips--age {
  grid-template-columns: repeat(3, 1fr);
}

.choice-chips--check {
  grid-template-columns: repeat(2, 1fr);
}

.choice-chips--insured {
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  .choice-chips--insured {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 520px) {
  .choice-chips--check {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 359px) {
  .choice-chips--age {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  margin: 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

.chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.chip:has(input:focus-visible) {
  outline: 2px solid #0b2b7a;
  outline-offset: 2px;
}

.chip:has(input:checked) {
  border-color: #0b2b7a;
  background: #eff6ff;
  color: #0b2b7a;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #0b2b7a;
}

.chip span {
  pointer-events: none;
}

.consult-form > button[type="submit"] {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
}

input,
select,
button {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

button {
  background: #0b2b7a;
  color: #fff;
  border: none;
  cursor: pointer;
}

.inline {
  margin: 0;
}

.login-card {
  max-width: 420px;
  margin: 120px auto;
}

.error {
  color: #dc2626;
  margin: 8px 0;
}

.success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0 12px;
}

.hero {
  margin: 0;
  border-radius: 0;
  border: none;
  background: linear-gradient(180deg, #0a2f87 0%, #071a4b 100%);
  color: #fff;
  padding: 20px 16px 28px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 20px 0 12px;
}

.hero h1 span {
  color: #ffd43b;
}

.hero-sub {
  margin: 0 0 18px;
  color: #dbeafe;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.sub-badge {
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: #ffb703;
  color: #111827;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
}

.cta-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-grid {
  display: block;
}

.feature {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
}

.feature h3 {
  margin: 0 0 6px;
  color: #0b2b7a;
}

.feature p {
  margin: 0;
  color: #334155;
}

.consult {
  background: #fff7e6;
  border: 1px solid #fcd34d;
}

.consult h2 {
  margin-top: 0;
}

.check-list {
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #f59e0b;
  padding: 10px 12px;
  margin: 12px 0;
}

.check-list p {
  margin: 0 0 6px;
  font-weight: 600;
}

.check-list ul {
  margin: 0;
  padding-left: 18px;
}

.recommend-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.check-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item input {
  width: 16px;
  height: 16px;
}

.notice {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.operator-link {
  margin: 8px 0 0;
  font-size: 13px;
}

.operator-link a {
  color: #0b2b7a;
}

.operator-list {
  display: grid;
  gap: 10px;
}

.operator-card {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}

.operator-card p {
  margin: 6px 0;
}

@media (min-width: 768px) {
  .hero,
  section {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid {
    display: block;
  }

  .flow {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
