/**
 * Venus Infra - Cost Estimator Page Styles
 * Strict WCAG 2.2 AA compliant, design tokens from DESIGN.md
 */

.estimator-page {
  background-color: #fcf9f5 !important;
  background: #fcf9f5 !important;
  min-height: 100vh;
  padding-bottom: 80px;
}

.estimator-page .estimator-section {
  padding: 40px 0 60px !important;
  background: transparent !important;
  color: #171717 !important;
}

.estimator-page .estimator-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #171717 !important;
}

/* Page Section Title */
.estimator-page .estimator-header {
  margin-bottom: 24px !important;
}

.estimator-page .estimator-title {
  font-family: var(--font-family-primary, 'Google Sans Flex', sans-serif) !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.02em !important;
}

.estimator-page .estimator-subtitle {
  font-size: 15px !important;
  color: #6c655f !important;
  margin: 0 !important;
}

/* ==========================================================================
   Tabs Selector (Basic Details vs All Details)
   ========================================================================== */
.estimator-page .estimator-tabs-wrap {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-bottom: -1px !important;
  position: relative !important;
  z-index: 2 !important;
}

.estimator-page .estimator-tab-btn {
  background: #ede6dc !important;
  border: 1px solid #ddd5ca !important;
  border-bottom: none !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  transition: all 0.2s ease !important;
  color: #6c655f !important;
  min-width: 170px !important;
  box-sizing: border-box !important;
}

.estimator-page .estimator-tab-btn--active {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid #ffffff !important;
  color: #171717 !important;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.04) !important;
  cursor: default !important;
}

.estimator-page .estimator-tab-btn__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.estimator-page .estimator-tab-btn--active .estimator-tab-btn__title {
  color: #171717 !important;
}

.estimator-page .estimator-tab-btn__subtitle {
  font-size: 12px !important;
  color: #8c857f !important;
  margin-top: 2px !important;
}

.estimator-page .estimator-tab-btn--active .estimator-tab-btn__subtitle {
  color: #F15A2A !important;
}

.estimator-page .estimator-tab-btn:hover:not(.estimator-tab-btn--active) {
  background: #e5ded4 !important;
  color: #171717 !important;
}

.estimator-page .estimator-tab-btn:focus-visible {
  outline: 2px solid #F15A2A !important;
  outline-offset: -2px !important;
}

/* ==========================================================================
   Form Card Container
   ========================================================================== */
.estimator-page .estimator-form-card {
  background: #ffffff !important;
  border-radius: 0 16px 16px 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  padding: 36px 40px 32px !important;
  position: relative !important;
  z-index: 1 !important;
  color: #171717 !important;
}

@media (max-width: 640px) {
  .estimator-page .estimator-tabs-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
  }
  .estimator-page .estimator-tab-btn {
    border-radius: 8px !important;
    border-bottom: 1px solid #ddd5ca !important;
    margin-bottom: 4px !important;
  }
  .estimator-page .estimator-tab-btn--active {
    border-bottom: 1px solid #F15A2A !important;
  }
  .estimator-page .estimator-form-card {
    border-radius: 12px !important;
    padding: 24px 18px !important;
  }
}

/* Floating "Book a meeting" Pill in Card */
.estimator-page .estimator-floating-badge {
  position: absolute !important;
  top: 24px !important;
  right: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #fff5ee !important;
  border: 1px solid rgba(241, 90, 42, 0.3) !important;
  color: #F15A2A !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.estimator-page .estimator-floating-badge:hover {
  background: #F15A2A !important;
  color: #ffffff !important;
  border-color: #F15A2A !important;
  box-shadow: 0 3px 10px rgba(241, 90, 42, 0.25) !important;
}

@media (max-width: 900px) {
  .estimator-page .estimator-floating-badge {
    position: static !important;
    margin-bottom: 18px !important;
    display: inline-flex !important;
  }
}

/* Form Grid */
.estimator-page .estimator-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px 20px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 1024px) {
  .estimator-page .estimator-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .estimator-page .estimator-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Form Group & Input Styling */
.estimator-page .estimator-field {
  display: flex !important;
  flex-direction: column !important;
}

.estimator-page .estimator-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #4a4540 !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.estimator-page .estimator-label .required {
  color: #d93025 !important;
}

.estimator-page .estimator-input,
.estimator-page .estimator-select {
  width: 100% !important;
  height: 46px !important;
  padding: 8px 14px !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  color: #171717 !important;
  background: #ffffff !important;
  border: 1px solid #d4cdc5 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.estimator-page .estimator-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236C655F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  cursor: pointer !important;
}

.estimator-page .estimator-input:focus,
.estimator-page .estimator-select:focus {
  outline: none !important;
  border-color: #F15A2A !important;
  box-shadow: 0 0 0 3px rgba(241, 90, 42, 0.16) !important;
}

.estimator-page .estimator-input.is-invalid,
.estimator-page .estimator-select.is-invalid {
  border-color: #d93025 !important;
  background-color: #fff9f9 !important;
}

.estimator-page .estimator-help {
  font-size: 11.5px !important;
  color: #7d756d !important;
  margin-top: 5px !important;
  line-height: 1.35 !important;
}

/* Secondary Row: Radio & Checkbox */
.estimator-page .estimator-bottom-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f0e9e1 !important;
  margin-top: 10px !important;
}

.estimator-page .estimator-radio-group {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  font-size: 13.5px !important;
  color: #4a4540 !important;
}

.estimator-page .estimator-radio-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
}

.estimator-page .estimator-radio-label input[type="radio"] {
  accent-color: #F15A2A !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
}

.estimator-page .estimator-checkbox-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #4a4540 !important;
}

.estimator-page .estimator-checkbox-group input[type="checkbox"] {
  accent-color: #F15A2A !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
}

