/* ==========================================================================
   ES ARCHITECTURE LTD - BUILD COST & PROFESSIONAL SERVICES CALCULATOR
   Aligned with Prilux V10 Estimator Engine & ESA Services Portal
   Warm Glassmorphic Styling for Full-Bleed Architectural Backgrounds
   ========================================================================== */

:root {
  --esa-orange: #ea5b0c;
  --esa-orange-hover: #d24e07;
  --esa-orange-light: rgba(234, 91, 12, 0.08);
  --esa-orange-border: rgba(234, 91, 12, 0.25);
  --esa-dark: #1e293b;
  --esa-darker: #0f172a;
  --esa-text-muted: #64748b;
  --esa-border: #e2e8f0;
  --esa-green: #10b981;
}

/* Page Container */
.esa-calculator-page {
  font-family: inherit;
  color: var(--esa-dark);
  background: transparent !important;
  min-height: 100vh;
  padding-top: clamp(75px, 6vw, 95px);
  padding-bottom: 5rem;
  position: relative;
  z-index: 2;
}

/* Hero Header */
.esa-calc-hero {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  color: #0f172a;
  padding: 4rem 2rem 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0.75rem auto 2rem auto;
  max-width: 1240px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.esa-calc-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 15%, rgba(234, 91, 12, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.esa-calc-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.esa-calc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 91, 12, 0.12);
  border: 1px solid rgba(234, 91, 12, 0.35);
  color: #ea5b0c;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.esa-calc-hero h1 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  color: #0f172a;
  text-shadow: none;
}

.esa-calc-hero p {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 300;
  color: #475569;
  max-width: 780px;
  margin: 0 auto 2rem auto;
  text-shadow: none;
}

/* Mode Switcher Tabs */
.esa-mode-switcher {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem;
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.esa-mode-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #64748b;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.esa-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.esa-mode-btn.active {
  background: linear-gradient(135deg, #ea5b0c 0%, #ff7a2d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 91, 12, 0.35);
}

/* Calculator Main Body */
.esa-calc-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
}

/* Glass & Card Panels */
.esa-calc-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .esa-calc-card {
    padding: 1.5rem 1.15rem;
  }
}

/* Tier Selector Bar */
.esa-tier-bar {
  margin-bottom: 2rem;
}

.esa-tier-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.esa-tier-bar-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--esa-darker);
}

.esa-recommended-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--esa-orange-light);
  color: var(--esa-orange);
  border: 1px solid var(--esa-orange-border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.esa-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.esa-tier-card {
  background: #f8fafc;
  border: 2px solid var(--esa-border);
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.esa-tier-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.esa-tier-card.active {
  border-color: var(--esa-orange);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(234, 91, 12, 0.15);
}

.esa-tier-card.is-benchmark {
  border-color: rgba(234, 91, 12, 0.5);
}

.esa-tier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--esa-orange);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.esa-tier-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--esa-darker);
  margin-bottom: 0.25rem;
}

.esa-tier-rate-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--esa-dark);
}

.esa-tier-rate-tag small {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--esa-text-muted);
}

/* Main 2-Column Grid */
.esa-calc-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 980px) {
  .esa-calc-columns {
    grid-template-columns: 7fr 5fr;
  }
}

/* Left Column: Scope & Inputs */
.esa-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--esa-darker);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--esa-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.esa-input-block {
  margin-bottom: 2rem;
}

.esa-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.esa-input-label {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--esa-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.esa-val-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.esa-num-input {
  width: 72px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--esa-border);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  color: var(--esa-dark);
}

.esa-num-unit {
  font-size: 0.9rem;
  color: var(--esa-text-muted);
  font-weight: 600;
}

.esa-input-hint {
  font-size: 0.85rem;
  color: var(--esa-text-muted);
  margin: 0 0 0.85rem 0;
  line-height: 1.4;
}

/* Range Sliders */
.esa-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.esa-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--esa-orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 91, 12, 0.4);
  transition: transform 0.15s ease;
}

.esa-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.esa-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--esa-orange);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(234, 91, 12, 0.4);
}

.esa-slider-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--esa-text-muted);
  margin-top: 0.5rem;
}

