:root {
  --bg: #efefef;
  --card: #ffffff;
  --text: #101010;
  --muted: #555;
  --line: #d8d8d8;
  --orange-1: #f0b600;
  --orange-2: #f09300;
  --blue-1: #86c9ef;
  --blue-2: #417fb8;
  --blue-3: #70b7e1;
  --shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input {
  font: inherit;
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 54px 20px 60px;
}

.calculator-card,
.results-card {
  width: min(100%, 980px);
  margin: 0 auto;
}

.custom-dropdowns {
  display: grid;
  gap: 12px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--orange-1), var(--orange-2));
  color: #fff;
  min-height: 108px;
  padding: 24px 92px 24px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.dropdown-title {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 300;
}

.dropdown-icon {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
}

.dropdown-icon::before,
.dropdown-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.dropdown.open .dropdown-icon::after {
  opacity: 0;
}

.dropdown-menu {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.dropdown-search-wrap {
  padding: 14px;
  border-bottom: 1px solid #e6e6e6;
}

.dropdown-search {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
}

.dropdown-search:focus {
  outline: none;
  border-color: #0d66d0;
  box-shadow: 0 0 0 1px #0d66d0;
}

.dropdown-options {
  max-height: 360px;
  overflow: auto;
}

.dropdown-option,
.dropdown-empty,
.dropdown-clear {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 18px;
}

.dropdown-option,
.dropdown-clear {
  cursor: pointer;
}

.dropdown-option:hover,
.dropdown-option:focus,
.dropdown-clear:hover,
.dropdown-clear:focus {
  outline: none;
  background: #f7f7f7;
}

.dropdown-option + .dropdown-option,
.dropdown-clear + .dropdown-option,
.dropdown-option + .dropdown-clear,
.dropdown-empty + .dropdown-option {
  border-top: 1px solid #efefef;
}

.dropdown-option.active {
  background: #fff4df;
}

.dropdown-empty {
  color: #666;
}

.results-card {
  text-align: center;
  padding-top: 72px;
}

.results-card h2 {
  margin: 0 0 28px;
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 400;
}

.selected-label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.selected-value {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: #ea9b31;
  font-weight: 300;
}

.description,
.result-copy,
.unknown-copy,
.disclaimer {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.description {
  margin-top: 34px;
  font-size: 20px;
  line-height: 1.6;
}

.badge-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.badge {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 20px solid var(--blue-3);
  display: grid;
  place-items: center;
}

.badge-head {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid var(--blue-3);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.badge-head::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 18px;
  border-left: 5px solid var(--blue-3);
  border-bottom: 5px solid var(--blue-3);
  left: 4px;
  bottom: -10px;
  transform: rotate(-45deg);
}

.results-card h3 {
  margin: 38px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
}

.results-card h3 span {
  color: var(--blue-1);
  font-weight: 700;
}

.bar-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 48px auto 0;
  height: 68px;
  background: var(--blue-2);
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--blue-1);
  transition: width 0.35s ease;
}

.bar-value {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  z-index: 1;
}

.result-copy,
.unknown-copy {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.disclaimer {
  margin-top: 34px;
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
}

.reset-button {
  margin-top: 28px;
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: #dddddd;
  color: #5d6670;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .page {
    padding-top: 24px;
  }

  .dropdown-toggle {
    min-height: 86px;
    padding: 18px 70px 18px 20px;
  }

  .dropdown-title {
    font-size: 18px;
  }

  .dropdown-icon,
  .dropdown-icon::before,
  .dropdown-icon::after {
    width: 24px;
  }

  .dropdown-option,
  .dropdown-empty,
  .dropdown-clear {
    font-size: 16px;
    padding: 14px 16px;
  }

  .results-card {
    padding-top: 48px;
  }

  .bar-wrap {
    height: 56px;
  }

  .reset-button {
    min-height: 56px;
    font-size: 20px;
  }
}
