/* Public quote page — matches main PAGE LAB cosmic theme */
.quote-page {
  color: rgba(236, 242, 255, 0.92);
  background:
    radial-gradient(ellipse 65% 45% at 10% -5%, rgba(91, 125, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(123, 60, 255, 0.16), transparent 52%),
    linear-gradient(180deg, #05080f 0%, #070b14 48%, #080d16 100%);
  min-height: 100vh;
}

.quote-page .site-header.agency-header {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quote-main {
  padding: calc(var(--header-h, 72px) + 36px) 0 72px;
}

.quote-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.quote-head {
  margin-bottom: 28px;
}

.quote-head .eyebrow {
  margin: 0 0 10px;
  color: #7de8dc;
  text-shadow: 0 0 14px rgba(61, 224, 208, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 28px rgba(91, 125, 255, 0.18);
}

.quote-head p {
  margin: 0;
  max-width: 44rem;
  color: rgba(180, 198, 230, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.fee-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.fee-config {
  display: grid;
  gap: 16px;
}

.fee-block {
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(8, 14, 26, 0.96), rgba(6, 10, 18, 0.98)) padding-box,
    linear-gradient(135deg, rgba(61, 224, 208, 0.55), rgba(91, 125, 255, 0.4), rgba(123, 60, 255, 0.35)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.35);
  padding: 20px 18px 16px;
}

.fee-block h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.fee-block h2 em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(180, 198, 230, 0.65);
}

.fee-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fee-type {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(125, 170, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 240, 255, 0.88);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.fee-type:hover {
  border-color: rgba(61, 224, 208, 0.45);
}

.fee-type.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #3de0d0, #3d6bff);
  color: #fff;
  box-shadow: 0 8px 22px rgba(61, 224, 208, 0.28);
}

.fee-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid rgba(125, 170, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 10, 18, 0.45);
}

.fee-info li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.fee-info li:last-child {
  border-bottom: 0;
}

.fee-info span {
  color: rgba(170, 190, 220, 0.7);
  font-weight: 600;
}

.fee-info b {
  font-weight: 700;
  text-align: right;
  color: #eef4ff;
}

.fee-extras {
  display: grid;
  gap: 0;
  border: 1px solid rgba(125, 170, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 10, 18, 0.45);
}

.fee-extra-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  color: inherit;
}

.fee-extra-row:last-child {
  border-bottom: 0;
}

.fee-extra-row:hover {
  background: rgba(61, 224, 208, 0.05);
}

.fee-extra-row--stepper {
  grid-template-columns: minmax(0, 1fr) auto auto;
  cursor: default;
}

.fee-extra-row--stepper:hover {
  background: transparent;
}

.fee-extra-row.is-included {
  opacity: 0.78;
}

.fee-extra-check {
  display: grid;
  place-items: center;
}

.fee-extra-check input {
  width: 18px;
  height: 18px;
  accent-color: #3de0d0;
  cursor: pointer;
}

.fee-extra-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fee-extra-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f6ff;
}

.fee-extra-copy em {
  font-style: normal;
  color: rgba(170, 190, 220, 0.68);
  font-size: 0.8rem;
}

.fee-extra-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7de8dc;
  white-space: nowrap;
  text-align: right;
}

.fee-extra-price--muted {
  color: rgba(180, 198, 230, 0.55);
}

.fee-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(125, 170, 255, 0.22);
  background: rgba(7, 12, 22, 0.75);
}

.fee-step {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(61, 224, 208, 0.16);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.fee-step:hover {
  background: rgba(61, 224, 208, 0.32);
}

.fee-stepper b {
  min-width: 72px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #eef4ff;
}

.fee-summary {
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
}

.fee-summary-card {
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 18, 34, 0.98), rgba(6, 12, 22, 0.99)) padding-box,
    linear-gradient(135deg, rgba(61, 224, 208, 0.85), rgba(91, 125, 255, 0.55)) border-box;
  padding: 22px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 36px rgba(61, 224, 208, 0.16),
    0 24px 56px rgba(0, 0, 0, 0.45);
}

.fee-summary-card h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.fee-lines {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fee-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.fee-line span {
  color: rgba(170, 190, 220, 0.7);
}

.fee-line b {
  font-weight: 700;
  white-space: nowrap;
  color: #eef4ff;
}

.fee-line--consult b {
  color: #ffc27a;
}

.fee-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f6ff;
}

.fee-grand {
  display: grid;
  gap: 6px;
  padding: 16px 0 18px;
}

.fee-grand span {
  font-size: 0.84rem;
  color: rgba(170, 190, 220, 0.7);
  font-weight: 600;
}

.fee-grand strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  letter-spacing: -0.03em;
  color: #7de8dc;
  text-shadow: 0 0 18px rgba(61, 224, 208, 0.35);
}

.fee-grand em {
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(170, 190, 220, 0.6);
}

.fee-actions {
  display: grid;
  gap: 8px;
}

.fee-actions .staff-btn,
.fee-actions .quote-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.fee-actions .staff-btn-primary,
.fee-actions .quote-btn-primary {
  background: linear-gradient(135deg, #3de0d0, #3d6bff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(61, 224, 208, 0.25);
}

.fee-actions .staff-btn-ghost,
.fee-actions .quote-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(125, 170, 255, 0.28);
  color: #e8f0ff;
}

.fee-actions .staff-btn-ghost:hover,
.fee-actions .quote-btn-ghost:hover {
  border-color: rgba(61, 224, 208, 0.45);
}

.staff-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.95);
  border: 1px solid rgba(61, 224, 208, 0.35);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.quote-page .site-footer {
  border-top: 1px solid rgba(125, 170, 255, 0.12);
  background: rgba(5, 8, 15, 0.9);
  color: rgba(180, 198, 230, 0.7);
}

@media (max-width: 900px) {
  .fee-layout {
    grid-template-columns: 1fr;
  }

  .fee-summary {
    position: static;
  }

  .fee-extra-row--stepper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fee-extra-row--stepper .fee-extra-price {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .quote-main {
    padding-top: calc(var(--header-h, 72px) + 24px);
  }

  .quote-wrap {
    width: calc(100% - 24px);
  }

  .fee-block {
    padding: 14px;
  }

  .fee-extra-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .fee-extra-price {
    grid-column: 2;
    text-align: left;
  }
}