/* Combined Area Badge */
.esa-area-summary-box {
  background: #f1f5f9;
  border: 1px solid var(--esa-border);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.esa-area-summary-box strong {
  color: var(--esa-darker);
  font-size: 1.05rem;
}

/* Complexity Selector */
.esa-complexity-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .esa-complexity-options {
    grid-template-columns: 1fr;
  }
}

.esa-complexity-card {
  background: #f8fafc;
  border: 2px solid var(--esa-border);
  border-radius: 10px;
  padding: 1rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.esa-complexity-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.esa-complexity-card.active {
  border-color: var(--esa-orange);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 91, 12, 0.1);
}

.esa-comp-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--esa-darker);
  margin-bottom: 0.25rem;
}

.esa-comp-desc {
  font-size: 0.78rem;
  color: var(--esa-text-muted);
  line-height: 1.35;
}

.esa-comp-factor {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--esa-orange);
}

/* Fixtures Toggles */
.esa-toggle-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.esa-btn-toggle {
  flex: 1;
  min-width: 130px;
  background: #f8fafc;
  border: 1px solid var(--esa-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esa-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.esa-btn-toggle:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.esa-btn-toggle.active {
  background: var(--esa-darker);
  border-color: var(--esa-darker);
  color: #ffffff;
}

.esa-counter-group {
  display: flex;
  gap: 0.5rem;
}

.esa-count-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--esa-border);
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esa-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.esa-count-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.esa-count-btn.active {
  background: var(--esa-orange);
  border-color: var(--esa-orange);
  color: #ffffff;
}

/* Right Column: Results & Summaries */
.esa-summary-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.esa-summary-hero-card::after {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(234, 91, 12, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.esa-grand-total-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff914d;
  margin-bottom: 0.5rem;
}

.esa-grand-total-num {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.esa-grand-total-vat {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.esa-grand-total-vat strong {
  color: #ffffff;
}

/* Breakdown Mini Cards */
.esa-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: #e2e8f0;
}

.esa-breakdown-row:last-child {
  border-bottom: none;
}

.esa-breakdown-row strong {
  color: #ffffff;
  font-size: 1rem;
}

/* Professional Fees Detailed Card */
.esa-fees-detail-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.esa-card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.esa-fees-detail-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--esa-darker);
  margin: 0 0 0.5rem 0;
}

.esa-fees-detail-card p.subtitle {
  font-size: 0.88rem;
  color: var(--esa-text-muted);
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

/* Phase List */
.esa-phase-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--esa-border);
}

.esa-phase-item:last-child {
  border-bottom: none;
}

.esa-phase-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--esa-orange-light);
  color: var(--esa-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.esa-phase-body {
  flex: 1;
}

.esa-phase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.esa-phase-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--esa-darker);
}

.esa-phase-fee {
  font-weight: 700;
  font-size: 1rem;
  color: var(--esa-orange);
}

