/* Insulation cost calculator */
#insulation-calculator {
  --calc-transition: 0.35s ease;
}

.calc-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.calc-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.calc-hero-aside {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .calc-hero-grid {
    gap: 3rem;
  }
}

.calc-hero-copy .aeo-block {
  border-left-color: rgba(245, 200, 66, 0.7);
}

.calc-hero-copy .aeo-block h3 {
  color: #fff;
}

.calc-hero-copy .aeo-block p {
  color: rgba(255, 255, 255, 0.85);
}

.calc-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.calc-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.calc-shell {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(11, 32, 97, 0.18);
  overflow: hidden;
  color: #0b2061;
}

.calc-progress-wrap {
  padding: 0.75rem 1rem 0;
  background: #fff;
}

.calc-progress {
  height: 6px;
  background: #e8ecf4;
  border-radius: 999px;
  overflow: hidden;
}

.calc-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #25408f, #c8202d);
  width: 0;
  border-radius: 999px;
  transition: width var(--calc-transition);
}

.calc-progress__dots {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin-top: 0.5rem;
  padding: 0 0.125rem;
}

.calc-progress__dot {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e8ecf4;
  transition: background 0.2s;
  max-width: 1.75rem;
}

.calc-progress__dot.is-complete {
  background: #25408f;
}

.calc-progress__dot.is-active {
  background: #c8202d;
  box-shadow: 0 0 0 2px rgba(200, 32, 45, 0.25);
}

.calc-step-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a6478;
}

.calc-partial-preview {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #f0f4fc, #e8f0fa);
  border: 1px solid #c5d4ef;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #0b2061;
}

.calc-partial-preview__range {
  color: #25408f;
  font-weight: 700;
  white-space: nowrap;
}

.calc-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--calc-transition), transform var(--calc-transition);
}

.calc-panel--active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #insulation-calculator {
    --calc-transition: 0.01ms;
  }
  .calc-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.calc-option {
  display: block;
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-option__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.calc-option__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #f0f4fc;
  color: #25408f;
}

.calc-option__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.calc-option input:focus-visible + .calc-option__card {
  outline: 2px solid #25408f;
  outline-offset: 2px;
}

.calc-option input:checked + .calc-option__card {
  border-color: #25408f;
  background: #f0f4fc;
  box-shadow: 0 0 0 1px #25408f;
}

.calc-option input:checked + .calc-option__card .calc-option__icon {
  background: #25408f;
  color: #fff;
}

.calc-option__title {
  font-weight: 600;
  color: #0b2061;
  font-size: 0.9375rem;
}

.calc-option__desc {
  font-size: 0.8125rem;
  color: #5a6478;
  margin-top: 0.125rem;
}

.calc-panel--error .calc-option__card,
.calc-panel--error select.form-input {
  border-color: #f87171;
}

.calc-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 1.25rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body[data-active="calculator"] .calc-nav {
  margin-bottom: 0.25rem;
}

.calc-loading {
  text-align: center;
  padding: 2.5rem 1rem;
}

.calc-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e8ecf4;
  border-top-color: #25408f;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: calc-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .calc-loading__spinner {
    animation: none;
  }
}

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

.calc-diagram {
  width: 100%;
  max-width: 280px;
  margin: 1rem auto 0;
  display: block;
}

.calc-result__total {
  background: linear-gradient(135deg, #0b2061 0%, #25408f 100%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.calc-result__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.calc-result__range {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.35rem 0;
  color: #f5c842;
}

@media (min-width: 640px) {
  .calc-result__range {
    font-size: 1.75rem;
  }
}

.calc-result__disclaimer {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.calc-result__breakdown {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.calc-result__breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8f9fc;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.calc-result__breakdown dt {
  color: #5a6478;
  font-weight: 500;
}

.calc-result__breakdown dd {
  font-weight: 700;
  color: #0b2061;
  margin: 0;
}

.calc-compare {
  margin-top: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

.calc-compare__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8f9fc;
}

.calc-compare__tab {
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a6478;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.calc-compare__tab.is-active {
  color: #25408f;
  background: #fff;
  border-bottom-color: #25408f;
}

.calc-compare__panel {
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: #5a6478;
}

.calc-compare__panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.calc-compare__panel li + li {
  margin-top: 0.35rem;
}

.aeo-block {
  border-left: 3px solid #25408f;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.aeo-block h3 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.aeo-block p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.calc-conversion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  list-style: none;
  padding: 0;
}

.calc-conversion-strip li::before {
  content: "✓ ";
  color: #f5c842;
}

/* Sample estimate table */
.calc-sample-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}

.calc-sample-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 32, 97, 0.1);
  border: 1px solid #e5e7eb;
}

.calc-sample-table th,
.calc-sample-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 1rem;
}

