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

.ppc-calculator {
  --ppc-accent: #aeea00;
  --ppc-accent-dark: #7fa400;
  --ppc-text: #212326;
  --ppc-muted: #697077;
  --ppc-line: #dedede;
  --ppc-soft: #f5f5f5;
  --ppc-white: #ffffff;
  color: var(--ppc-text);
  display: grid;
  font-family: "Open Sans", Arial, sans-serif;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  margin: 0 auto;
  max-width: 1140px;
  padding: 40px 16px;
}

.ppc-calculator [hidden] {
  display: none !important;
}

.ppc-calculator h2,
.ppc-calculator h3 {
  color: var(--ppc-text);
  font-family: "Wix Madefor Display", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.ppc-calculator h2 {
  font-size: 34px;
}

.ppc-calculator h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.ppc-eyebrow {
  color: var(--ppc-accent-dark);
  font-family: "Wix Madefor Display", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ppc-preview,
.ppc-card {
  background: var(--ppc-white);
  border: 1px solid var(--ppc-line);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.ppc-preview {
  align-self: start;
  overflow: hidden;
}

.ppc-preview__panel {
  background: #101214;
  min-height: 330px;
  padding: 28px;
}

.ppc-preview__mesh {
  background:
    radial-gradient(circle at 20px 20px, transparent 0 9px, #f7f7f7 10px 20px, transparent 21px),
    radial-gradient(circle at 68px 52px, transparent 0 7px, #f7f7f7 8px 17px, transparent 18px),
    linear-gradient(135deg, transparent 0 44%, rgba(174, 234, 0, 0.98) 44% 48%, transparent 48%),
    #111315;
  background-size: 88px 88px, 110px 110px, 180px 180px, auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  height: 270px;
  width: 100%;
}

.ppc-preview__meta {
  background: var(--ppc-soft);
  padding: 26px;
}

.ppc-preview__meta dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
}

.ppc-preview__meta dl div {
  background: var(--ppc-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 14px;
}

.ppc-preview__meta dt {
  color: var(--ppc-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.ppc-preview__meta dd {
  font-family: "Wix Madefor Display", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.ppc-card {
  padding: 28px;
}

.ppc-card__header {
  margin-bottom: 24px;
}

.ppc-form {
  display: grid;
  gap: 22px;
}

.ppc-grid {
  display: grid;
  gap: 16px;
}

.ppc-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ppc-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.ppc-field span {
  color: #2d3135;
  font-size: 14px;
  font-weight: 700;
}

.ppc-field small {
  color: var(--ppc-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ppc-field input,
.ppc-field select,
.ppc-field textarea {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #cfd4d8;
  border-radius: 14px;
  color: var(--ppc-text);
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.ppc-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #212326 50%),
    linear-gradient(135deg, #212326 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 36px;
}

.ppc-field textarea {
  min-height: 106px;
  resize: vertical;
}

.ppc-field input:focus,
.ppc-field select:focus,
.ppc-field textarea:focus {
  border-color: var(--ppc-accent-dark);
  box-shadow: 0 0 0 4px rgba(174, 234, 0, 0.22);
}

.ppc-material-note,
.ppc-error {
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 12px 14px;
}

.ppc-material-note {
  background: rgba(174, 234, 0, 0.16);
  color: #394400;
}

.ppc-error {
  background: #fff1f1;
  color: #a40000;
}

.ppc-total {
  align-items: center;
  background: #101214;
  border-radius: 24px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.ppc-total span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.ppc-total strong {
  color: var(--ppc-accent);
  display: block;
  font-family: "Wix Madefor Display", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.ppc-total p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  max-width: 250px;
}

.ppc-contact {
  border-top: 1px solid var(--ppc-line);
  padding-top: 22px;
}

.ppc-consent {
  align-items: flex-start;
  color: #3a3f43;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
  margin: 16px 0;
}

.ppc-consent input {
  accent-color: var(--ppc-accent-dark);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.ppc-hp {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ppc-submit {
  align-items: center;
  background: var(--ppc-accent);
  border: 0;
  border-radius: 999px;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.ppc-submit:hover {
  background: #c9ff25;
  transform: translateY(-1px);
}

.ppc-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.ppc-status {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 0;
}

.ppc-status[data-state="success"] {
  color: #527000;
}

.ppc-status[data-state="error"] {
  color: #a40000;
}

.ppc-status[data-state="loading"] {
  color: var(--ppc-muted);
}

@media (max-width: 980px) {
  .ppc-calculator {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ppc-calculator {
    gap: 18px;
    padding: 24px 12px;
  }

  .ppc-calculator h2 {
    font-size: 27px;
  }

  .ppc-preview,
  .ppc-card {
    border-radius: 22px;
  }

  .ppc-card,
  .ppc-preview__meta {
    padding: 20px;
  }

  .ppc-preview__panel {
    min-height: 230px;
    padding: 18px;
  }

  .ppc-preview__mesh {
    height: 190px;
  }

  .ppc-grid--two,
  .ppc-preview__meta dl {
    grid-template-columns: 1fr;
  }

  .ppc-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .ppc-total strong {
    font-size: 30px;
  }
}
