/* ==========================================================================
   Calc - Executive Time Audit Module
   ========================================================================== */

/* ---------- Section ---------- */

.ceta {
  background-color: #f4f6f8;
  padding: 80px 24px;
  position: relative;
}

.ceta-inner {
  margin: 0 auto;
  max-width: 720px;
}

/* ---------- Typography ---------- */

.ceta-eyebrow {
  color: #12D678;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.ceta-title {
  color: #02293D;
  font-family: 'Roboto Slab', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.ceta-desc {
  color: #6B7280;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 560px;
}

.ceta-footnote {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  margin: 16px 0 0;
}

/* ---------- Intro Screen ---------- */

.ceta-screen--intro {
  text-align: center;
}

.ceta-intro-content {
  padding: 40px 0;
}

/* ---------- Hidden ---------- */

.ceta-hidden {
  display: none;
}

/* ---------- Step Indicator ---------- */

.ceta-steps {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.ceta-step-item {
  align-items: center;
  display: flex;
  gap: 6px;
}

.ceta-step-num {
  align-items: center;
  background-color: #E5E7EB;
  border-radius: 50%;
  color: #9CA3AF;
  display: flex;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 24px;
}

.ceta-step-num.active {
  background-color: #12D678;
  color: #FFFFFF;
}

.ceta-step-label {
  color: #9CA3AF;
  display: none;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.ceta-step-label.active {
  color: #374151;
}

.ceta-step-line {
  background-color: #E5E7EB;
  flex: 0 0 auto;
  height: 1px;
  transition: background-color 0.3s ease;
  width: 40px;
}

.ceta-step-line.active {
  background-color: #86EFAC;
}

/* ---------- Card ---------- */

.ceta-card {
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 32px;
}

.ceta-card-title {
  color: #02293D;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ceta-card-desc {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  margin: 0 0 24px;
}

/* ---------- Input Fields ---------- */

.ceta-input-group {
  margin-bottom: 24px;
}

.ceta-input-label {
  color: #374151;
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ceta-input-wrap {
  position: relative;
}

.ceta-input-wrap--dollar .ceta-input-prefix {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  left: 16px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ceta-text-input {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  color: #111827;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  outline: none;
  padding: 12px 16px;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.ceta-text-input--prefixed {
  padding-left: 32px;
}

.ceta-text-input:focus {
  border-color: #12D678;
}

.ceta-input-help {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  margin: 6px 0 0;
}

/* ---------- Textarea ---------- */

.ceta-textarea {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  color: #111827;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  margin-bottom: 24px;
  outline: none;
  padding: 12px 16px;
  resize: vertical;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.ceta-textarea:focus {
  border-color: #12D678;
}

/* ---------- Task Checklist ---------- */

.ceta-task-list {
  margin-bottom: 24px;
  max-height: 420px;
  overflow-y: auto;
}

.ceta-task-item {
  align-items: center;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.ceta-task-item:last-child {
  border-bottom: none;
}

.ceta-task-checkbox {
  accent-color: #12D678;
  cursor: pointer;
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.ceta-task-label-text {
  color: #374151;
  flex: 1;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
}

.ceta-task-slider-wrap {
  align-items: center;
  display: none;
  gap: 8px;
  flex-shrink: 0;
}

.ceta-task-item.checked .ceta-task-slider-wrap {
  display: flex;
}

.ceta-task-range {
  -webkit-appearance: none;
  appearance: none;
  background: #E5E7EB;
  border-radius: 4px;
  height: 4px;
  outline: none;
  width: 100px;
}

.ceta-task-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #FFFFFF;
  border: 2px solid #12D678;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  height: 14px;
  width: 14px;
}

.ceta-task-range::-moz-range-thumb {
  background: #FFFFFF;
  border: 2px solid #12D678;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  height: 14px;
  width: 14px;
}

.ceta-task-hours-val {
  background-color: #f4f6f8;
  border-radius: 6px;
  color: #02293D;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  min-width: 48px;
  padding: 2px 6px;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Focus Area Options ---------- */

.ceta-focus-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ceta-focus-option {
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ceta-focus-option:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
}

.ceta-focus-option.selected {
  background-color: #f0fdf7;
  border-color: #12D678;
}

.ceta-focus-radio {
  align-items: center;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 18px;
  justify-content: center;
  transition: border-color 0.2s ease;
  width: 18px;
}

.ceta-focus-option.selected .ceta-focus-radio {
  border-color: #12D678;
}

.ceta-focus-radio-dot {
  background-color: transparent;
  border-radius: 50%;
  height: 10px;
  transition: background-color 0.2s ease;
  width: 10px;
}

.ceta-focus-option.selected .ceta-focus-radio-dot {
  background-color: #12D678;
}

.ceta-focus-option-text {
  color: #374151;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 400;
}

/* ---------- Buttons ---------- */

.ceta-btn-primary {
  align-items: center;
  background-color: #12D678;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 16px 24px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ceta-btn-primary:hover {
  background-color: #2CEA88;
  box-shadow: 0 8px 24px rgba(18, 214, 120, 0.2);
  color: #FFFFFF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transform: scale(1.02);
}

.ceta-btn-primary:disabled {
  background-color: #D1D5DB;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ceta-btn-primary:disabled:hover {
  background-color: #D1D5DB;
  box-shadow: none;
  color: #FFFFFF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transform: none;
}

.ceta-btn-secondary {
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  color: #6B7280;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ceta-btn-secondary:hover {
  background-color: #F9FAFB;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.ceta-btn-text {
  align-items: center;
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.ceta-btn-text:hover {
  color: #6B7280;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

/* Theme hardening — theme-overrides.css greens the background of ANY <button>
   on :hover/:focus and leaves the UA focus ring. The module overrides :hover
   but not :focus, so a focused Back button rendered as green-fill + grey text
   + a blue ring. Pin each button's own look on :focus/:focus-visible (2-class
   selectors beat the theme's `button:focus`) and swap the UA ring for a
   brand-green :focus-visible outline. */
.ceta-btn-secondary:focus,
.ceta-btn-secondary:focus-visible {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
  color: #374151;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.ceta-btn-primary:focus,
.ceta-btn-primary:focus-visible {
  background-color: #2CEA88;
  box-shadow: 0 8px 24px rgba(18, 214, 120, 0.2);
  color: #FFFFFF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ceta-btn-primary:disabled:focus {
  background-color: #D1D5DB;
  box-shadow: none;
}

.ceta-btn-primary:focus,
.ceta-btn-secondary:focus,
.ceta-btn-text:focus {
  outline: none;
}

.ceta-btn-primary:focus-visible,
.ceta-btn-secondary:focus-visible,
.ceta-btn-text:focus-visible {
  outline: 2px solid #12D678;
  outline-offset: 2px;
}

.ceta-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ceta-btn-row .ceta-btn-primary {
  flex: 1;
}

.ceta-start-btn {
  margin: 0 auto;
  width: auto;
}

/* ---------- Email gate (intro) ---------- */

.ceta-gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto 0;
  max-width: 420px;
  text-align: left;
}

.ceta-gate-row {
  display: flex;
  gap: 12px;
}

.ceta-gate-row .ceta-text-input {
  flex: 1;
  min-width: 0;
}

.ceta-gate .ceta-start-btn {
  margin-top: 4px;
  width: 100%;
}

.ceta-gate-error {
  color: #DC2626;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 520px) {
  .ceta-gate-row {
    flex-direction: column;
  }
}

/* ---------- Results Header ---------- */

.ceta-results-header {
  margin-bottom: 32px;
  text-align: center;
}

.ceta-tier-label {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

.ceta-tier-oneliner {
  color: #6B7280;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 560px;
}

/* ---------- Battery Gauge ---------- */

.ceta-battery {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 0 auto;
  width: 120px;
}

.ceta-battery-body {
  background-color: #E5E7EB;
  border-radius: 6px;
  flex: 1;
  height: 40px;
  overflow: hidden;
  position: relative;
}

.ceta-battery-fill {
  border-radius: 6px;
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  transition: width 0.6s ease, background-color 0.6s ease;
  width: 0;
}

.ceta-battery-tip {
  background-color: #E5E7EB;
  border-radius: 0 3px 3px 0;
  height: 20px;
  width: 6px;
}

/* Battery Tier Colors */

.ceta--tier-full .ceta-tier-label { color: #16A34A; }
.ceta--tier-full .ceta-battery-fill { background-color: #16A34A; width: 95%; }
.ceta--tier-full .ceta-lid-callout { border-left-color: #16A34A; background-color: #f0fdf4; }

.ceta--tier-draining .ceta-tier-label { color: #D97706; }
.ceta--tier-draining .ceta-battery-fill { background-color: #D97706; width: 65%; }
.ceta--tier-draining .ceta-lid-callout { border-left-color: #D97706; background-color: #FFFBEB; }

.ceta--tier-low .ceta-tier-label { color: #EA580C; }
.ceta--tier-low .ceta-battery-fill { background-color: #EA580C; width: 35%; }
.ceta--tier-low .ceta-lid-callout { border-left-color: #EA580C; background-color: #FFF7ED; }

.ceta--tier-critical .ceta-tier-label { color: #DC2626; }
.ceta--tier-critical .ceta-battery-fill { background-color: #DC2626; width: 10%; }
.ceta--tier-critical .ceta-lid-callout { border-left-color: #DC2626; background-color: #FEF2F2; }

/* ---------- Results Sections ---------- */

.ceta-results-section {
  margin-bottom: 28px;
}

.ceta-section-label {
  color: #12D678;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.ceta-section-text {
  color: #4B5563;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Lid Callout ---------- */

.ceta-lid-callout {
  border-left: 4px solid #12D678;
  border-radius: 12px;
  margin-bottom: 28px;
  padding: 20px 24px;
}

.ceta-lid-label {
  color: #6B7280;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ceta-lid-text {
  color: #02293D;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Savings Cards ---------- */

.ceta-savings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 8px;
}

.ceta-savings-card {
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.ceta-savings-card-value {
  color: #02293D;
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ceta-savings-card-label {
  color: #9CA3AF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.ceta-savings-footnote {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  margin: 0;
}

/* ---------- Task Breakdown ---------- */

.ceta-task-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ceta-breakdown-item {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.ceta-breakdown-bar-wrap {
  flex: 1;
  min-width: 0;
}

.ceta-breakdown-label {
  color: #374151;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ceta-breakdown-bar {
  background-color: #E5E7EB;
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.ceta-breakdown-bar-fill {
  background-color: #12D678;
  border-radius: 4px;
  height: 100%;
  transition: width 0.4s ease;
}

.ceta-breakdown-hours {
  color: #02293D;
  flex-shrink: 0;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}

/* ---------- Readout ---------- */

.ceta-readout-content {
  color: #4B5563;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.ceta-readout-content p {
  margin: 0 0 12px;
}

.ceta-readout-content strong {
  color: #02293D;
  font-weight: 700;
}

/* ---------- Closing Quote ---------- */

.ceta-closing-quote {
  border-left: 4px solid #12D678;
  color: #4B5563;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 32px;
  padding: 16px 24px;
}

/* ---------- CTAs ---------- */

.ceta-cta-section {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ceta-cta-section--single {
  justify-content: center;
}

.ceta-cta-section--single .ceta-cta-card {
  flex: 0 1 360px;
}

.ceta-cta-card {
  flex: 1;
}

/* Passive confirmation that results were emailed (shown after auto-submit). */
.ceta-email-sent-note {
  color: #059669;
  display: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

.ceta-email-sent-note--show {
  display: block;
}

.ceta-cta-card .ceta-btn-primary,
.ceta-cta-card .ceta-btn-secondary {
  width: 100%;
}

.ceta-cta-help {
  color: #9CA3AF;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  margin: 8px 0 0;
  text-align: center;
}

.ceta-book-btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

/* Book a Call is an <a>, so the theme's link/button :hover would otherwise
   swap the font-family/weight and reflow the label. Pin them across every
   state (important beats the lower-specificity theme link rules). */
.ceta-book-btn,
.ceta-book-btn:hover,
.ceta-book-btn:focus,
.ceta-book-btn:active {
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Email form inside CTA */

.ceta-email-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ceta-email-form .ceta-text-input {
  flex: 1;
}

.ceta-send-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  white-space: nowrap;
}

.ceta-send-btn:hover {
  background-color: #2CEA88;
  box-shadow: 0 8px 24px rgba(18, 214, 120, 0.2);
  color: #FFFFFF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transform: scale(1.02);
}

.ceta-email-success {
  align-items: flex-start;
  color: #12D678;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ceta-email-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ceta-success-msg {
  color: #02293D;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.ceta-success-detail {
  color: #6B7280;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  margin: 4px 0 0;
}

/* ---------- Live Impact Widget ---------- */

.ceta-impact-widget {
  background: #02293D;
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  position: fixed;
  right: 24px;
  z-index: 100;
}

.ceta-impact-title {
  color: #9CA3AF;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-align: center;
  text-transform: uppercase;
}

.ceta-impact-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.ceta-impact-item {
  text-align: center;
}

.ceta-impact-value {
  color: #12D678;
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.ceta-impact-unit {
  color: #9CA3AF;
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 10px;
}

.ceta-impact-divider {
  background-color: rgba(255, 255, 255, 0.1);
  height: 24px;
  width: 1px;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .ceta-step-label {
    display: block;
  }
}

@media (max-width: 768px) {
  .ceta {
    padding: 60px 16px;
  }

  .ceta-title {
    font-size: 28px;
  }

  .ceta-card {
    padding: 24px;
  }

  .ceta-savings-grid {
    grid-template-columns: 1fr;
  }

  .ceta-savings-card {
    padding: 14px 12px;
  }

  .ceta-savings-card-value {
    font-size: 20px;
  }

  .ceta-cta-section {
    flex-direction: column;
  }

  .ceta-email-form {
    flex-direction: column;
  }

  .ceta-task-range {
    width: 70px;
  }

  .ceta-impact-widget {
    border-radius: 12px 12px 0 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .ceta-impact-row {
    justify-content: center;
  }
}