.calc-sample-table thead th {
  background: #0b2061;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-sample-table tbody tr {
  border-top: 1px solid #e8ecf4;
}

.calc-sample-table tbody td:first-child {
  color: #5a6478;
  font-weight: 500;
}

.calc-sample-table tbody td:last-child {
  color: #0b2061;
  font-weight: 700;
  text-align: right;
}

.calc-sample-table tbody tr.calc-sample-table__highlight td:last-child {
  color: #25408f;
  font-size: 1.125rem;
}

/* Sticky mobile CTA — calculator page */
#sticky-mobile-cta {
  position: relative;
}

.sticky-cta-dismiss {
  position: absolute;
  top: -1.75rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #0b2061;
  color: #fff;
  border: 2px solid #fff;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body[data-active="calculator"] .h-\[60px\].lg\:hidden {
  height: 4.5rem;
}

body[data-active="calculator"] #insulation-calculator .calc-shell-inner {
  padding-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   HYPER-PREMIUM 3D FROSTED GLASSMORPHIC CALCULATOR OVERRIDES
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Frosted Glassmorphic Calculator Shell with 25px Blur & Ambient Glow */
.calc-shell {
  position: relative !important;
  max-width: 960px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 248, 255, 0.92) 100%) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 1.75rem !important;
  box-shadow: 
    0 30px 80px rgba(5, 15, 35, 0.55), 
    0 0 60px rgba(37, 64, 143, 0.3), 
    0 0 25px rgba(255, 210, 3, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 1) !important;
  overflow: hidden !important;
  color: #0b2061 !important;
  isolation: isolate !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}

