/* One shared Calculator: project selector and project-specific question grids. */
.ra-basic-grid > .ra-project-fields { grid-column: 1 / -1; width: 100%; }
.ra-project-fields > .ra-bath-wet-field { grid-column: 1 / -1; }
.ra-project-fields > .ra-bath-wet-field > .ra-input-label { width: 100%; }
.ra-bath-reference { padding: 15px 18px; margin: 17px 0; background: #fff7ef; border: 1px solid #f2d8c6; border-radius: 12px; }
.ra-bath-reference > span { display:block; color:#975021; font-size:.75rem; font-weight:750; margin-bottom:7px; }
.ra-bath-reference > strong { display:block; font-size:clamp(1.35rem,4vw,2.1rem); color:#243f50; }
.ra-bath-reference > p { font-size:.84rem; margin:7px 0; }

/* Shared Kitchen + Bathroom calculator. */
.ra-experience {
  width: 100%;
  min-width: 0;
  isolation: isolate;
  scroll-margin-top: 36px;
  color: #172e3f;
}
.ra-experience [hidden] { display: none !important; }
.ra-wizard-shell {
  background: #fff;
  border: 1px solid #e1e8eb;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(20,44,58,.075);
  transform-origin: 50% 45%;
}
.ra-mode-bar { display: flex; padding: 14px 15px 0; }
.ra-mode-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e2e8eb;
  border-radius: 30px;
  background: #f4f6f7;
}
.ra-mode-switch button {
  min-height: 44px;
  padding: 7px 17px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: #425c6d;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}
.ra-mode-switch button[aria-pressed=true] { background: #172f40; color: white; }
.ra-mode-switch button[data-mode=advanced][aria-pressed=true] { background: #a54819; }
.ra-wizard-main { min-width: 0; padding: 16px 15px 20px; }
.ra-calc-title, .ra-wizard-step legend, .ra-result-head h3 {
  color: #172e3f;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 830;
  line-height: 1.12;
  letter-spacing: -.044em;
  margin: 0 0 10px;
}
.ra-calc-intro, .ra-step-help, .ra-work-help {
  margin: 0 0 15px;
  color: #496373;
  font-size: .9rem;
  line-height: 1.55;
}
.ra-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 8px;
}
.ra-input-label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #324f60;
  font-size: .82rem;
  font-weight: 750;
}
.ra-input-label select, .ra-input-label input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 6px;
  border: 1px solid #cad8dc;
  border-radius: 8px;
  background: white;
  color: #172f41;
  font: inherit;
  font-size: max(.9rem, 16px);
}
.ra-basic-grid select { font-size: .86rem; }
.ra-experience :is(button, input, select, summary, a):focus-visible {
  outline: 2px solid #bd551e;
  outline-offset: 2px;
}
.ra-wizard-controls, .ra-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
[data-basic-form] .ra-next { width: 100%; }
[data-contact-form] .ra-wizard-controls { margin-top: 0; }
.ra-wizard-controls button, .ra-result-actions button, .ra-text-button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  font: inherit;
  font-size: .88rem;
  font-weight: 780;
  cursor: pointer;
}
.ra-wizard-controls .ra-next, .ra-result-actions button:not(.ra-text-button) {
  margin-left: auto;
  background: #aa481c;
  color: #fff;
}
.ra-wizard-controls .ra-next:hover, .ra-result-actions button:not(.ra-text-button):hover { background: #883817; }
.ra-result-actions button:not(.ra-text-button) { margin-left: 0; }
.ra-text-button, .ra-wizard-controls .ra-back {
  background: transparent;
  color: #86401d;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ra-text-button:hover, .ra-back:hover { color: #602709; }
.ra-experience button:disabled { cursor: progress; opacity: .58; }
.ra-experience a { color: #85411c; font-weight: 700; }
.ra-step-error { color: #a22d23; font-size: .88rem; margin: 10px 0 0; }
[data-contact-form] {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px;
}
[data-contact-form] .ra-step-help { margin: 0; }
.ra-basic-grid > label:nth-child(n+3) { grid-column: 1 / -1; }
.ra-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #526b7a;
  font-size: .82rem;
  font-weight: 750;
}
.ra-progress-header strong { color: #294756; }
.ra-progress-header span { white-space: nowrap; }
.ra-progress-track {
  height: 6px;
  margin: 6px 0 17px;
  background: #e9eff0;
  border-radius: 20px;
  overflow: hidden;
}
.ra-progress-track span { display: block; width: 0; height: 100%; background: #c9682f; transition: width .23s ease; }
.ra-wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; animation: raStepIn .2s ease-out both; }
.ra-wizard-step legend { padding: 0; }
.ra-inline-insight {
  border-left: 3px solid #d6753c;
  padding: 7px 10px;
  background: #fff6ef;
  border-radius: 0 7px 7px 0;
  color: #653c27;
  font-size: .82rem;
  line-height: 1.55;
  margin: 12px 0 0;
}
.ra-work-card {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
  border: 1px solid #e0e8eb;
  border-radius: 11px;
  background: #f6f8f8;
  padding: 10px;
}
.ra-work-price, .ra-work-origin { grid-column: 1 / -1; }
.ra-work-price summary, .ra-result-details summary, .ra-cost-line summary {
  color: #365566;
  font-size: .87rem;
  font-weight: 730;
  cursor: pointer;
  padding-block: 5px;
}
.ra-work-price label { margin: 7px 0; }
.ra-work-help { font-size: .8rem; margin: 5px 0; }
.ra-work-origin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #4c6777;
  font-size: .8rem;
}
.ra-work-origin:has(> span:empty):not(:has(button:not([hidden]))) { display: none; }
.ra-work-origin button {
  border: 0;
  padding: 5px 0;
  min-height: 37px;
  background: transparent;
  color: #86401d;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.ra-review-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e2eaed;
  color: #365566;
  font-size: .86rem;
}
.ra-review-list strong { flex-shrink: 0; white-space: nowrap; }

.ra-wizard-result {
  margin: 0 !important;
  box-shadow: none;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: 0;
  animation: raStepIn .2s ease-out both;
}
.ra-big-range { margin: 18px 0 10px; }
.ra-big-range span { display: block; font-size: .83rem; font-weight: 740; color: #466274; }
.ra-big-range strong {
  display: block;
  font-size: clamp(1.65rem, 6vw, 2.8rem);
  letter-spacing: -.055em;
  line-height: 1.15;
  color: #152f42;
  overflow-wrap: anywhere;
}
.ra-estimate-overview {
  margin: 16px 0;
  border: 1px solid #e2e9eb;
  border-radius: 9px;
  background: #f6f8f8;
  padding: 12px 14px;
  color: #496373;
  font-size: .88rem;
  line-height: 1.58;
}
.ra-estimate-overview h4, .ra-cost-heading { margin: 0 0 6px; color: #203e51; }
.ra-estimate-overview p { margin: 0 0 8px; }
.ra-estimate-overview p:last-child { margin-bottom: 0; }
.ra-result-actions + p { margin-top: 12px; }
.ra-result-details { border-top: 1px solid #e4ebed; margin-top: 9px; padding: 7px 0; font-size: .86rem; }
.ra-result-details ul { margin-block: 5px; }
.ra-result-context {
  margin: 0;
  color: #526b7a;
  font-size: .86rem;
}
.ra-breakdown {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e1e8eb;
  border-radius: 10px;
}
.ra-breakdown h4 { margin: 0 0 4px; color: #203e51; }
.ra-breakdown p { margin: 6px 0; color: #496373; font-size: .82rem; }
.ra-breakdown ul { margin: 10px 0; padding: 0; list-style: none; }
.ra-breakdown li { margin: 9px 0; }
.ra-breakdown-row, .ra-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 7px;
  color: #203e51;
  font-size: .86rem;
}
.ra-breakdown-row strong, .ra-breakdown-total strong { white-space: nowrap; }
.ra-breakdown-row small { display: block; color: #526b7a; }
.ra-breakdown-bar {
  display: block;
  height: 4px;
  margin-top: 4px;
  border-radius: 4px;
  background: #e9eff0;
}
.ra-breakdown-bar span { display: block; height: 100%; border-radius: inherit; background: #b65223; }
.ra-breakdown .ra-breakdown-total {
  border-top: 1px solid #e1e8eb;
  padding-top: 8px;
  color: #203e51;
  font-weight: 750;
}
.ra-cost-lines { list-style: none; padding: 0; }
.ra-cost-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 12px;
  border-top: 1px solid #e4ebed;
  padding: 9px 0;
  color: #203e51;
  font-size: .86rem;
}
.ra-cost-line span { display: block; color: #556f80; font-size: .8rem; }
.ra-cost-line details { grid-column: 1 / -1; }
.ra-cost-line details p { font-size: .84rem; }
@keyframes raStepIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 420px) {
  .ra-work-card { grid-template-columns: minmax(0,1fr) minmax(95px,.36fr); }
  .ra-work-card:has(.ra-quantity[hidden]) { grid-template-columns: minmax(0,1fr); }
  .ra-input-label select, .ra-input-label input { padding-inline: 9px; }
}
@media (min-width: 700px) {
  .ra-mode-bar { padding: 20px 24px 0; }
  .ra-wizard-main { padding: 20px 24px 25px; }
  .ra-basic-grid { gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-progress-track span { transition: none; }
  .ra-wizard-step, .ra-wizard-result { animation: none; }
}
