/* ============================================================
   eCyber LLC — Assessment quote page styles
   Layered on top of /css/styles.css (uses same CSS variables).
   ============================================================ */

/* ----- Stepper ----- */
.quote-stepper {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 0.5rem;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  justify-content: space-between;
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.stepper-step + .stepper-step::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  background: rgba(125, 211, 252, 0.35);
  border-radius: 50%;
  transform: translateY(-50%);
}

.stepper-num {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(15, 34, 64, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--sky-200);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.stepper-step.is-active {
  color: var(--white);
}

.stepper-step.is-active .stepper-num {
  background: linear-gradient(135deg, var(--sky-400), var(--sky-300));
  color: var(--navy-950);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.stepper-step.is-complete .stepper-num {
  background: rgba(56, 189, 248, 0.18);
  color: var(--sky-300);
  border-color: rgba(56, 189, 248, 0.35);
}

.stepper-step.is-complete .stepper-num::before {
  content: "✓";
  font-family: var(--font-sans);
}

.stepper-step.is-complete .stepper-num span,
.stepper-step.is-complete .stepper-num {
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .stepper {
    border-radius: 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .stepper-step + .stepper-step::before {
    display: none;
  }
}

/* ----- Quote sections ----- */
.quote-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
}

.quote-section.is-hidden {
  display: none;
}

.step-head {
  margin-bottom: 1.75rem;
}

.step-title {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  margin: 0.4rem 0 0.65rem;
  line-height: 1.2;
}

.step-sub {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* ----- Service picker (Step 1) ----- */
.service-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.service-card {
  position: relative;
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font: inherit;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 18px 40px -28px rgba(56, 189, 248, 0.65);
  outline: none;
}

.service-card.is-selected {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.18), rgba(15, 34, 64, 0.7));
  border-color: var(--sky-400);
  box-shadow: 0 0 0 1px var(--sky-400), 0 18px 50px -28px rgba(56, 189, 248, 0.85);
}

.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(56, 189, 248, 0.18);
  color: var(--sky-300);
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.service-card-blurb {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.55;
}

.service-card-foot {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--sky-200);
  font-family: var(--font-mono);
}

.service-card-check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--navy-950);
  background: transparent;
  transition: all 0.2s ease;
}

.service-card.is-selected .service-card-check {
  background: var(--sky-400);
  border-color: var(--sky-400);
}

.service-card.is-selected .service-card-check::after {
  content: "✓";
  font-weight: 700;
}

.dna-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(125, 211, 252, 0.35);
  border-radius: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dna-icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sky-200);
  border-radius: 50%;
  font-size: 0.85rem;
}

/* ----- Step 2: question grid ----- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .quote-sidebar {
    position: static !important;
    order: -1;
  }
}

.quote-form-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.progress {
  margin-top: 1rem;
  height: 6px;
  width: 100%;
  background: rgba(125, 211, 252, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-200));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.section-host {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.section-title {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

/* Question card */
.q {
  padding: 1.1rem 1.15rem;
  background: rgba(15, 34, 64, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.q:hover {
  border-color: rgba(125, 211, 252, 0.35);
}

.q-label {
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.q-help {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Choice (radio / checkbox) */
.choice-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.choice-list.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice {
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(10, 22, 40, 0.5);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  font-size: 0.95rem;
}

.choice:hover {
  border-color: rgba(125, 211, 252, 0.45);
  transform: translateY(-1px);
}

.choice input {
  margin: 0;
  accent-color: var(--sky-400);
  flex: 0 0 auto;
  margin-top: 0.18rem;
}

.choice.is-active {
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.22), rgba(15, 34, 64, 0.6));
  border-color: var(--sky-400);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.choice.is-dna {
  border-style: dashed;
  color: var(--muted);
}

.choice.is-dna.is-active {
  color: var(--white);
  background: rgba(56, 189, 248, 0.12);
}

/* Text / number / textarea */
.input,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: var(--white);
  font: inherit;
  border-radius: 0.7rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  background: rgba(15, 34, 64, 0.7);
}

.textarea {
  min-height: 5rem;
  resize: vertical;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-suffix {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* DNA toggle for free-text questions */
.dna-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.dna-toggle input {
  accent-color: var(--sky-400);
}

.q.is-dna .input,
.q.is-dna .textarea {
  opacity: 0.45;
  pointer-events: none;
}

/* Step actions row */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

#prev-section[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

/* ----- Sidebar (estimate) ----- */
.quote-sidebar {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.estimate-card {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.14), rgba(15, 34, 64, 0.7));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.estimate-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-200);
  margin: 0 0 0.4rem;
}

.estimate-value {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.estimate-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.estimate-meter {
  height: 6px;
  background: rgba(125, 211, 252, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.estimate-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-200));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.estimate-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.estimate-stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  padding-top: 0.45rem;
}

.estimate-stats li:first-child {
  border-top: 0;
  padding-top: 0;
}

.estimate-stat-label {
  color: var(--muted);
}

.estimate-stat-val {
  font-family: var(--font-mono);
  color: var(--sky-200);
}

.sidebar-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 0 0.25rem;
}

/* ----- Step 3: contact form ----- */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.88rem;
  color: var(--sky-200);
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.7rem;
  color: var(--white);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--sky-400);
  background: rgba(15, 34, 64, 0.7);
}

