/* ===============================
   WEBSITE OPTIMIZATION ESTIMATOR
   Matches optimization pricing cards
================================ */

.optimization-estimator-section {
  background: #f4f6fa;
}

.optimization-estimator-head {
  text-align: center;
  margin-bottom: 22px;
}

.optimization-estimator-intro-text {
  max-width: 920px;
  margin: 0 auto;
}

.optimization-estimator-head-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 2px solid #cfe1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #41586d;
  font-size: 11px;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(18, 40, 70, 0.05);
}

.optimization-estimator-head-time-label {
  font-weight: 800;
  color: #2196d3;
}

.optimization-estimator-head-time-value {
  font-weight: 700;
  color: #183450;
}

.optimization-estimator-layout,
.optimization-estimator-layout-single {
  display: block;
}

.optimization-estimator-form,
.optimization-estimator-form-single {
  background: #ffffff;
  border: 2px solid #dbe4f0;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(18, 40, 70, 0.06);
}

/* ================= BLOCKS ================= */

.optimization-estimator-block {
  margin-bottom: 12px;
  padding: 12px;
  background: #fbfcfe;
  border: 2px solid #dfe7f2;
  border-radius: 18px;
}

.optimization-estimator-block h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  color: #183450;
}

.optimization-estimator-block-merged {
  padding-top: 10px;
  padding-bottom: 12px;
}

.optimization-estimator-block-heading-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.optimization-estimator-block-heading-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.optimization-estimator-block-heading-item {
  min-width: 0;
}

/* ================= CHOICE CARDS ================= */

.optimization-estimator-choice-grid {
  display: grid;
  gap: 8px;
}

.optimization-estimator-choice-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.optimization-estimator-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 10px 11px;
  background: #ffffff;
  border: 2px solid #d8e3f2;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.optimization-estimator-choice-card:hover {
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.08);
}

.optimization-estimator-choice-card input[type="radio"] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 13px;
  height: 13px;
  accent-color: #2196d3;
}

.optimization-estimator-choice-title {
  display: block;
  padding-right: 18px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  color: #14314d;
}

.optimization-estimator-choice-card small {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: #6b8196;
}

.optimization-estimator-choice-card:has(input:checked) {
  box-shadow: 0 8px 18px rgba(33, 150, 211, 0.10);
}

/* color rhythm to match pricing cards */
.optimization-estimator-choice-card:nth-child(6n + 1) {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.optimization-estimator-choice-card:nth-child(6n + 1):has(input:checked) {
  border-color: #219ebc;
  background: #e8f6fb;
}

.optimization-estimator-choice-card:nth-child(6n + 2) {
  background: #eef9f1;
  border-color: #a8dfba;
}
.optimization-estimator-choice-card:nth-child(6n + 2):has(input:checked) {
  border-color: #1f9d55;
  background: #e8f7ed;
}

.optimization-estimator-choice-card:nth-child(6n + 3) {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.optimization-estimator-choice-card:nth-child(6n + 3):has(input:checked) {
  border-color: #c59a16;
  background: #fcf4dc;
}

.optimization-estimator-choice-card:nth-child(6n + 4) {
  background: #fff4ea;
  border-color: #f2bf86;
}
.optimization-estimator-choice-card:nth-child(6n + 4):has(input:checked) {
  border-color: #d97706;
  background: #fff0e2;
}

.optimization-estimator-choice-card:nth-child(6n + 5) {
  background: #fff0ef;
  border-color: #f2b3ac;
}
.optimization-estimator-choice-card:nth-child(6n + 5):has(input:checked) {
  border-color: #e5484d;
  background: #ffe8e6;
}

.optimization-estimator-choice-card:nth-child(6n) {
  background: #eef3fb;
  border-color: #b9d0ef;
}
.optimization-estimator-choice-card:nth-child(6n):has(input:checked) {
  border-color: #1f3f73;
  background: #e8eef9;
}

/* ================= FIELDS ================= */

.optimization-estimator-field-grid {
  display: grid;
  gap: 10px;
}

.optimization-estimator-field-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.optimization-estimator-field {
  min-width: 0;
}

.optimization-estimator-field-span-2 {
  grid-column: span 2;
}

.optimization-estimator-field label,
.optimization-estimator-quote-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  color: #40566b;
}

.optimization-estimator-field select,
.optimization-estimator-quote-field input,
.optimization-estimator-quote-field textarea {
  width: 100%;
  border: 2px solid #d6e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #17324d;
  font-size: 11px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.optimization-estimator-field select,
.optimization-estimator-quote-field input {
  height: 40px;
  padding: 0 10px;
}

.optimization-estimator-quote-field textarea {
  min-height: 110px;
  padding: 10px;
  resize: vertical;
}

.optimization-estimator-field select:focus,
.optimization-estimator-quote-field input:focus,
.optimization-estimator-quote-field textarea:focus {
  border-color: #2196d3;
  box-shadow: 0 0 0 3px rgba(33, 150, 211, 0.08);
}

/* ================= CHECK PILLS ================= */

.optimization-estimator-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.optimization-estimator-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 11px;
  border: 2px solid #d8e3f1;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
  background: #ffffff;
}

.optimization-estimator-check input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #2196d3;
}

