/* Elephant Core components. Colours are variables, so branding can be changed in one place
   (e.g. in GeneratePress › Customize › Additional CSS: .ec { --ec-accent: #123456; }). */
.ec {
  --ec-accent: #14776F;
  --ec-accent-tint: #E6F3EE;
  --ec-ink: #172D3B;
  --ec-muted: #3B5160;
  --ec-line: #D5E3DE;
  --ec-input-line: #B9CCC6;
  --ec-bg: #FFFFFF;
  --ec-soft: #FFF8EE;
  --ec-warn: #8A3F12;
  --ec-cta: #FF7855;
  --ec-radius: 14px;
  color: var(--ec-ink);
  box-sizing: border-box;
}
.ec *, .ec *::before, .ec *::after { box-sizing: inherit; }
.ec h2 { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.2; }

.ec-box, .ec-panel {
  background: var(--ec-bg); border: 1px solid var(--ec-line); border-radius: 18px;
  padding: 24px; box-shadow: 0 12px 32px rgba(23, 33, 43, .08);
  display: flex; flex-direction: column; gap: 14px;
}
.ec-box__title { font-size: 1.3rem; margin: 0; }
.ec-label { display: block; font-size: .875rem; font-weight: 600; color: var(--ec-muted); margin-bottom: 6px; }
.ec-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--ec-input-line);
  border-radius: 10px; font: inherit; font-size: 16px; color: var(--ec-ink); background: #fff;
}
.ec-input:focus { outline: none; border-color: var(--ec-accent); box-shadow: 0 0 0 4px rgba(20,119,111,.18); }
.ec-choice input:focus-visible + span, .ec-btn:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF; }
.ec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ec-field { margin: 0; }
.ec-field--narrow { max-width: 220px; }

.ec-choices { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ec-choices legend { padding: 0; }
.ec-choices--big .ec-choice span { min-height: 72px; font-size: 1.05rem; }
.ec-choice { position: relative; display: block; cursor: pointer; }
.ec-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ec-choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--ec-input-line); border-radius: 10px; background: #fff; font-weight: 600;
}
.ec-choice input:checked + span { border: 2px solid var(--ec-accent); background: var(--ec-accent-tint); font-weight: 700; }

.ec-checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ec-checks label, .ec-consent { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; line-height: 1.45; }
.ec-checks input, .ec-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ec-accent); }

