:root {
  --bg: #f9fbff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(245, 249, 255, 0.68);
  --text: #23406f;
  --text-soft: #5f7090;
  --text-muted: #8795ae;
  --line: rgba(164, 188, 220, 0.26);
  --line-strong: rgba(144, 172, 208, 0.34);
  --accent: #ff8a52;
  --accent-dark: #f06538;
  --blue: #53b7ef;
  --green: #95c83d;
  --shadow: 0 24px 60px rgba(73, 109, 170, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.72)),
    url("./image0.png") center top / cover no-repeat fixed;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px 12px;
}

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

.topbar-brand img {
  width: min(260px, 44vw);
  height: auto;
  object-fit: contain;
}

.content {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.progress-card {
  padding: 24px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.34));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 32px;
  margin-top: 20px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 10px;
  color: #f46d40;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.hero-text {
  margin: 14px auto 0;
  max-width: 70ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.hero-text-soft {
  max-width: 62ch;
  color: var(--text-muted);
}

.hero-points {
  display: inline-grid;
  gap: 10px;
  margin: 20px auto 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #f46d40;
  font-weight: 800;
}

.step-header {
  text-align: center;
}

.step-label {
  margin: 0;
  color: #b2b2b2;
  font-size: 14px;
  font-weight: 500;
}

.step-header h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: var(--text);
}

.step-subtitle {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.progress-track {
  width: min(420px, 100%);
  height: 6px;
  margin: 20px auto 28px;
  background: rgba(168, 196, 232, 0.26);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #57c3ff, #ffbe59, #ff8a52);
  border-radius: inherit;
  transition: width 180ms ease;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.insight-card {
  padding: 16px 18px;
  border: 1px solid rgba(164, 188, 220, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.5));
  box-shadow: 0 12px 28px rgba(73, 109, 170, 0.08);
}

.insight-card strong,
.insight-card a {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.insight-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.insight-card a {
  color: #346fb3;
  text-decoration: none;
}

.postal-card,
.questionnaire,
.summary-card,
.contact-card,
.success-card {
  background: transparent;
}

.postal-card {
  margin-bottom: 18px;
}

.postal-card label,
.contact-field span {
  display: block;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.field-required {
  color: #d14f4f;
  font-style: normal;
  font-weight: 800;
}

.field-optional {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.postal-card input,
.contact-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--text-soft);
  font-size: 14px;
  background: var(--surface-strong);
  backdrop-filter: blur(8px);
  outline: none;
}

textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-strong);
  color: var(--text-soft);
  resize: vertical;
  outline: none;
  font: inherit;
  backdrop-filter: blur(8px);
}

.postal-card input:focus,
.contact-field input:focus,
textarea:focus {
  border-color: #c1cde2;
  box-shadow: 0 0 0 4px rgba(95, 129, 185, 0.08);
}

.input-invalid {
  border-color: #e05757 !important;
  box-shadow: 0 0 0 4px rgba(224, 87, 87, 0.12) !important;
}

.field-help {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.field-help strong {
  color: var(--text);
}

.question-block {
  padding: 18px 0 16px;
  border-top: 1px solid var(--line);
}

.question-block-active {
  animation: fade-slide-in 220ms ease;
}

.question-block h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #24477a;
  font-size: 13px;
  font-weight: 700;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #24477a;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.choice-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  border-radius: 18px;
  border: 1px solid rgba(143, 174, 214, 0.22);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 22px rgba(116, 146, 196, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.choice-row:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(87, 195, 255, 0.4);
  box-shadow: 0 14px 28px rgba(116, 146, 196, 0.14);
  transform: translateY(-1px);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(87, 195, 255, 0.18), rgba(255, 189, 99, 0.22));
  font-size: 20px;
  flex-shrink: 0;
}

.choice-icon-curve {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 7px 6px;
}

.curve-bar {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: rgba(137, 149, 174, 0.35);
}

.curve-bar-1 {
  height: 10px;
}

.curve-bar-2 {
  height: 16px;
}

.curve-bar-3 {
  height: 24px;
}