.optimization-estimator-check span {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #29445d;
}

.optimization-estimator-check:hover {
  box-shadow: 0 4px 12px rgba(18, 40, 70, 0.06);
}

.optimization-estimator-check:nth-child(5n + 1) {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.optimization-estimator-check:nth-child(5n + 1):has(input:checked) {
  border-color: #219ebc;
}

.optimization-estimator-check:nth-child(5n + 2) {
  background: #eef9f1;
  border-color: #a8dfba;
}
.optimization-estimator-check:nth-child(5n + 2):has(input:checked) {
  border-color: #1f9d55;
}

.optimization-estimator-check:nth-child(5n + 3) {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.optimization-estimator-check:nth-child(5n + 3):has(input:checked) {
  border-color: #c59a16;
}

.optimization-estimator-check:nth-child(5n + 4) {
  background: #fff4ea;
  border-color: #f2bf86;
}
.optimization-estimator-check:nth-child(5n + 4):has(input:checked) {
  border-color: #d97706;
}

.optimization-estimator-check:nth-child(5n) {
  background: #fff0ef;
  border-color: #f2b3ac;
}
.optimization-estimator-check:nth-child(5n):has(input:checked) {
  border-color: #e5484d;
}

/* ================= RESULT PLACEHOLDER ================= */

.optimization-estimator-result-block {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  border: 2px solid #d7e4ff;
}

.optimization-estimator-result-placeholder-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2196d3;
}

.optimization-estimator-result-placeholder h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #102a43;
}

.optimization-estimator-result-placeholder p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #607387;
}

/* ================= LIVE ESTIMATE SHEET ================= */

.optimization-estimator-result-live {
  background: transparent;
}

