* {
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 800;
  font-size: 1rem;
}

/* Mobile tweak */
@media (max-width: 640px) {
  .logo-img {
    height: 28px;
  }

  .logo-text {
    font-size: 0.95rem;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(30, 136, 229, 0.12), transparent 28%),
    linear-gradient(#eef6ff, #ffffff);
  color: #1f3851;
}

.wrap {
  width: min(1100px, calc(100% - 28px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dde8f2;
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.topbar h2 {
  margin: 0;
  font-size: 1.15rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  text-decoration: none;
  color: #52677c;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  margin-top: 34px;
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(135deg, #eef8ff, #f7fcff);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  border: 1px solid #dbeaf5;
  box-shadow: 0 18px 40px rgba(31, 56, 81, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  margin: 0 0 14px;
  color: #16885f;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 620px;
  color: #52677c;
  line-height: 1.7;
  font-weight: 600;
}

.fuel-board {
  background: #0f172a;
  color: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.fuel-board h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  min-width: 0;
}

.price-row.display-only {
  opacity: 0.82;
}

.price-row span {
  color: #cbd5e1;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.price-row strong {
  color: #ffffff;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  white-space: nowrap;
  text-align: right;
}

.board-note {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.card {
  background: white;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  border: 1px solid #dfeaf3;
  box-shadow: 0 14px 30px rgba(31, 56, 81, 0.08);
}

.card h2 {
  margin-top: 0;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.input-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

label {
  font-weight: 800;
  color: #243b53;
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #ccd8e3;
  font: inherit;
  font-size: 0.95rem;
  background: white;
  color: #1f3851;
  outline: none;
}

input:focus,
select:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

small {
  font-size: 0.75rem;
  color: #697d91;
  line-height: 1.4;
}

button {
  grid-column: 1 / -1;
  min-height: 52px;
  padding: 14px;
  background: #1e88e5;
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #1565c0;
}

.small-btn {
  grid-column: auto;
  min-height: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #1565c0;
  font-size: 0.78rem;
  white-space: nowrap;
}

.small-btn:hover {
  background: #d7ebff;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-box {
  background: #f0f8ff;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #dbeaf5;
}

.result-box span {
  display: block;
  font-size: 0.85rem;
  color: #61758a;
  font-weight: 700;
  margin-bottom: 6px;
}

.result-box strong {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.result-box.main {
  background: #dbeeff;
}

.result-box.main strong {
  font-size: clamp(1.7rem, 4vw, 2rem);
  color: #1e88e5;
}

.details-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #61758a;
  line-height: 1.7;
}

.disclaimer-box,
.info-card {
  margin-top: 20px;
}

.disclaimer-box {
  padding: 20px;
  border-radius: 18px;
  background: #fff8e6;
  border: 1px solid #f3d48b;
  color: #4d3b12;
}

.disclaimer-box h3 {
  margin-top: 0;
}

.disclaimer-box p,
.info-card p {
  line-height: 1.7;
}

.error-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffe5e5;
  color: #b32626;
  border: 1px solid #ffc7c7;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .fuel-board {
    order: 2;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 18px, 1100px);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 0.88rem;
  }

  .hero {
    margin-top: 18px;
  }

  form,
  .input-row {
    grid-template-columns: 1fr;
  }

  .label-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-row strong {
    text-align: left;
    white-space: normal;
  }
}

.autocomplete-wrapper {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  display: none;
  max-height: 260px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.94rem;
}

.suggestion-item:hover {
  background: #f3f8ff;
}

.suggestion-item:last-child {
  border-bottom: none;
}