.aof-finder,
.aof-finder * {
  box-sizing: border-box;
}

.aof-finder {
  --aof-primary: #0b4f8a;
  --aof-accent: #18a0d8;
  --aof-text: #183247;
  --aof-muted: #637789;
  --aof-border: #dce6ee;
  --aof-surface: #f5f9fc;
  max-width: 1080px;
  margin: 24px auto;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--aof-border);
  border-radius: 24px;
  background: #fff;
  color: var(--aof-text);
  box-shadow: 0 18px 55px rgba(17, 54, 82, 0.1);
  font-family: inherit;
}

.aof-finder__header {
  max-width: 760px;
  margin-bottom: 28px;
}

.aof-finder__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--aof-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aof-finder h2,
.aof-finder h3,
.aof-finder h4,
.aof-finder p {
  margin-top: 0;
}

.aof-finder h2 {
  margin-bottom: 10px;
  color: var(--aof-primary);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.12;
}

.aof-finder__header p {
  margin-bottom: 0;
  color: var(--aof-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.aof-finder__form {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: var(--aof-surface);
}

.aof-finder__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.aof-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

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

.aof-field > span {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--aof-primary);
}

.aof-field select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 44px 0 14px;
  border: 1px solid #cbd9e4;
  border-radius: 10px;
  background-color: #fff;
  color: var(--aof-text);
  font: inherit;
  line-height: 1.3;
  box-shadow: none;
}

.aof-field select:focus {
  border-color: var(--aof-accent);
  outline: 3px solid color-mix(in srgb, var(--aof-accent) 22%, transparent);
}

.aof-field select:disabled {
  background-color: #edf2f6;
  color: #8594a0;
  cursor: not-allowed;
}

.aof-finder__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 22px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--aof-primary), var(--aof-accent));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 22px rgba(11, 79, 138, 0.2);
}

.aof-finder__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 79, 138, 0.26);
}

.aof-finder__button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.aof-finder__status {
  min-height: 24px;
  margin: 14px 2px 0;
  color: var(--aof-muted);
  font-weight: 600;
}

.aof-finder__status.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid #bdd0df;
  border-top-color: var(--aof-primary);
  border-radius: 50%;
  vertical-align: -2px;
  animation: aof-spin 0.8s linear infinite;
}

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

.aof-result-heading {
  margin: 18px 0 14px;
  padding: 18px 20px;
  border-left: 5px solid var(--aof-accent);
  border-radius: 10px;
  background: #edf7fc;
}

.aof-result-heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--aof-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aof-result-heading h3 {
  margin-bottom: 4px;
  color: var(--aof-primary);
}

.aof-result-heading p {
  margin-bottom: 0;
  color: var(--aof-muted);
}

.aof-result-list {
  display: grid;
  gap: 16px;
}

.aof-oil-card {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--aof-border);
  border-radius: 16px;
  background: #fff;
}

.aof-oil-card--unverified {
  border-style: dashed;
}

.aof-oil-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.aof-oil-card__label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--aof-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aof-oil-card h4 {
  margin-bottom: 0;
  color: var(--aof-primary);
  font-size: 1.25rem;
}

.aof-viscosity {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--aof-primary);
  color: #fff;
  font-size: 1.15rem;
}

.aof-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.aof-spec-grid > div {
  padding: 13px;
  border-radius: 10px;
  background: var(--aof-surface);
}

.aof-spec-grid dt {
  margin: 0 0 4px;
  color: var(--aof-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.aof-spec-grid dd {
  margin: 0;
  color: var(--aof-text);
  font-weight: 800;
}

.aof-oil-card__section {
  padding-top: 14px;
  border-top: 1px solid var(--aof-border);
}

.aof-oil-card__section + .aof-oil-card__section {
  margin-top: 12px;
}

.aof-oil-card__section p {
  margin: 5px 0 0;
  color: var(--aof-muted);
  line-height: 1.55;
}

.aof-oil-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.aof-oil-card__actions a {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--aof-primary);
  border-radius: 8px;
  color: var(--aof-primary);
  font-weight: 800;
  text-decoration: none;
}

.aof-oil-card__actions a:hover {
  background: var(--aof-primary);
  color: #fff;
}

.aof-finder__notice,
.aof-empty {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff6db;
  color: #6a5000;
}

.aof-finder__disclaimer {
  margin: 20px 2px 0;
  color: var(--aof-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .aof-finder__grid,
  .aof-spec-grid {
    grid-template-columns: 1fr;
  }

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

  .aof-oil-card__top {
    flex-direction: column;
  }
}