.optimization-estimate-sheet {
  background: var(--opt-sheet-surface, #f7f9ff);
  border: 2px solid var(--opt-sheet-border, #dbe4f2);
  border-radius: 20px;
  padding: 14px;
  color: var(--opt-sheet-text, #4a6177);
}

.optimization-estimate-sheet-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--opt-sheet-accent, #2196d3);
}

.optimization-estimate-sheet-head {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 12px;
  margin-bottom: 12px;
}

.optimization-estimate-sheet-head-main {
  min-width: 0;
  padding: 14px;
  background: var(--opt-sheet-panel, #ffffff);
  border: 2px solid var(--opt-sheet-border, #dbe4f2);
  border-radius: 18px;
}

.optimization-estimate-sheet-head-main h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--opt-sheet-heading, #183450);
}

.optimization-estimate-sheet-head-main p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--opt-sheet-text, #4a6177);
}

.optimization-estimate-time-panel {
  display: grid;
  gap: 10px;
}

.optimization-estimate-time-item {
  padding: 12px;
  background: var(--opt-sheet-panel, #ffffff);
  border: 2px solid var(--opt-sheet-border, #dbe4f2);
  border-radius: 16px;
}

.optimization-time-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6f8298;
}

.optimization-time-value {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--opt-sheet-heading, #183450);
}

.optimization-estimate-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.optimization-estimate-card {
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--opt-sheet-border, #dbe4f2);
  background: var(--opt-sheet-panel, #ffffff);
}

.optimization-card-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71859a;
}

.optimization-estimate-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.optimization-estimate-card.tone-a {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.optimization-estimate-card.tone-a strong {
  color: #219ebc;
}

.optimization-estimate-card.tone-b {
  background: #eef9f1;
  border-color: #a8dfba;
}
.optimization-estimate-card.tone-b strong {
  color: #1f9d55;
}

.optimization-estimate-card.tone-c {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.optimization-estimate-card.tone-c strong {
  color: #c59a16;
}

.optimization-estimate-card.tone-d {
  background: #fff4ea;
  border-color: #f2bf86;
}
.optimization-estimate-card.tone-d strong {
  color: #d97706;
}

.optimization-estimate-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.optimization-estimate-panel {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--opt-sheet-border, #dbe4f2);
  background: var(--opt-sheet-panel, #ffffff);
}

.optimization-estimate-panel-wide {
  grid-column: 1 / -1;
}

.optimization-estimate-panel h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--opt-sheet-accent, #2196d3);
}

.optimization-estimate-panel p,
.optimization-estimate-panel li {
  font-size: 11px;
  line-height: 1.55;
  color: var(--opt-sheet-text, #4a6177);
}

.optimization-estimate-panel p {
  margin: 0;
}

.optimization-estimate-panel ul {
  margin: 0;
  padding-left: 16px;
}

.optimization-estimate-panel li + li {
  margin-top: 4px;
}

.optimization-estimate-warning {
  color: #c2410c !important;
  font-weight: 800;
}

.optimization-estimate-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

/* ================= REVEAL ================= */

.optimization-reveal-step {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.optimization-reveal-step.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.optimization-reveal-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= QUOTE FORM AREA ================= */

.optimization-estimator-quote-area {
  margin-top: 14px;
  background: #fcfdff;
  border: 2px solid #dde6f2;
}

.optimization-estimator-quote-form-card {
  padding: 2px;
}

.optimization-estimator-quote-form-head {
  margin-bottom: 12px;
}

.optimization-estimator-quote-form-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #2196d3;
}

.optimization-estimator-quote-form-head h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.2;
  color: #183450;
}

.optimization-estimator-quote-form-head p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #617488;
}

.optimization-estimator-quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.optimization-estimator-quote-field-span-2 {
  grid-column: span 2;
}

.optimization-estimator-quote-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ================= FINAL QUOTE SHEET ================= */

.optimization-estimator-quote-preview {
  margin-top: 16px;
}

.optimization-quote-sheet {
  background: var(--opt-quote-surface, #ffffff);
  border: 2px solid var(--opt-quote-border, #dde6f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
}

.optimization-quote-sheet-header {
  background: #ffffff;
  border-bottom: 2px solid var(--opt-quote-border, #dde6f0);
}

.optimization-quote-sheet-letterhead-svg {
  display: block;
  width: 100%;
  height: auto;
}

.optimization-quote-sheet-body {
  padding: 18px;
}

.optimization-quote-sheet-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--opt-quote-accent, #163a63);
}

.optimization-quote-sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--opt-quote-border, #dde6f0);
}

.optimization-quote-sheet-title h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--opt-quote-heading, #102a43);
}

.optimization-quote-sheet-title p,
.optimization-quote-sheet-meta p,
.optimization-quote-sheet-panel p,
.optimization-quote-sheet-panel li,
.optimization-quote-sheet-footer p {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.58;
  color: var(--opt-quote-text, #42586b);
}

.optimization-quote-sheet-meta {
  text-align: right;
}

.optimization-quote-sheet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.optimization-quote-stat {
  padding: 11px;
  border-radius: 16px;
  border: 2px solid var(--opt-quote-border, #dde6f0);
  background: var(--opt-quote-panel, #fbfdff);
}

.optimization-quote-stat-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #71859a;
}

.optimization-quote-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.38;
}

.optimization-quote-stat.tone-a {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.optimization-quote-stat.tone-a .optimization-quote-stat-value {
  color: #219ebc;
}

.optimization-quote-stat.tone-b {
  background: #eef9f1;
  border-color: #a8dfba;
}
.optimization-quote-stat.tone-b .optimization-quote-stat-value {
  color: #1f9d55;
}

.optimization-quote-stat.tone-c {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.optimization-quote-stat.tone-c .optimization-quote-stat-value {
  color: #c59a16;
}

.optimization-quote-stat.tone-d {
  background: #fff4ea;
  border-color: #f2bf86;
}
.optimization-quote-stat.tone-d .optimization-quote-stat-value {
  color: #d97706;
}

.optimization-quote-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.optimization-quote-sheet-panel {
  padding: 13px;
  border: 2px solid var(--opt-quote-border, #dde6f0);
  border-radius: 16px;
  background: var(--opt-quote-panel, #fbfdff);
}

.optimization-quote-sheet-panel h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--opt-quote-accent, #163a63);
}

.optimization-quote-sheet-panel ul {
  margin: 0;
  padding-left: 16px;
}

.optimization-quote-sheet-panel li + li {
  margin-top: 4px;
}

.optimization-quote-sheet-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--opt-quote-border, #dde6f0);
}

.optimization-quote-next-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}

/* ================= ACTION ROW ================= */

.optimization-estimator-submit,
.optimization-estimator-submit-bottom,
.optimization-estimator-submit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.optimization-estimator-submit .btn,
.optimization-estimator-submit-bottom .btn,
.optimization-estimator-submit-row .btn,
.optimization-estimator-quote-actions .btn,
.optimization-estimate-actions .btn,
.optimization-quote-next-actions .btn {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1280px) {
  .optimization-estimator-choice-grid-6,
  .optimization-estimator-field-grid-4,
  .optimization-estimator-quote-grid,
  .optimization-estimate-summary-grid,
  .optimization-quote-sheet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .optimization-estimate-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .optimization-estimate-sheet-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .optimization-estimator-block-heading-grid-2,
  .optimization-estimator-choice-grid-6,
  .optimization-estimator-field-grid-4,
  .optimization-estimator-quote-grid,
  .optimization-estimate-summary-grid,
  .optimization-estimate-detail-grid,
  .optimization-quote-sheet-stats,
  .optimization-quote-sheet-grid {
    grid-template-columns: 1fr;
  }

  .optimization-estimator-field-span-2,
  .optimization-estimate-panel-wide {
    grid-column: auto;
  }

  .optimization-quote-sheet-title-row {
    flex-direction: column;
  }

  .optimization-quote-sheet-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .optimization-estimator-form,
  .optimization-estimator-form-single {
    padding: 10px;
  }

  .optimization-estimator-block {
    padding: 10px;
  }

  .optimization-estimator-choice-card {
    min-height: 80px;
  }

  .optimization-estimator-submit,
  .optimization-estimator-submit-bottom,
  .optimization-estimator-submit-row,
  .optimization-estimator-quote-actions,
  .optimization-quote-next-actions {
    flex-wrap: wrap;
  }

  .optimization-estimator-submit .btn,
  .optimization-estimator-submit-bottom .btn,
  .optimization-estimator-submit-row .btn,
  .optimization-estimator-quote-actions .btn,
  .optimization-estimate-actions .btn,
  .optimization-quote-next-actions .btn {
    flex: 1 1 auto;
  }

  .optimization-estimate-sheet,
  .optimization-quote-sheet-body {
    padding: 12px;
  }
}


/* ===============================
   WEBSITE DEVELOPMENT ESTIMATOR
   Matches service pricing ladder colors
================================ */

.development-estimator-section {
  background: #f4f6fa;
}

.development-estimator-head {
  text-align: center;
  margin-bottom: 22px;
}

.development-estimator-intro-text {
  max-width: 920px;
  margin: 0 auto;
}

.development-estimator-head-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 2px solid #cfe1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #41586d;
  font-size: 11px;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(18, 40, 70, 0.05);
}

.development-estimator-head-time-label {
  font-weight: 800;
  color: #2196d3;
}

.development-estimator-head-time-value {
  font-weight: 700;
  color: #183450;
}

.development-estimator-layout,
.development-estimator-layout-single {
  display: block;
}

.development-estimator-form,
.development-estimator-form-single {
  background: #ffffff;
  border: 2px solid #dbe4f0;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(18, 40, 70, 0.06);
}

/* ================= BLOCKS ================= */

.development-estimator-block {
  margin-bottom: 12px;
  padding: 12px;
  background: #fbfcfe;
  border: 2px solid #dfe7f2;
  border-radius: 18px;
}

.development-estimator-block h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  color: #183450;
}

.development-estimator-block-merged {
  padding-top: 10px;
  padding-bottom: 12px;
}

.development-estimator-block-heading-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.development-estimator-block-heading-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.development-estimator-block-heading-item {
  min-width: 0;
}

/* ================= CHOICE CARDS ================= */

.development-estimator-choice-grid {
  display: grid;
  gap: 8px;
}

.development-estimator-choice-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.development-estimator-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 10px 11px;
  background: #ffffff;
  border: 2px solid #d8e3f2;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.development-estimator-choice-card:hover {
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.08);
}

.development-estimator-choice-card input[type="radio"] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 13px;
  height: 13px;
  accent-color: #2196d3;
}

.development-estimator-choice-title {
  display: block;
  padding-right: 18px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  color: #14314d;
}

.development-estimator-choice-card small {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: #6b8196;
}

.development-estimator-choice-card:has(input:checked) {
  box-shadow: 0 8px 18px rgba(33, 150, 211, 0.10);
}

/* color rhythm matching service pricing cards */
.development-estimator-choice-card:nth-child(6n + 1) {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.development-estimator-choice-card:nth-child(6n + 1):has(input:checked) {
  border-color: #219ebc;
  background: #e8f6fb;
}

.development-estimator-choice-card:nth-child(6n + 2) {
  background: #eef9f1;
  border-color: #a8dfba;
}
.development-estimator-choice-card:nth-child(6n + 2):has(input:checked) {
  border-color: #1f9d55;
  background: #e8f7ed;
}

.development-estimator-choice-card:nth-child(6n + 3) {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.development-estimator-choice-card:nth-child(6n + 3):has(input:checked) {
  border-color: #c59a16;
  background: #fcf4dc;
}

.development-estimator-choice-card:nth-child(6n + 4) {
  background: #fff4ea;
  border-color: #f2bf86;
}
.development-estimator-choice-card:nth-child(6n + 4):has(input:checked) {
  border-color: #d97706;
  background: #fff0e2;
}

.development-estimator-choice-card:nth-child(6n + 5) {
  background: #fff0ef;
  border-color: #f2b3ac;
}
.development-estimator-choice-card:nth-child(6n + 5):has(input:checked) {
  border-color: #e5484d;
  background: #ffe8e6;
}

.development-estimator-choice-card:nth-child(6n) {
  background: #eef3fb;
  border-color: #b9d0ef;
}
.development-estimator-choice-card:nth-child(6n):has(input:checked) {
  border-color: #1f3f73;
  background: #e8eef9;
}

/* ================= FIELDS ================= */

.development-estimator-field-grid {
  display: grid;
  gap: 10px;
}

.development-estimator-field-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.development-estimator-field {
  min-width: 0;
}

.development-estimator-field label,
.development-estimator-quote-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  color: #40566b;
}

.development-estimator-field select,
.development-estimator-quote-field input,
.development-estimator-quote-field textarea {
  width: 100%;
  border: 2px solid #d6e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #17324d;
  font-size: 11px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.development-estimator-field select,
.development-estimator-quote-field input {
  height: 40px;
  padding: 0 10px;
}

.development-estimator-quote-field textarea {
  min-height: 110px;
  padding: 10px;
  resize: vertical;
}

.development-estimator-field select:focus,
.development-estimator-quote-field input:focus,
.development-estimator-quote-field textarea:focus {
  border-color: #2196d3;
  box-shadow: 0 0 0 3px rgba(33, 150, 211, 0.08);
}

/* ================= CHECK PILLS ================= */

.development-estimator-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.development-estimator-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 11px;
  border: 2px solid #d8e3f1;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
  background: #ffffff;
}

.development-estimator-check input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #2196d3;
}

.development-estimator-check span {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #29445d;
}

.development-estimator-check:hover {
  box-shadow: 0 4px 12px rgba(18, 40, 70, 0.06);
}

.development-estimator-check:nth-child(5n + 1) {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.development-estimator-check:nth-child(5n + 1):has(input:checked) {
  border-color: #219ebc;
}

.development-estimator-check:nth-child(5n + 2) {
  background: #eef9f1;
  border-color: #a8dfba;
}
.development-estimator-check:nth-child(5n + 2):has(input:checked) {
  border-color: #1f9d55;
}

.development-estimator-check:nth-child(5n + 3) {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.development-estimator-check:nth-child(5n + 3):has(input:checked) {
  border-color: #c59a16;
}

.development-estimator-check:nth-child(5n + 4) {
  background: #fff4ea;
  border-color: #f2bf86;
}
.development-estimator-check:nth-child(5n + 4):has(input:checked) {
  border-color: #d97706;
}

.development-estimator-check:nth-child(5n) {
  background: #fff0ef;
  border-color: #f2b3ac;
}
.development-estimator-check:nth-child(5n):has(input:checked) {
  border-color: #e5484d;
}

/* ================= RESULT PLACEHOLDER ================= */

.development-estimator-result-block {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  border: 2px solid #d7e4ff;
}

.development-estimator-result-placeholder-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2196d3;
}

.development-estimator-result-placeholder h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #102a43;
}

.development-estimator-result-placeholder p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #607387;
}