.curve-bar-on {
  background: linear-gradient(180deg, #57c3ff, #ff8a52);
  box-shadow: 0 4px 10px rgba(255, 138, 82, 0.18);
}

.choice-icon-question {
  color: #5a6b8a;
  font-weight: 800;
}

.choice-icon-income {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 7px 6px;
}

.income-dot {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: rgba(137, 149, 174, 0.28);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.income-dot-1 {
  height: 10px;
}

.income-dot-2 {
  height: 15px;
}

.income-dot-3 {
  height: 20px;
}

.income-dot-4 {
  height: 25px;
}

.income-dot-on {
  background: linear-gradient(180deg, #95c83d, #57c3ff, #ff8a52);
  box-shadow: 0 4px 10px rgba(87, 195, 255, 0.16);
}

.choice-icon-area {
  display: grid;
  place-items: center;
  padding: 3px;
}

.area-house-svg {
  width: 42px;
  height: 34px;
  overflow: visible;
}

.area-house-outline {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(72, 106, 160, 0.72);
  stroke-width: 2;
  stroke-linejoin: round;
}

.area-house-roof {
  fill: none;
  stroke: rgba(72, 106, 160, 0.72);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-tile {
  transition: opacity 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.area-tile-on {
  fill: url(#areaTileGradient);
  stroke: rgba(88, 146, 214, 0.35);
  opacity: 1;
}

.area-tile-off {
  fill: rgba(207, 221, 241, 0.28);
  stroke: rgba(72, 106, 160, 0.14);
  opacity: 0.7;
}

.choice-icon-area svg defs {
  display: block;
}


.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.choice-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.choice-help {
  color: var(--text-muted);
  font-size: 12px;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-ui {
  width: 16px;
  height: 16px;
  border: 1.5px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.choice-row input:checked + .radio-ui {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
  background: radial-gradient(circle, var(--accent) 0 45%, #fff 48% 100%);
}

.choice-row:has(input:checked) {
  background: linear-gradient(135deg, rgba(87, 195, 255, 0.18), rgba(255, 189, 99, 0.2), rgba(255, 255, 255, 0.85));
  border-color: rgba(240, 108, 61, 0.34);
  box-shadow: 0 16px 32px rgba(255, 154, 93, 0.16);
}

.choice-row:has(input:checked) .choice-title {
  color: #1f3d6d;
}

.summary-card,
.contact-card,
.success-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48));
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.summary-head h2,
.success-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.summary-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.summary-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.summary-grid dt {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 11px;
}

.summary-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.consent-row input {
  margin-top: 2px;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.bottom-contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.error-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.btn {
  min-width: 188px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1f4f8f 0%, #2c66ab 52%, #3a7bc3 100%);
  color: #fff;
  box-shadow:
    0 20px 38px rgba(31, 79, 143, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  position: relative;
  overflow: hidden;
  text-transform: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-primary::after {
  content: "›";
  position: relative;
  font-size: 20px;
  line-height: 1;
  margin-left: 4px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1b447b 0%, #275d9b 52%, #346fb3 100%);
  transform: translateY(-2px);
  box-shadow:
    0 24px 42px rgba(31, 79, 143, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-primary:active {
  transform: translateY(0);
  filter: saturate(1.05);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

.success-card {
  text-align: center;
}

.success-card p {
  margin: 12px auto 0;
  max-width: 54ch;
  color: var(--text-soft);
  line-height: 1.7;
}

.success-card a {
  color: #4f83ea;
}

.success-card h2 {
  color: var(--text);
}

.result-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(87, 195, 255, 0.12), rgba(255, 189, 99, 0.14));
  text-align: left;
}

.result-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.result-card p {
  margin: 0;
  max-width: none;
}

.result-note {
  margin-top: 12px !important;
  color: var(--text-soft);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.result-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.result-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.result-amount {
  color: #f06c3d;
  font-size: 1.6rem;
  font-weight: 800;
}


.site-footer {
  width: min(980px, calc(100% - 32px));
  margin: 36px auto 40px;
  text-align: center;
}

.logo-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 86px;
  padding: 10px 12px;
  text-align: left;
}

.logo-box strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.logo-box span {
  display: none;
}

.logo-france strong {
  color: #23407a;
  font-size: 24px;
}

.logo-house {
  width: 42px;
  height: 42px;
  border: 6px solid #23407a;
  border-bottom-width: 12px;
  border-radius: 10px 10px 14px 14px;
  transform: rotate(45deg);
}

.logo-cee strong {
  font-size: 54px;
  font-weight: 700;
  color: #2bb1dd;
  line-height: 1;
}

.logo-cee span {
  display: none;
}

.logo-eco strong {
  color: #89c53f;
  font-size: 20px;
}

.logo-maprime strong {
  color: #1d1d1d;
  font-size: 26px;
}

.logo-maprime strong::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #36d8d4;
  vertical-align: -3px;
}

.brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}

.brand-footer img {
  width: min(320px, 62vw);
  height: auto;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 4px 0 14px;
}

.footer-socials-contact {
  justify-content: flex-start;
  margin: 0;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(164, 188, 220, 0.24);
  box-shadow: 0 12px 24px rgba(73, 109, 170, 0.1);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(73, 109, 170, 0.16);
}

.social-link svg {
  width: 30px;
  height: 30px;
}

.social-link-instagram svg {
  fill: none;
  stroke: #d14f84;
  stroke-width: 1.8;
}

.social-link-instagram .social-dot {
  fill: #d14f84;
  stroke: none;
}

.social-link-facebook svg {
  fill: #275d9b;
}

.social-link-mail svg {
  fill: none;
  stroke: #2f5a46;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link-mail .mail-line {
  fill: none;
}

.brand-footer-tagline {
  margin: -2px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottom-contact {
  margin-top: 32px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.38));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bottom-contact-copy {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.bottom-contact-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.bottom-contact-copy p:last-child {
  margin: 14px auto 0;
  max-width: 64ch;
  color: var(--text-soft);
  line-height: 1.75;
}

.bottom-contact-form {
  max-width: 860px;
  margin: 0 auto;
}

.bottom-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-meta p,
.footer-meta a {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
}

.footer-meta p {
  color: #444;
  font-weight: 500;
}

.footer-meta a {
  color: #4589f5;
  text-decoration: underline;
}

.admin-page .content {
  width: min(1200px, calc(100% - 32px));
}

.admin-content {
  padding-bottom: 42px;
}

.admin-login-card {
  width: min(560px, 100%);
  margin: 28px auto 0;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.admin-login-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.admin-login-card p:last-of-type {
  margin: 12px auto 0;
  max-width: 48ch;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 79, 143, 0.08);
  color: #275d9b;
  cursor: pointer;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle-hide {
  display: block;
}

.admin-login-error {
  margin: 0;
}

.admin-login-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.admin-hero,
.admin-table-card,
.admin-detail-card {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.44));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}

.admin-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 182, 241, 0.16), rgba(91, 182, 241, 0));
  pointer-events: none;
}

.admin-hero-copy {
  position: relative;
  z-index: 1;
}

.admin-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.admin-hero p:last-child {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.admin-link-btn {
  text-decoration: none;
}

.admin-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 79, 143, 0.08);
  border: 1px solid rgba(31, 79, 143, 0.12);
  color: #275d9b;
  font-size: 12px;
  font-weight: 700;
}

.admin-highlights {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.admin-highlight-card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.5));
  box-shadow: 0 14px 34px rgba(73, 109, 170, 0.08);
}

.admin-highlight-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.admin-highlight-card p:last-child {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-highlight-card-accent {
  background:
    linear-gradient(135deg, rgba(31, 79, 143, 0.92), rgba(58, 123, 195, 0.84)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.5));
  border-color: rgba(58, 123, 195, 0.2);
}

.admin-highlight-card-accent .summary-kicker,
.admin-highlight-card-accent h2,
.admin-highlight-card-accent p:last-child {
  color: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-stat-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(164, 188, 220, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(73, 109, 170, 0.08);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 79, 143, 0.14);
}

.admin-stat-all::before {
  background: linear-gradient(90deg, #1f4f8f, #3a7bc3);
}

.admin-stat-sim::before {
  background: linear-gradient(90deg, #2bb1dd, #6bd5ff);
}

.admin-stat-contact::before {
  background: linear-gradient(90deg, #89c53f, #b2da67);
}

.admin-stat-pending::before {
  background: linear-gradient(90deg, #ffb14a, #ffd071);
}

.admin-stat-done::before {
  background: linear-gradient(90deg, #1d7b59, #34ad83);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(73, 109, 170, 0.12);
  border-color: rgba(52, 111, 179, 0.22);
}

.admin-stat-card p,
.admin-stat-card span {
  margin: 0;
}

.admin-stat-card p {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 2rem;
}

.admin-stat-card span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-search,
.admin-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-search span,
.admin-filter span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-search input,
.admin-filter select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-table-card,
.admin-detail-card {
  padding: 24px;
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-table-head h2,
.admin-detail-card h2 {
  margin: 0;
  color: var(--text);
}

.admin-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 111, 179, 0.12);
  color: #346fb3;
  font-size: 12px;
  font-weight: 700;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(164, 188, 220, 0.18);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.admin-table tbody tr:hover,
.admin-table tbody tr.is-selected {
  background: rgba(52, 111, 179, 0.08);
}

.admin-table-empty,
.admin-empty {
  color: var(--text-soft);
  text-align: center;
}

.admin-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 16px;
}

.admin-empty-state strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-empty-state span {
  max-width: 50ch;
  color: var(--text-soft);
  line-height: 1.65;
}

.admin-empty-link {
  margin-top: 6px;
  text-decoration: none;
}

.admin-empty-state-detail {
  padding: 30px 12px 8px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 79, 143, 0.12);
  color: #1f4f8f;
  font-size: 11px;
  font-weight: 700;
}

.admin-detail-card {
  min-height: 100%;
}

.admin-row-actions,
.admin-quick-links,
.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row-actions {
  min-width: 160px;
}

.admin-detail-actions {
  margin: 0 0 16px;
}

.admin-quick-links {
  margin: 0 0 16px;
}

.admin-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 79, 143, 0.12);
  background: rgba(31, 79, 143, 0.06);
  color: #275d9b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-action-chip-solid {
  border: none;
  background: linear-gradient(135deg, #1f4f8f, #346fb3);
  color: #fff;
}

.admin-detail-meta {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.admin-status-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
}

.admin-status-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-status-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-status-row select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-delete-btn {
  min-width: 132px;
  min-height: 48px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-detail-grid div,
.admin-message-box {
  padding: 14px;
  border: 1px solid rgba(164, 188, 220, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.admin-detail-grid dt {
  color: var(--text-muted);
  font-size: 11px;
}

.admin-detail-grid dd {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.admin-message-box {
  margin-top: 16px;
}

.admin-message-box strong {
  color: var(--text);
  font-size: 14px;
}

.admin-message-box p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-page {
  padding-bottom: 48px;
}

.legal-content {
  max-width: 900px;
  padding-top: 28px;
}

.legal-hero {
  margin-bottom: 26px;
}

.legal-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--text);
}

.legal-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.legal-card a,
.legal-back a {
  color: #4589f5;
}

.legal-back {
  margin: 26px 0 0;
  text-align: center;
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 12px 16px;
  }

  .content,
  .site-footer {
    width: calc(100% - 24px);
  }

  .topbar-brand {
    align-items: center;
    justify-content: center;
  }

  .topbar-brand img {
    width: min(210px, 52vw);
  }

  .hero-copy {
    text-align: left;
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .step-header h2 {
    font-size: 1.4rem;
  }

  .summary-grid,
  .contact-grid,
  .bottom-contact-grid,
  .result-grid,
  .insight-strip,
  .admin-stats,
  .admin-highlights,
  .admin-toolbar,
  .admin-panel,
  .admin-detail-grid,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-table-head,
  .admin-status-row,
  .admin-hero-actions,
  .admin-login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-row-actions,
  .admin-quick-links,
  .admin-detail-actions {
    flex-direction: column;
  }

  .bottom-contact-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-socials-contact {
    justify-content: center;
  }


  .contact-field-wide {
    grid-column: auto;
  }

  .btn {
    width: 100%;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .logo-box {
    justify-content: flex-start;
  }

  .brand-footer {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
    gap: 12px;
  }

  .social-link {
    width: 54px;
    height: 54px;
  }
}