.calc-shell:hover {
  transform: translateY(-4px) !important;
  box-shadow: 
    0 35px 90px rgba(5, 15, 35, 0.65), 
    0 0 75px rgba(37, 64, 143, 0.4), 
    0 0 35px rgba(255, 210, 3, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.calc-shell::before {
  content: "" !important;
  position: absolute !important;
  top: -60% !important;
  left: -60% !important;
  width: 220% !important;
  height: 220% !important;
  background: radial-gradient(circle at 50% 50%, rgba(255, 210, 3, 0.25) 0%, rgba(37, 64, 143, 0.25) 35%, transparent 65%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: calc-ambient-float 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95) !important;
}

@keyframes calc-ambient-float {
  0% { transform: translate(-12%, -12%) scale(0.9); opacity: 0.75; }
  50% { transform: translate(12%, 12%) scale(1.15); opacity: 1; }
  100% { transform: translate(6%, -6%) scale(0.95); opacity: 0.85; }
}

/* Buttery-Smooth Spring Physics Step Transitions */
@keyframes calc-spring-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  70% {
    transform: translateY(-2px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calc-panel:not([hidden]) {
  animation: calc-spring-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.calc-progress-wrap,
.calc-shell-inner {
  position: relative !important;
  z-index: 1 !important;
}

.calc-progress-wrap {
  padding: 1.25rem 1.5rem 0.5rem !important;
  background: transparent !important;
}

/* 2. Elevated 3D Floating Option Cards with Vibrant Brand-Yellow Highlights & Spring Hover */
.calc-option__card {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  padding: 1.1rem 1.25rem !important;
  background: linear-gradient(145deg, #ffffff 0%, #f7f9ff 100%) !important;
  border: 1.5px solid rgba(200, 215, 240, 0.8) !important;
  border-radius: 1rem !important;
  box-shadow: 
    0 4px 12px rgba(11, 32, 97, 0.06), 
    inset 0 1px 1px rgba(255, 255, 255, 1) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-bottom: 0.75rem !important;
  overflow: hidden !important;
}

.calc-option:hover .calc-option__card {
  transform: translateY(-4px) scale(1.015) !important;
  border-color: #ffd203 !important;
  box-shadow: 
    0 12px 28px rgba(37, 64, 143, 0.2), 
    0 0 15px rgba(255, 210, 3, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}

.calc-option input:checked + .calc-option__card {
  border-color: #ffd203 !important;
  border-width: 2px !important;
  background: linear-gradient(145deg, #fffef5 0%, #fef9e2 100%) !important;
  box-shadow: 
    0 14px 32px rgba(11, 32, 97, 0.22), 
    0 0 24px rgba(255, 210, 3, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 1) !important;
  transform: translateY(-4px) scale(1.015) !important;
}

.calc-option input:checked + .calc-option__card .calc-option__icon {
  background: linear-gradient(135deg, #ffd203 0%, #e0b300 100%) !important;
  color: #0b2061 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 210, 3, 0.6) !important;
  transform: scale(1.08) rotate(-3deg) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.calc-option__title {
  font-weight: 700 !important;
  color: #0b2061 !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.calc-option__desc {
  display: block !important;
  font-size: 0.8125rem !important;
  color: #5a6478 !important;
  line-height: 1.3 !important;
}

.calc-option input:checked + .calc-option__card .calc-option__title {
  color: #0b2061 !important;
}

/* Tactile 3D Live Summary Bar */
.calc-live-summary:not([hidden]),
.calc-partial-preview:not([hidden]) {
  background: linear-gradient(135deg, rgba(11, 32, 97, 0.95), rgba(26, 79, 156, 0.9)) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 210, 3, 0.5) !important;
  border-radius: 1rem !important;
  padding: 0.85rem 1.25rem !important;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(11, 32, 97, 0.3), 0 0 15px rgba(255, 210, 3, 0.25) !important;
  margin-bottom: 1rem !important;
  animation: calc-spring-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* 3. Hyper-Premium 3D Frosted Glass Slider & Range Display */
.calc-slider-wrap {
  position: relative !important;
  z-index: 1 !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.85)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(200, 215, 240, 0.8) !important;
  border-radius: 1.25rem !important;
  padding: 1.5rem !important;
  box-shadow: 
    0 8px 25px rgba(11, 32, 97, 0.08), 
    inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

#calc-sqft-slider {
  -webkit-appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #25408f 0%, #c8202d 100%) !important;
  outline: none !important;
  margin: 1.25rem 0 0.5rem !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

#calc-sqft-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3.5px solid #ffd203 !important;
  cursor: pointer !important;
  box-shadow: 
    0 4px 12px rgba(255, 210, 3, 0.5), 
    0 0 0 4px rgba(255, 210, 3, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s !important;
}

#calc-sqft-slider::-webkit-slider-thumb:hover,
#calc-sqft-slider:active::-webkit-slider-thumb {
  transform: scale(1.3) !important;
  border-color: #c8202d !important;
  box-shadow: 
    0 6px 18px rgba(200, 32, 45, 0.6), 
    0 0 0 6px rgba(200, 32, 45, 0.25) !important;
}

#calc-sqft-slider::-moz-range-thumb {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3.5px solid #ffd203 !important;
  cursor: pointer !important;
  box-shadow: 
    0 4px 12px rgba(255, 210, 3, 0.5), 
    0 0 0 4px rgba(255, 210, 3, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s !important;
}

#calc-sqft-slider::-moz-range-thumb:hover,
#calc-sqft-slider:active::-moz-range-thumb {
  transform: scale(1.3) !important;
  border-color: #c8202d !important;
  box-shadow: 
    0 6px 18px rgba(200, 32, 45, 0.6), 
    0 0 0 6px rgba(200, 32, 45, 0.25) !important;
}

/* 4. Glowing 3D Glass Total Estimate Panel */
.calc-result__total {
  position: relative !important;
  z-index: 1 !important;
  background: linear-gradient(135deg, #0b2061 0%, #1a4f9c 50%, #25408f 100%) !important;
  color: #fff !important;
  border-radius: 1.25rem !important;
  padding: 1.75rem 1.5rem !important;
  margin-top: 1.25rem !important;
  text-align: center !important;
  border: 1.5px solid rgba(255, 210, 3, 0.6) !important;
  box-shadow: 
    0 15px 35px rgba(11, 32, 97, 0.45), 
    0 0 35px rgba(255, 210, 3, 0.35), 
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
  overflow: hidden !important;
  animation: calc-spring-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.calc-result__total::before {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle at 50% 50%, rgba(255, 210, 3, 0.25) 0%, transparent 60%) !important;
  pointer-events: none !important;
  animation: calc-glow-pulse 6s infinite alternate ease-in-out !important;
}

@keyframes calc-glow-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   5. SLEEK, SOPHISTICATED NAVY FROSTED GLASS FINAL CTA SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.calc-final-cta-section {
  position: relative !important;
  background: #0b2061 !important;
  isolation: isolate !important;
}

/* Deep Navy Frosted Glass Card Panel */
.calc-cta-card {
  position: relative !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
}

/* Crisp Typography & Clean Subtext */
.calc-cta-heading {
  color: #ffffff !important;
  text-shadow: none !important;
}

.calc-cta-subtext {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: none !important;
}

/* Professional Action Buttons */
.calc-btn-professional {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border-radius: 9999px !important;
  padding: 0.875rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.calc-btn-primary {
  background: #f5c842 !important;
  color: #0b2061 !important;
  border: 1px solid #f5c842 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.calc-btn-primary:hover {
  background: #ffd553 !important;
  border-color: #ffd553 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
}

.calc-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.calc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

.calc-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .calc-grid-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

[data-step="service"] .space-y-2 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
}

[data-step="service"] .space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

@media (min-width: 640px) {
  [data-step="service"] .space-y-2 {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 1024px) {
  [data-step="service"] .space-y-2 {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 4: CONTACT INFORMATION PANEL (LEAD CAPTURE BEFORE ESTIMATE)
   ══════════════════════════════════════════════════════════════════════════ */
.calc-contact-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(11, 32, 97, 0.05);
}

.calc-contact-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b2061;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.calc-contact-input {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.6rem;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #0b2061;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calc-contact-input:focus {
  outline: none;
  border-color: #0b2061;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 32, 97, 0.12);
}

.calc-contact-input.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.calc-btn-view-estimate {
  background: linear-gradient(135deg, #c8202d 0%, #b01824 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(200, 32, 45, 0.35) !important;
  transition: all 0.25s ease !important;
}

.calc-btn-view-estimate:hover {
  background: linear-gradient(135deg, #db2433 0%, #c8202d 100%) !important;
  box-shadow: 0 8px 24px rgba(200, 32, 45, 0.5) !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   STEP 5: RESULT & HIGH-CONVERTING PHONE CTA CARD
   ══════════════════════════════════════════════════════════════════════════ */
.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .calc-result-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.75rem;
  }
}

.calc-result-estimate-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(11, 32, 97, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-estimate-call-card {
  background: linear-gradient(145deg, #0b2061 0%, #153285 55%, #081745 100%);
  border: 2px solid #f5c842;
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(11, 32, 97, 0.35), 0 0 25px rgba(245, 200, 66, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-estimate-call-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.calc-call-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 200, 66, 0.16);
  border: 1px solid rgba(245, 200, 66, 0.45);
  color: #f5c842;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.calc-call-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.calc-call-card-copy {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.15rem;
}

.calc-call-card-copy strong {
  color: #ffffff;
}

.calc-call-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #c8202d 0%, #e02837 100%);
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(200, 32, 45, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1.1rem;
}

.calc-call-cta-btn:hover {
  background: linear-gradient(135deg, #db2433 0%, #f13342 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 32, 45, 0.65);
  border-color: rgba(255, 255, 255, 0.6);
}

.calc-call-pulse-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: calc-pulse-icon 2s infinite ease-in-out;
}

@keyframes calc-pulse-icon {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); background: rgba(255, 255, 255, 0.3); }
  100% { transform: scale(1); }
}

.calc-call-btn-num {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  display: block;
  letter-spacing: 0.02em;
}

.calc-call-btn-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f5c842;
  display: block;
  margin-top: 0.15rem;
}

.calc-call-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: grid;
  gap: 0.4rem;
}

.calc-call-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.calc-call-trust-list .trust-check {
  color: #f5c842;
  font-weight: 800;
  flex-shrink: 0;
}

.calc-call-hours-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.calc-success-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #eff6ff 100%);
  border: 1.5px solid #86efac;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.06);
}

textarea.calc-contact-input {
  min-height: 68px;
  line-height: 1.4;
}