.field.is-invalid input {
  border-color: #f87171;
}

.req {
  color: #f87171;
  font-weight: 700;
}

.contact-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ----- Step 4: result ----- */
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.18), rgba(15, 34, 64, 0.75));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.result-summary {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.result-figures {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 1rem;
  background: rgba(10, 22, 40, 0.5);
  margin: 0 0 1.25rem;
}

.result-figure {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.result-figures-sep {
  color: var(--sky-300);
  font-size: 1.5rem;
  font-family: var(--font-mono);
}

.result-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--sky-200);
}

.result-status.is-error {
  color: #fca5a5;
}

.result-side {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.result-next {
  margin: 1rem 0 1.25rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.result-next li::marker {
  color: var(--sky-300);
}

.result-direct {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.result-direct a {
  color: var(--sky-300);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.5);
  text-underline-offset: 3px;
}

/* ----- Overlay (loading / sending) ----- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-card {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

.overlay-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(125, 211, 252, 0.2);
  border-top-color: var(--sky-400);
  animation: spin 0.9s linear infinite;
}

.overlay-text {
  margin: 0;
  font-weight: 500;
  color: var(--sky-200);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Slight section transition */
.quote-section:not(.is-hidden) {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ----- Calendly scheduler step ----- */
.calendly-wrap {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.calendly-embed {
  position: relative;
  width: 100%;
  min-height: 720px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -40px rgba(2, 6, 23, 0.6);
}

.calendly-embed iframe {
  border: 0;
  display: block;
  width: 100%;
  min-height: 720px;
}

.calendly-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: var(--sky-200);
  font-size: 0.95rem;
}

.calendly-status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: pulseDot 1.6s ease-out infinite;
}

.calendly-status.is-confirmed {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
}

.calendly-status.is-confirmed .calendly-status-dot {
  background: #4ade80;
  animation: none;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.calendly-status.is-error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.calendly-status.is-error .calendly-status-dot {
  background: #f87171;
  animation: none;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.8);
}

@media (max-width: 640px) {
  .calendly-embed,
  .calendly-embed iframe {
    min-height: 920px;
  }
}

/* Manual "I already booked" fallback */
.manual-scheduled {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--slate-300, #cbd5e1);
  text-align: center;
  transition: color 0.3s ease;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--sky-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--sky-200);
}

.manual-scheduled.is-emphasized {
  color: #fde68a;
  font-weight: 600;
  animation: pulseEmphasize 1.6s ease-in-out 2;
}

.manual-scheduled.is-emphasized .link-button {
  color: #fcd34d;
}

/* Manual mailto fallback on the result step */
.manual-email {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(125, 211, 252, 0.25);
  display: none;
}

.manual-email.is-visible,
.result-status.is-error ~ .manual-email {
  display: block;
}

.manual-email-help {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--sky-200);
}

@keyframes pulseEmphasize {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(-2px);
  }
}
