.weanswer-calculator {
  --wac-navy: #073b5b;
  --wac-blue: #015495;
  --wac-cyan: #038fa9;
  --wac-yellow: #f4df21;
  --wac-sky: #edf8fb;
  --wac-ink: #153549;
  --wac-muted: #657f8e;
  position: relative;
  width: 100%;
  color: var(--wac-ink);
  background: #fff;
  border-top: 5px solid var(--wac-cyan);
  border-radius: 10px;
  padding: 34px;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 16px;
  box-shadow: 0 25px 60px rgba(8, 64, 91, 0.18);
}

.weanswer-calculator,
.weanswer-calculator * {
  box-sizing: border-box;
}

.weanswer-calculator button,
.weanswer-calculator input,
.weanswer-calculator select,
.weanswer-calculator textarea {
  font: inherit;
}

.wac-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wac-heading > div > span,
.wac-contact-heading > span {
  color: var(--wac-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.wac-heading h2 {
  margin: 5px 0 0;
  color: var(--wac-navy);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.wac-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #16864b;
  background: #e7f8ee;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wac-live i {
  width: 7px;
  height: 7px;
  background: #28b66c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #cbefda;
}

.wac-grid,
.wac-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  row-gap: 20px;
}

.wac-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.wac-field > span {
  color: #274b60;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.wac-field input,
.wac-field select,
.wac-field textarea {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: var(--wac-navy);
  background: #fafdfe;
  border: 1px solid #ccdce4;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
  font-weight: 600;
}

.wac-field select {
  appearance: auto;
}

.wac-field textarea {
  min-height: 110px;
  padding-top: 13px;
  padding-bottom: 13px;
  resize: vertical;
}

.wac-field input:focus,
.wac-field select:focus,
.wac-field textarea:focus {
  border-color: var(--wac-cyan);
  box-shadow: 0 0 0 3px rgba(3, 143, 169, 0.12);
}

.wac-custom-fields {
  margin-top: 18px;
}

.wac-custom-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--wac-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
}

.wac-custom-checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--wac-blue);
}

.wac-field small {
  min-height: 18px;
  color: #8297a3;
  font-size: 12px;
  line-height: 1.55;
}

.wac-field small strong {
  color: var(--wac-blue);
}

.wac-industry-field {
  grid-column: 1 / -1;
}

.wac-impact-switch {
  display: flex;
  padding: 2px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.wac-impact-switch button {
  min-height: 31px;
  padding: 5px 9px;
  color: #c6e1e9;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.wac-impact-switch button.is-active {
  color: var(--wac-navy);
  background: var(--wac-yellow);
  box-shadow: 0 2px 5px rgba(7, 73, 105, 0.18);
}

.wac-industry-search {
  position: relative;
}

.wac-industry-search > input[type="search"] {
  padding-left: 42px;
  padding-right: 35px;
}

.wac-search-icon {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 14px;
  color: var(--wac-blue);
  pointer-events: none;
  font-size: 23px;
  line-height: 1;
}

.wac-industry-results {
  position: absolute;
  z-index: 20;
  top: 54px;
  right: 0;
  left: 0;
  max-height: 220px;
  padding: 5px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c9dbe4;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(7, 59, 91, 0.18);
}

.wac-industry-results[hidden] {
  display: none;
}

.wac-industry-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 10px 11px;
  color: #274b60;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.wac-industry-results button:hover,
.wac-industry-results button.is-selected,
.wac-industry-results button.is-active {
  color: var(--wac-blue);
  background: #eaf6fa;
}

.wac-industry-results button span {
  font-size: 14px;
  font-weight: 600;
}

.wac-industry-results button small {
  color: #78909c;
  font-size: 12px;
}

.wac-no-results {
  padding: 12px;
  color: var(--wac-muted);
  font-size: 13px;
}

.wac-result {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 23px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--wac-navy), #075f7f);
  border-radius: 7px;
}

.wac-result-main {
  padding: 22px 24px;
}

.wac-result-heading > span:first-child,
.wac-result-stats span {
  color: #a9d4e1;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.wac-result-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.wac-result-main > strong {
  display: block;
  margin: 3px 0;
  color: var(--wac-yellow);
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.wac-result-main p {
  max-width: 330px;
  margin: 0;
  padding: 0;
  color: #c6e1e9;
  font-size: 12px;
  line-height: 1.6;
}

.wac-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.wac-result-stats div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 21px 12px;
}

.wac-result-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.wac-result-stats span {
  font-size: 10px;
  line-height: 1.45;
}

.wac-result-stats b {
  margin: 5px 0;
  color: #fff;
  font-size: 20px;
}

.wac-result-stats small {
  color: #94bdc9;
  font-size: 11px;
  line-height: 1.45;
}

.wac-contact {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #deeaef;
}

.wac-contact-heading {
  margin-bottom: 14px;
}

.wac-contact-heading p {
  margin: 4px 0 0;
  padding: 0;
  color: var(--wac-muted);
  font-size: 13px;
  line-height: 1.6;
}

.wac-contact-error {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #9f2525;
  background: #fff1f1;
  border-radius: 4px;
  font-size: 13px;
}

.wac-contact-error[hidden],
.wac-honeypot {
  display: none !important;
}

.wac-consents {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.wac-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--wac-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.55;
}

.wac-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--wac-blue);
}

.wac-consent a {
  color: var(--wac-blue);
  font-weight: 600;
  text-decoration: underline;
}

.wac-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  padding: 11px 18px;
  color: var(--wac-navy);
  background: var(--wac-yellow);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wac-submit:hover,
.wac-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(170, 151, 0, 0.24);
}

.wac-submit span {
  font-size: 18px;
}

.wac-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.wac-status {
  min-height: 16px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--wac-blue);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.wac-status.is-sending,
.wac-status.is-success,
.wac-status.is-error {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.wac-status.is-sending {
  color: #075985;
  background: #eef8fc;
  border-color: #b8dfed;
}

.wac-status.is-success {
  color: #116333;
  background: #eaf8ef;
  border-color: #a9dfbb;
}

.wac-status.is-error {
  color: #9f2525;
  background: #fff1f1;
  border-color: #efb4b4;
}

.wac-status a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.wac-disclaimer {
  margin: 2px 15px 0;
  padding: 0;
  color: #8ca0aa;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .weanswer-calculator {
    padding: 24px 18px;
  }

  .wac-grid,
  .wac-contact-grid,
  .wac-result {
    grid-template-columns: 1fr;
  }

  .wac-industry-field {
    grid-column: auto;
  }

  .wac-result-main > strong {
    font-size: 41px;
  }

  .wac-result-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }
}

@media (max-width: 390px) {
  .wac-heading h2 {
    font-size: 24px;
  }

  .wac-impact-switch {
    align-self: stretch;
  }

  .wac-impact-switch button {
    flex: 1;
  }
}