/* ================= LIVE ESTIMATE SHEET ================= */

.development-estimator-result-live {
  background: transparent;
}

.development-estimate-sheet {
  background: var(--dev-sheet-surface, #f7f9ff);
  border: 2px solid var(--dev-sheet-border, #dbe4f2);
  border-radius: 20px;
  padding: 14px;
  color: var(--dev-sheet-text, #4a6177);
}

.development-estimate-sheet-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--dev-sheet-accent, #2196d3);
}

.development-estimate-sheet-head {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 12px;
  margin-bottom: 12px;
}

.development-estimate-sheet-head-main {
  min-width: 0;
  padding: 14px;
  background: var(--dev-sheet-panel, #ffffff);
  border: 2px solid var(--dev-sheet-border, #dbe4f2);
  border-radius: 18px;
}

.development-estimate-sheet-head-main h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--dev-sheet-heading, #183450);
}

.development-estimate-sheet-head-main p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dev-sheet-text, #4a6177);
}

.development-estimate-time-panel {
  display: grid;
  gap: 10px;
}

.development-estimate-time-item {
  padding: 12px;
  background: var(--dev-sheet-panel, #ffffff);
  border: 2px solid var(--dev-sheet-border, #dbe4f2);
  border-radius: 16px;
}

.development-time-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6f8298;
}

.development-time-value {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--dev-sheet-heading, #183450);
}

.development-estimate-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.development-estimate-card {
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--dev-sheet-border, #dbe4f2);
  background: var(--dev-sheet-panel, #ffffff);
}

.development-card-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71859a;
}

.development-estimate-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.development-estimate-card.tone-a {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.development-estimate-card.tone-a strong {
  color: #219ebc;
}

.development-estimate-card.tone-b {
  background: #eef9f1;
  border-color: #a8dfba;
}
.development-estimate-card.tone-b strong {
  color: #1f9d55;
}

.development-estimate-card.tone-c {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.development-estimate-card.tone-c strong {
  color: #c59a16;
}

.development-estimate-card.tone-d {
  background: #fff4ea;
  border-color: #f2bf86;
}
.development-estimate-card.tone-d strong {
  color: #d97706;
}

.development-estimate-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.development-estimate-panel {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--dev-sheet-border, #dbe4f2);
  background: var(--dev-sheet-panel, #ffffff);
}

.development-estimate-panel-wide {
  grid-column: 1 / -1;
}

.development-estimate-panel h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dev-sheet-accent, #2196d3);
}

.development-estimate-panel p,
.development-estimate-panel li {
  font-size: 11px;
  line-height: 1.55;
  color: var(--dev-sheet-text, #4a6177);
}

.development-estimate-panel p {
  margin: 0;
}

.development-estimate-panel ul {
  margin: 0;
  padding-left: 16px;
}

.development-estimate-panel li + li {
  margin-top: 4px;
}

.development-estimate-warning {
  color: #c2410c !important;
  font-weight: 800;
}

.development-estimate-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

/* ================= REVEAL ================= */

.development-reveal-step {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.development-reveal-step.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.development-reveal-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= QUOTE FORM AREA ================= */

.development-estimator-quote-area {
  margin-top: 14px;
  background: #fcfdff;
  border: 2px solid #dde6f2;
}

.development-estimator-quote-form-card {
  padding: 2px;
}

.development-estimator-quote-form-head {
  margin-bottom: 12px;
}

.development-estimator-quote-form-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #2196d3;
}

.development-estimator-quote-form-head h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.2;
  color: #183450;
}

.development-estimator-quote-form-head p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #617488;
}

.development-estimator-quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.development-estimator-quote-field-span-2 {
  grid-column: span 2;
}

.development-estimator-quote-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ================= FINAL QUOTE SHEET ================= */

.development-estimator-quote-preview {
  margin-top: 16px;
}

.development-quote-sheet {
  background: var(--dev-quote-surface, #ffffff);
  border: 2px solid var(--dev-quote-border, #dde6f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
}

.development-quote-sheet-header {
  background: #ffffff;
  border-bottom: 2px solid var(--dev-quote-border, #dde6f0);
}

.development-quote-sheet-letterhead-svg {
  display: block;
  width: 100%;
  height: auto;
}

.development-quote-sheet-body {
  padding: 18px;
}

.development-quote-sheet-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--dev-quote-accent, #163a63);
}

.development-quote-sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dev-quote-border, #dde6f0);
}

.development-quote-sheet-title h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--dev-quote-heading, #102a43);
}

.development-quote-sheet-title p,
.development-quote-sheet-meta p,
.development-quote-sheet-panel p,
.development-quote-sheet-panel li,
.development-quote-sheet-footer p {
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.58;
  color: var(--dev-quote-text, #42586b);
}

.development-quote-sheet-meta {
  text-align: right;
}

.development-quote-sheet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.development-quote-stat {
  padding: 11px;
  border-radius: 16px;
  border: 2px solid var(--dev-quote-border, #dde6f0);
  background: var(--dev-quote-panel, #fbfdff);
}

.development-quote-stat-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #71859a;
}

.development-quote-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.38;
}

.development-quote-stat.tone-a {
  background: #eef6fb;
  border-color: #9fd8ee;
}
.development-quote-stat.tone-a .development-quote-stat-value {
  color: #219ebc;
}

.development-quote-stat.tone-b {
  background: #eef9f1;
  border-color: #a8dfba;
}
.development-quote-stat.tone-b .development-quote-stat-value {
  color: #1f9d55;
}

.development-quote-stat.tone-c {
  background: #fdf8ea;
  border-color: #f0ca57;
}
.development-quote-stat.tone-c .development-quote-stat-value {
  color: #c59a16;
}

.development-quote-stat.tone-d {
  background: #fff4ea;
  border-color: #f2bf86;
}
.development-quote-stat.tone-d .development-quote-stat-value {
  color: #d97706;
}

.development-quote-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.development-quote-sheet-panel {
  padding: 13px;
  border: 2px solid var(--dev-quote-border, #dde6f0);
  border-radius: 16px;
  background: var(--dev-quote-panel, #fbfdff);
}

.development-quote-sheet-panel h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dev-quote-accent, #163a63);
}

.development-quote-sheet-panel ul {
  margin: 0;
  padding-left: 16px;
}

.development-quote-sheet-panel li + li {
  margin-top: 4px;
}

.development-quote-sheet-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--dev-quote-border, #dde6f0);
}

.development-quote-next-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}

/* ================= ACTION ROW ================= */

.development-estimator-submit,
.development-estimator-submit-bottom,
.development-estimator-submit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.development-estimator-submit .btn,
.development-estimator-submit-bottom .btn,
.development-estimator-submit-row .btn,
.development-estimator-quote-actions .btn,
.development-estimate-actions .btn,
.development-quote-next-actions .btn {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1280px) {
  .development-estimator-choice-grid-6,
  .development-estimator-field-grid-4,
  .development-estimator-quote-grid,
  .development-estimate-summary-grid,
  .development-quote-sheet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .development-estimate-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .development-estimate-sheet-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .development-estimator-block-heading-grid-2,
  .development-estimator-choice-grid-6,
  .development-estimator-field-grid-4,
  .development-estimator-quote-grid,
  .development-estimate-summary-grid,
  .development-estimate-detail-grid,
  .development-quote-sheet-stats,
  .development-quote-sheet-grid {
    grid-template-columns: 1fr;
  }

  .development-quote-sheet-title-row {
    flex-direction: column;
  }

  .development-quote-sheet-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .development-estimator-form,
  .development-estimator-form-single {
    padding: 10px;
  }

  .development-estimator-block {
    padding: 10px;
  }

  .development-estimator-choice-card {
    min-height: 80px;
  }

  .development-estimator-submit,
  .development-estimator-submit-bottom,
  .development-estimator-submit-row,
  .development-estimator-quote-actions,
  .development-quote-next-actions {
    flex-wrap: wrap;
  }

  .development-estimator-submit .btn,
  .development-estimator-submit-bottom .btn,
  .development-estimator-submit-row .btn,
  .development-estimator-quote-actions .btn,
  .development-estimate-actions .btn,
  .development-quote-next-actions .btn {
    flex: 1 1 auto;
  }

  .development-estimate-sheet,
  .development-quote-sheet-body {
    padding: 12px;
  }
}