.esa-phase-desc {
  font-size: 0.82rem;
  color: var(--esa-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Phase 3 Toggle Card */
.esa-phase3-toggle-wrap {
  background: #f8fafc;
  border: 1px dashed var(--esa-border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.esa-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.esa-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.esa-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.esa-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.esa-switch input:checked + .esa-switch-slider {
  background-color: var(--esa-orange);
}

.esa-switch input:checked + .esa-switch-slider:before {
  transform: translateX(22px);
}

/* Inclusions Comparison Section */
.esa-spec-comparison-section {
  margin-top: 4.5rem;
}

.esa-section-title-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.esa-section-title-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.75rem 0;
}

.esa-section-title-box p {
  font-size: 1.1rem;
  color: #e2e8f0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

.esa-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.esa-spec-col {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 2.25rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.esa-spec-col.benchmark {
  background: #ffffff;
  border-color: var(--esa-orange);
  box-shadow: 0 18px 45px rgba(234, 91, 12, 0.2);
}

.esa-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--esa-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(234, 91, 12, 0.3);
}

.esa-spec-col h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--esa-darker);
}

.esa-spec-tagline {
  font-size: 0.88rem;
  color: var(--esa-text-muted);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.esa-spec-rates {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.esa-spec-rates span {
  color: var(--esa-text-muted);
  display: block;
}

.esa-spec-rates strong {
  font-size: 0.95rem;
  color: var(--esa-darker);
}

.esa-inclusions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex: 1;
}

.esa-inclusions-list li {
  font-size: 0.88rem;
  color: #334155;
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.esa-inclusions-list li::before {
  content: "✓";
  color: var(--esa-orange);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Action Bar & Lead Consultation */
.esa-action-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 2.75rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.esa-action-bar h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--esa-darker);
  margin: 0 0 0.5rem 0;
}

.esa-action-bar p {
  color: var(--esa-text-muted);
  max-width: 650px;
  margin: 0 auto 1.75rem auto;
  font-size: 1rem;
}

.esa-action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.esa-btn-primary {
  background: var(--esa-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(234, 91, 12, 0.3);
}

.esa-btn-primary:hover {
  background: var(--esa-orange-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.esa-btn-secondary {
  background: #ffffff;
  color: var(--esa-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--esa-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.esa-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Modal for Inquiry */
.esa-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.esa-modal-backdrop.open {
  display: flex;
}

.esa-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.esa-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--esa-text-muted);
}

.esa-modal-close:hover {
  background: #e2e8f0;
  color: var(--esa-dark);
}

/* Form Styles */
.esa-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.esa-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--esa-dark);
  margin-bottom: 0.4rem;
}

.esa-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--esa-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.esa-form-control:focus {
  outline: none;
  border-color: var(--esa-orange);
  box-shadow: 0 0 0 3px rgba(234, 91, 12, 0.15);
}

/* Print Styling */
@media print {
  header, footer, .esa-mode-switcher, .esa-action-bar, .ast-scroll-top, .elementor-location-header, .elementor-location-footer, .esa-contact-bg-slideshow {
    display: none !important;
  }
  .esa-calculator-page {
    background: #ffffff !important;
    padding: 0;
  }
  .esa-calc-card, .esa-summary-hero-card, .esa-fees-detail-card, .esa-spec-col {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    break-inside: avoid;
  }
}


/* ==========================================================================
   AI SUMMARY CARD INTEGRATION FOR CALCULATOR HERO (WARM ARCHITECTURAL ALABASTER)
   ========================================================================== */
.esa-calc-hero .esa-ai-summary-block {
  background: #fbf9f6 !important;
  color: #334155 !important;
  border: 1px solid #e7e2da !important;
  border-left: 4px solid #ea5b0c !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  text-align: left;
  margin: 25px auto 30px auto !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-title {
  color: #273444 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-tag {
  background: rgba(234, 91, 12, 0.08) !important;
  color: #ea5b0c !important;
  border: 1px solid rgba(234, 91, 12, 0.25) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-desc {
  color: #475569 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 13.5px !important;
  margin: 0 !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-desc strong {
  color: #273444 !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-item {
  background: #ffffff !important;
  border: 1.5px solid #ebe6df !important;
  border-radius: 12px !important;
}
.esa-calc-hero .esa-ai-summary-block .esa-ai-summary-label {
  color: #ea5b0c !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}

/* Mobile Optimization for Calculator (<= 767px) */
@media (max-width: 767px) {
  .esa-calc-hero {
    padding: 24px 16px !important;
    margin: 10px auto 20px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .esa-calc-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .esa-calc-hero h1 {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.25 !important;
    margin: 10px auto 16px auto !important;
    text-align: center !important;
    word-break: break-word !important;
    width: 100% !important;
  }
  .esa-calc-pill {
    display: table !important;
    margin: 0 auto 12px auto !important;
    text-align: center !important;
  }
  .esa-ai-summary-block {
    padding: 16px 14px !important;
    margin: 16px auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .esa-ai-summary-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .esa-ai-summary-header > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .esa-ai-summary-title {
    width: 100% !important;
    text-align: center !important;
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }
  .esa-ai-summary-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .esa-ai-summary-item {
    text-align: center !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .esa-ai-summary-label {
    text-align: center !important;
    display: block !important;
    margin-bottom: 4px !important;
  }
  .esa-ai-summary-desc {
    text-align: center !important;
  }
  .esa-calc-card,
  .esa-summary-hero-card,
  .esa-fees-detail-card {
    padding: 20px 14px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  .esa-complexity-options {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