.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--ec-input-line); background: #fff; color: var(--ec-ink);
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
.ec-btn--primary { background: var(--ec-cta); border-color: var(--ec-cta); color: var(--ec-ink); font-weight: 700; border-radius: 999px; }
.ec-btn--primary:hover { filter: brightness(1.05); color: var(--ec-ink); }
.ec-btn--block { width: 100%; min-height: 52px; font-size: 17px; }
.ec-btn[disabled] { opacity: .5; cursor: progress; }
.ec-small { display: block; font-size: .8125rem; color: #4C6170; margin: 0; }
.ec-box .ec-small { text-align: center; }

.ec-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.ec-steps li { counter-increment: s; padding: 10px 12px; border-radius: 12px; background: #FFFFFF; border: 1px solid #D5E3DE; color: #4C6170; font-weight: 600; font-size: .9rem; }
.ec-steps li::before { content: "Step " counter(s); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.ec-steps li.is-current { background: var(--ec-accent); color: #fff; }
.ec-steps li.is-done { background: var(--ec-accent-tint); color: var(--ec-ink); }
.ec-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #E6F3EE; }
.ec-nav [data-next] { margin-left: auto; }
.ec-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FBEFE6; color: var(--ec-warn); font-weight: 600; }
.ec-warning { margin: 0; padding: 8px 12px; border-radius: 8px; background: #FBEFE6; color: var(--ec-warn); font-weight: 600; font-size: .875rem; }
.ec-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.ec-eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-accent); }
.ec-table-wrap { overflow-x: auto; }
.ec-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.ec-table td, .ec-table th { padding: 10px 0; border: 0; border-bottom: 1px solid #E6F3EE; text-align: left; vertical-align: top; }
.ec-table__label { display: block; font-weight: 600; }
.ec-num { text-align: right !important; white-space: nowrap; font-weight: 600; padding-left: 16px !important; }
.ec-table tfoot th, .ec-table tfoot td { border-bottom: 0; }
.ec-total { font-size: 1.25rem; font-weight: 800; }
.ec-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF8EE; font-size: .875rem; line-height: 1.55; color: var(--ec-muted); }

.ec-result { display: flex; flex-direction: column; gap: 4px; }
.ec-result:empty { display: none; }
.ec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ec-stat { background: var(--ec-bg); border: 1px solid var(--ec-line); border-radius: var(--ec-radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ec-stat__label { font-size: .875rem; font-weight: 600; color: #4C6170; }
.ec-stat__value { font-size: 1.6rem; font-weight: 800; }
.ec-reviewed { padding: 14px 16px; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); background: var(--ec-bg); font-size: .9rem; color: var(--ec-muted); }
.ec-reviewed strong { color: var(--ec-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 480px) { .ec-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ec-box, .ec-panel { padding: 18px; } }

/* Call-back time picker */
.ec-callback { border: 0; margin: 16px 0; padding: 0; }
.ec-callback legend { padding: 0; margin-bottom: 6px; }
.ec-callback__picker { margin-top: 12px; }
.ec-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ec-chips .ec-choice span { min-height: 44px; padding: 8px; font-size: .95rem; }

.ec-prefill-note { background: var(--ec-accent-tint); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }

/* v1.0.6: trust bar, helper text, yes/no and follow-up questions */
.ec-trust { list-style: none; margin: 0 0 16px; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--ec-accent-tint); border-radius: 12px; }
.ec-trust li { margin: 0; display: flex; flex-direction: column; font-size: .9rem; line-height: 1.3; text-align: center; }
.ec-trust span { font-size: .8rem; opacity: .85; }
@media (max-width: 560px) { .ec-trust { grid-template-columns: 1fr; text-align: left; } .ec-trust li { text-align: left; } }
.ec-help { display: block; font-size: .85rem; line-height: 1.4; opacity: .8; margin: 0 0 6px; grid-column: 1 / -1; }
.ec-choices--stack { grid-template-columns: 1fr; }
.ec-choice em { font-style: normal; font-weight: 400; opacity: .8; margin-left: 4px; }
.ec-yesno, .ec-stage { margin-top: 16px; }
.ec-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-choice[hidden] { display: none; }
.ec-followup { background: var(--ec-accent-tint); border-radius: 12px; padding: 14px 16px; }
.ec-checks .ec-help { margin-bottom: 2px; }
.ec-scope { margin-top: 16px; }

/* v1.0.35: step headings. Focus moves here for screen readers; sighted users get a short
   "you are here" highlight and a teal marker instead of a box. */
.ec-step-focus { position: relative; isolation: isolate; scroll-margin-top: 120px; }
.ec-step-focus:focus, .ec-step-focus:focus-visible { outline: none !important; box-shadow: none !important; }
.ec-step-focus::after { content: ''; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 99px; background: linear-gradient(90deg, #14776F 0 70%, #FFD66B 70% 100%); }
.ec-step-focus::before { content: ''; position: absolute; inset: -8px -14px; border-radius: 14px; background: #E6F3EE; z-index: -1; opacity: 0; }
.ec-step-arrived::before { animation: ec-arrive-bg 1.8s ease-out both; }
.ec-step-arrived::after { animation: ec-arrive-bar .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ec-arrive-bg { 0% { opacity: 0; transform: scale(.98); } 15% { opacity: 1; transform: scale(1); } 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ec-arrive-bar { from { width: 0; } to { width: 48px; } }
@media (prefers-reduced-motion: reduce) {
  .ec-step-arrived::before, .ec-step-arrived::after { animation: none; }
}

/* v1.0.36: yellow border on the step the customer is on (no layout shift) */
.ec-steps li.is-current { border-color: #FFD66B; box-shadow: 0 0 0 2px #FFD66B, 0 6px 16px rgba(23,45,59,.12); position: relative; z-index: 1; transition: box-shadow .2s ease, background .2s ease; }
