/* ==========================================================
   Graphic Design Eye — Graphic Design Pricing Calculator
   Uses the colour tokens from forms-redesign.css
   (#78EB54 lime, #001A0D deep green, cream surfaces)
   ========================================================== */

/* Hero */
.gde-calc-page .about-hero__title { font-weight: 800; letter-spacing: -1px; }
.gde-calc-page .about-hero__title .gde-hl {
  color: #78eb54 !important;
  background: none;
}

/* Layout */
.calc-section { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 96px; }
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
  font-family: var(--gde-font);
  color: var(--gde-ink);
}
.calc__steps { display: grid; gap: 16px; }

/* Step cards */
.calc-step {
  min-width: 0;
  margin: 0;
  padding: 26px 26px 28px;
  border: 0;
  border-radius: 26px;
  background: var(--gde-cream);
  box-shadow: 0 0 0 1px var(--gde-line), 0 30px 60px -48px rgba(0, 26, 13, 0.5);
}
.calc-step__head {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--gde-ink);
}
.calc-step__head + * { clear: both; }
.calc-step__num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #001A0D;
  color: #78EB54;
  font-size: 14px;
  font-weight: 800;
}

/* Service tiles */
.calc-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-service {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid var(--gde-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.calc-service input,
.calc-option input,
.calc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calc-service__icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gde-mint);
  color: #1f7a33;
  transition: background 0.15s ease, color 0.15s ease;
}
.calc-service__name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.calc-service__from { font-size: 12px; color: var(--gde-muted); }
.calc-service:hover { border-color: #9fd38a; transform: translateY(-1px); }
.calc-service:has(input:checked) {
  border-color: #001A0D;
  background: #001A0D;
  color: #fefff6;
  box-shadow: 0 14px 28px -18px rgba(0, 26, 13, 0.8);
}
.calc-service:has(input:checked) .calc-service__icon { background: #78EB54; color: #001A0D; }
.calc-service:has(input:checked) .calc-service__from { color: rgba(198, 247, 181, 0.85); }
.calc-service:has(input:focus-visible),
.calc-option:has(input:focus-visible),
.calc-chip:has(input:focus-visible) { outline: 3px solid #78EB54; outline-offset: 2px; }

/* Quantity */
.calc-qty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calc-qty__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #001A0D;
  color: #78EB54;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.calc-qty__btn:hover { background: #78EB54; color: #001A0D; }
.calc-qty__btn:active { transform: scale(0.95); }
.calc-qty__btn:focus-visible { outline: 3px solid #78EB54; outline-offset: 2px; }
.calc-qty__input {
  width: 96px;
  height: 52px;
  border: 1.5px solid var(--gde-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  font-family: var(--gde-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--gde-ink);
  -moz-appearance: textfield;
}
.calc-qty__input::-webkit-outer-spin-button,
.calc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-qty__input:focus { outline: none; border-color: #32b21f; box-shadow: 0 0 0 4px rgba(120, 235, 84, 0.25); }
.calc-qty__unit { margin-left: 4px; font-size: 16px; font-weight: 600; color: var(--gde-muted); }
.calc-hint { margin: 12px 0 0; font-size: 14px; color: var(--gde-muted); }

/* Option cards (complexity, turnaround) */
.calc-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--gde-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.calc-option__name { font-size: 16px; font-weight: 800; }
.calc-option__note { font-size: 13px; line-height: 1.4; color: var(--gde-muted); }
.calc-option__tag {
  align-self: flex-start;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gde-mint);
  color: #1f6b30;
  font-size: 12px;
  font-weight: 700;
}
.calc-option:hover { border-color: #9fd38a; }
.calc-option:has(input:checked) { border-color: #001A0D; box-shadow: inset 0 0 0 1px #001A0D; background: #f1f8e8; }
.calc-option:has(input:checked) .calc-option__tag { background: #001A0D; color: #78EB54; }
.calc-option:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #78EB54 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23001A0D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Extras chips */
.calc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--gde-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.calc-chip em { font-style: normal; font-weight: 700; color: #1f7a33; }
.calc-chip:hover { border-color: #9fd38a; }
.calc-chip:has(input:checked) { background: #001A0D; border-color: #001A0D; color: #fefff6; }
.calc-chip:has(input:checked) em { color: #78EB54; }
.calc-chip:has(input:checked)::before { content: "✓"; color: #78EB54; font-weight: 800; }
.calc-chip--included { cursor: default; background: var(--gde-mint); border-color: #cfe6bb; color: #1f6b30; }
.calc-chip--included svg { color: #1f9a2e; }

/* Result panel */
.calc-result {
  position: sticky;
  top: 96px;
  overflow: hidden;
  padding: 30px 28px 24px;
  border-radius: 28px;
  background: #001A0D;
  color: #fefff6;
  box-shadow: 0 40px 80px -40px rgba(0, 26, 13, 0.8);
}
.calc-result::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -170px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(120, 235, 84, 0.12) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.calc-result > * { position: relative; }
.calc-result__label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(120, 235, 84, 0.16);
  color: #C6F7B5;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.gde-calc-page .calc-result__summary { margin: 14px 0 4px; font-size: 15px; color: rgba(254, 255, 246, 0.75); }
.calc-result__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: clamp(38px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #78EB54;
  font-variant-numeric: tabular-nums;
}
.calc-result__dash { color: rgba(254, 255, 246, 0.4); font-weight: 400; }
.gde-calc-page .calc-result__delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  font-size: 14px;
  color: rgba(254, 255, 246, 0.8);
}
.calc-result__delivery svg { color: #78EB54; }
.calc-result__delivery strong { color: #fefff6; }
.calc-result__lines {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(254, 255, 246, 0.18);
  display: grid;
  gap: 10px;
}
.calc-result__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(254, 255, 246, 0.72); }
.calc-result__lines strong { color: #fefff6; font-weight: 700; white-space: nowrap; }
.calc-result__lines strong.is-saving { color: #78EB54; }
.calc-result__actions { display: grid; gap: 10px; }
.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.calc-btn--lime { background: #78EB54; color: #001A0D; }
.calc-btn--lime:hover { background: #a6f58b; color: #001A0D; }
.calc-btn--lime svg { transition: transform 0.2s ease; }
.calc-btn--lime:hover svg { transform: translateX(3px); }
.calc-btn--ghost { border: 1.5px solid rgba(254, 255, 246, 0.3); color: #fefff6; }
.calc-btn--ghost:hover { border-color: #78EB54; color: #78EB54; }
.calc-btn:focus-visible { outline: 3px solid #78EB54; outline-offset: 3px; }
.calc-result__plan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(120, 235, 84, 0.1);
  border: 1px solid rgba(120, 235, 84, 0.25);
  color: rgba(254, 255, 246, 0.8);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.calc-result__plan strong { color: #fefff6; }
.calc-result__plan svg { flex: 0 0 18px; color: #78EB54; }
.calc-result__plan:hover { background: rgba(120, 235, 84, 0.16); color: #fefff6; }
.gde-calc-page .calc-result__note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(254, 255, 246, 0.55); }
.calc-reset {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(254, 255, 246, 0.7);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calc-reset:hover { color: #78EB54; }
.calc-noscript { margin: 0; font-size: 15px; }

/* Mobile price bar */
.calc-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1030;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  background: #001A0D;
  color: rgba(254, 255, 246, 0.8);
  font-family: var(--gde-font);
  font-size: 14px;
  box-shadow: 0 16px 40px -10px rgba(0, 26, 13, 0.6);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}
.calc-bar strong { color: #78EB54; font-size: 18px; font-variant-numeric: tabular-nums; }
.calc-bar a {
  padding: 9px 16px;
  border-radius: 999px;
  background: #78EB54;
  color: #001A0D;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .calc { grid-template-columns: minmax(0, 1fr) 360px; }
  .calc-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: relative; top: 0; }
  .calc-bar { display: flex; }
  .calc-bar.is-visible { transform: none; }
}
@media (max-width: 575.98px) {
  .calc-section { margin-top: -24px; padding-bottom: 72px; }
  .calc-step { padding: 20px 16px 22px; border-radius: 22px; }
  .calc-step__head { font-size: 18px; }
  .calc-services { grid-template-columns: 1fr; }
  .calc-options { grid-template-columns: 1fr; }
  .calc-result { padding: 26px 20px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-service, .calc-bar, .calc-btn--lime svg { transition: none; }
}

/* Phones: compact 2-up service tiles */
@media (max-width: 575.98px) {
  .calc-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .calc-service {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 4px;
    align-items: start;
    padding: 12px 10px;
  }
  .calc-service__icon { grid-row: auto; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; }
  .calc-service__name { font-size: 13px; }
  .calc-service__from { font-size: 11.5px; }
}