.estimator-page .estimator-checkbox-group a {
  color: #F15A2A !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.estimator-page .estimator-checkbox-group a:hover {
  color: #d94a1d !important;
}

/* Calculate Button */
.estimator-page .estimator-submit-wrap {
  display: flex !important;
  justify-content: center !important;
  margin-top: 28px !important;
}

.estimator-page .estimator-calc-btn {
  background: #F15A2A !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 54px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(241, 90, 42, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.estimator-page .estimator-calc-btn:hover {
  background: #e04818 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(241, 90, 42, 0.45) !important;
}

.estimator-page .estimator-calc-btn:active {
  transform: translateY(0) !important;
}

.estimator-page .estimator-calc-btn:focus-visible {
  outline: 3px solid #171717 !important;
  outline-offset: 3px !important;
}

.estimator-page .estimator-calc-btn[disabled] {
  background: #b0a8a0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ==========================================================================
   Results Section ("Compare and choose package")
   Revealed only after form submit & data captured
   ========================================================================== */
.estimator-page .estimator-results-section {
  margin-top: 54px !important;
  scroll-margin-top: 90px !important;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
}

.estimator-page .estimator-results-section.is-hidden {
  display: none !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

.estimator-page .estimator-results-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 26px !important;
}

.estimator-page .estimator-results-title {
  font-family: var(--font-family-primary, 'Google Sans Flex', sans-serif) !important;
  font-size: clamp(22px, 2.5vw, 30px) !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 4px 0 !important;
}

.estimator-page .estimator-results-subtitle {
  font-size: 13.5px !important;
  color: #7d756d !important;
  margin: 0 !important;
}

.estimator-page .estimator-download-pdf-btn {
  background: #F15A2A !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(241, 90, 42, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.estimator-page .estimator-download-pdf-btn:hover {
  background: #d94a1d !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.estimator-page .estimator-download-pdf-btn:focus-visible {
  outline: 2px solid #171717 !important;
  outline-offset: 2px !important;
}

/* Three Packages Unified Columns (Card + Specs in one seamless column) */
.estimator-page .estimator-packages-unified-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 10px !important;
  align-items: stretch !important;
}

@media (max-width: 900px) {
  .estimator-page .estimator-packages-unified-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

.estimator-page .estimator-unified-col {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
}

.estimator-page .estimator-unified-col--featured {
  border-top: 4px solid #F15A2A !important;
}

.estimator-page .estimator-pkg-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 28px 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.2s ease !important;
}

.estimator-page .estimator-pkg-card--featured {
  border-top: 4px solid #F15A2A !important;
}

.estimator-page .estimator-pkg-name {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 10px 0 !important;
}

.estimator-page .estimator-pkg-price {
  font-family: var(--font-family-primary, 'Google Sans Flex', sans-serif) !important;
  font-size: clamp(24px, 2.2vw, 30px) !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 4px 0 !important;
}

.estimator-page .estimator-pkg-rate {
  font-size: 12.5px !important;
  color: #F15A2A !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

.estimator-page .estimator-breakdown-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border-top: 1px dashed #ded7cc !important;
  padding-top: 14px !important;
}

.estimator-page .estimator-breakdown-item {
  font-size: 13.5px !important;
  color: #212121 !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.estimator-page .estimator-breakdown-item strong {
  display: block !important;
  color: #171717 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
}

.estimator-page .estimator-accordion-col {
  background: #fdfaf6 !important;
  border: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 0 16px 16px !important;
  padding: 12px 18px 24px !important;
  flex: 1 1 auto !important;
}

/* Individual Accordion Details */
.estimator-page .estimator-acc-item {
  border-bottom: 1px solid #ede7df !important;
}

.estimator-page .estimator-acc-item:last-child {
  border-bottom: none !important;
}

.estimator-page .estimator-acc-item summary {
  padding: 14px 8px !important;
  font-family: var(--font-family-primary, 'Google Sans Flex', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #171717 !important;
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  user-select: none !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: color 0.15s ease !important;
}

.estimator-page .estimator-acc-item summary::-webkit-details-marker {
  display: none !important;
}

.estimator-page .estimator-acc-item.is-row-hovered > summary,
.estimator-page .estimator-acc-item summary:hover {
  color: #F15A2A !important;
  background: transparent !important;
  background-color: transparent !important;
}

.estimator-page .estimator-acc-item summary:focus-visible {
  outline: 2px solid #F15A2A !important;
  outline-offset: 2px !important;
}

.estimator-page .estimator-acc-icon {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #F15A2A !important;
  line-height: 1 !important;
  transition: color 0.15s ease !important;
}

.estimator-page .estimator-acc-item.is-row-hovered .estimator-acc-icon,
.estimator-page .estimator-acc-item summary:hover .estimator-acc-icon {
  color: #F15A2A !important;
}

.estimator-page .estimator-acc-item[open] > summary {
  color: #F15A2A !important;
  background: transparent !important;
  background-color: transparent !important;
}

.estimator-page .estimator-acc-item[open].is-row-hovered > summary,
.estimator-page .estimator-acc-item[open] summary:hover {
  color: #F15A2A !important;
  background: transparent !important;
  background-color: transparent !important;
}

.estimator-page .estimator-acc-body {
  padding: 2px 8px 18px 8px !important;
}

.estimator-page .estimator-acc-body ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
}

.estimator-page .estimator-acc-body li {
  position: relative !important;
  padding-left: 20px !important;
  font-family: var(--font-family-primary, 'Google Sans Flex', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1f1f1f !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.estimator-page .estimator-acc-body li::before {
  content: "\2022" !important;
  color: #F15A2A !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  position: absolute !important;
  left: 2px !important;
  top: -2px !important;
  line-height: 1.4 !important;
}
  line-height: 1 !important;
}
