/* ==========================================================================
   Get a Quote page — page header + multi-step form
   Namespaced under .quote-* so it never collides with the theme's own CSS.
   Reuses the theme's tokens (var(--primary), var(--border), var(--theme), …),
   .container.large, .section-spacing* and .rr-btn so the page matches the
   rest of the site.
   ========================================================================== */

/* ---- page header ---- */
.quote-hero-area .quote-hero-inner {
  padding-top: 140px;
  padding-bottom: 60px;
}
@media only screen and (max-width: 1199px) {
  .quote-hero-area .quote-hero-inner {
    padding-top: 120px;
    padding-bottom: 40px;
  }
}
@media only screen and (max-width: 767px) {
  .quote-hero-area .quote-hero-inner {
    padding-top: 120px;
    padding-bottom: 30px;
  }
}
.quote-hero-area .section-subtitle {
  margin-bottom: 18px;
  color: var(--theme);
  letter-spacing: 0.08em;
}
.quote-hero-area .section-title {
  font-size: 72px;
}
@media only screen and (max-width: 1399px) {
  .quote-hero-area .section-title {
    font-size: 56px;
  }
}
@media only screen and (max-width: 991px) {
  .quote-hero-area .section-title {
    font-size: 42px;
  }
}
@media only screen and (max-width: 575px) {
  .quote-hero-area .section-title {
    font-size: 32px;
  }
}
.quote-hero-area .text-wrapper .text {
  max-width: 620px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--secondary);
}
@media only screen and (max-width: 767px) {
  .quote-hero-area .text-wrapper .text {
    font-size: 16px;
    margin-top: 16px;
  }
}

/* ---- form area shell ---- */
.quote-form-area-inner {
  padding-top: 20px;
  padding-bottom: 100px;
}
@media only screen and (max-width: 1199px) {
  .quote-form-area-inner {
    padding-bottom: 60px;
  }
}
.quote-form-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ---- progress bar ---- */
.quote-progress {
  display: flex;
  align-items: flex-start;
  margin-bottom: 56px;
}
.quote-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}
.quote-progress-step::before {
  content: "";
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  z-index: 0;
}
.quote-progress-step:first-child::before {
  display: none;
}
.quote-progress-step.is-complete::before {
  background-color: var(--theme);
}
.quote-progress-circle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background-color: var(--white);
  color: var(--secondary);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.quote-progress-step.is-active .quote-progress-circle {
  border-color: var(--theme);
  background-color: var(--theme);
  color: var(--white);
}
.quote-progress-step.is-complete .quote-progress-circle {
  border-color: var(--theme);
  background-color: var(--white);
  color: var(--theme);
}
.quote-progress-circle .fa-check {
  display: none;
  font-size: 14px;
}
.quote-progress-step.is-complete .quote-progress-circle .fa-check {
  display: block;
}
.quote-progress-step.is-complete .quote-progress-circle .quote-progress-num {
  display: none;
}
.quote-progress-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.quote-progress-step.is-active .quote-progress-label {
  color: var(--primary);
  font-weight: 700;
}
@media only screen and (max-width: 575px) {
  .quote-progress-label {
    display: none;
  }
}

/* live status text for screen readers / compact mobile step label */
.quote-step-status {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 8px;
  display: none;
}
@media only screen and (max-width: 575px) {
  .quote-step-status {
    display: block;
  }
}

/* ---- error summary ---- */
.quote-error-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 30px;
  border: 1px solid #E23E3E;
  border-radius: 12px;
  background-color: rgba(226, 62, 62, 0.06);
  color: #B92626;
  font-size: 15px;
}
.quote-error-summary i {
  margin-top: 3px;
}
.quote-error-summary[hidden] {
  display: none;
}

/* ---- step card ---- */
.quote-step {
  animation: quoteFadeIn 0.35s ease;
}
.quote-step[hidden] {
  display: none;
}
@keyframes quoteFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.quote-step-title {
  font-family: var(--font_instrumentsans);
  font-weight: 500;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 6px;
}
@media only screen and (max-width: 575px) {
  .quote-step-title {
    font-size: 23px;
  }
}
.quote-step-desc {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 32px;
}

/* ---- field grid + fields ---- */
.quote-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 24px;
}
@media only screen and (max-width: 575px) {
  .quote-field-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.quote-field {
  display: flex;
  flex-direction: column;
}
.quote-field.is-full {
  grid-column: 1 / -1;
}
.quote-field label.quote-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.quote-field .quote-optional {
  font-weight: 400;
  color: var(--secondary);
  font-size: 13px;
}
.quote-required {
  color: var(--theme);
}

.quote-input,
.quote-select,
.quote-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--primary);
  font-family: var(--font_instrumentsans);
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.quote-textarea {
  min-height: 140px;
  resize: vertical;
}
.quote-input::placeholder,
.quote-textarea::placeholder {
  color: var(--secondary);
}
.quote-input:focus,
.quote-select:focus,
.quote-textarea:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 4px rgba(244, 66, 66, 0.1);
}
.quote-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.quote-field.has-error .quote-input,
.quote-field.has-error .quote-select,
.quote-field.has-error .quote-textarea,
.quote-field.has-error .quote-upload-dropzone {
  border-color: #E23E3E;
}
.quote-field.has-error .quote-input:focus,
.quote-field.has-error .quote-select:focus,
.quote-field.has-error .quote-textarea:focus {
  box-shadow: 0 0 0 4px rgba(226, 62, 62, 0.12);
}
.quote-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #E23E3E;
}
.quote-field.has-error .quote-error-msg {
  display: flex;
}
.quote-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--secondary);
}

/* standalone error text (not nested in a .quote-field, e.g. service/consent groups) */
.quote-standalone-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: #E23E3E;
}
.quote-standalone-error:not([hidden]) {
  display: flex;
}

/* ---- section divider inside a step ---- */
.quote-divider {
  margin: 40px 0 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ---- service selection cards ---- */
.quote-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border: none;
  padding: 0;
  margin: 0;
}
@media only screen and (max-width: 767px) {
  .quote-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 480px) {
  .quote-service-grid {
    grid-template-columns: 1fr;
  }
}
.quote-service-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background-color: var(--white);
}
.quote-service-card:hover {
  border-color: var(--theme);
}
.quote-service-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.quote-service-card:focus-within {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}
.quote-service-card.is-selected {
  border-color: var(--theme);
  background-color: rgba(244, 66, 66, 0.05);
}
.quote-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(17, 17, 17, 0.05);
  color: var(--theme);
  font-size: 18px;
  flex-shrink: 0;
}
.quote-service-body {
  flex: 1;
}
.quote-service-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}
.quote-service-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.4;
}
.quote-service-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--white);
  font-size: 11px;
}
.quote-service-card.is-selected .quote-service-check {
  background-color: var(--theme);
  border-color: var(--theme);
}

/* ---- pill radio/checkbox groups ---- */
.quote-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quote-pill {
  position: relative;
}
.quote-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.quote-pill span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.quote-pill:hover span {
  border-color: var(--theme);
}
.quote-pill input:checked ~ span {
  background-color: var(--theme);
  border-color: var(--theme);
  color: var(--white);
}
.quote-pill input:focus-visible ~ span {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}

/* ---- conditional project-detail subsections ---- */
.quote-subsection {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.quote-subsection[hidden] {
  display: none;
}
.quote-subsection-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.quote-subsection-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(244, 66, 66, 0.08);
  color: var(--theme);
  font-size: 16px;
  flex-shrink: 0;
}
.quote-subsection-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.quote-no-details {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--secondary);
  font-size: 15px;
  text-align: center;
}

/* ---- file upload ---- */
.quote-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.quote-upload-dropzone:hover,
.quote-upload-dropzone:focus-within {
  border-color: var(--theme);
  background-color: rgba(244, 66, 66, 0.03);
}
.quote-upload-dropzone i {
  font-size: 24px;
  color: var(--theme);
}
.quote-upload-dropzone .quote-upload-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.quote-upload-dropzone .quote-upload-sub {
  font-size: 13px;
  color: var(--secondary);
}
.quote-upload-dropzone input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.quote-upload-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote-upload-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--primary);
}
.quote-upload-list .quote-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-upload-list .quote-file-size {
  color: var(--secondary);
  flex-shrink: 0;
  margin-inline-start: auto;
  margin-inline-end: 10px;
}
.quote-file-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(17, 17, 17, 0.06);
  color: var(--primary);
  cursor: pointer;
  font-size: 11px;
}
.quote-file-remove:hover {
  background-color: #E23E3E;
  color: var(--white);
}

/* ---- consent checkbox ---- */
.quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.quote-consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--theme);
  cursor: pointer;
}
.quote-consent label {
  font-size: 14px;
  color: var(--primary);
  line-height: 1.5;
  cursor: pointer;
}
.quote-consent.has-error {
  border-color: #E23E3E;
}

/* ---- nav buttons ---- */
.quote-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.quote-nav .rr-btn {
  padding: 18px 34px;
  font-size: 15px;
}
.quote-nav-spacer {
  flex: 1;
}
.quote-submit-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.quote-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-inline-end: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: quoteSpin 0.7s linear infinite;
}
.quote-submit-btn.is-loading .quote-spinner {
  display: inline-block;
}
.quote-submit-btn.is-loading .quote-submit-label {
  font-size: 0;
}
.quote-submit-btn.is-loading .quote-submit-label::before {
  content: "Submitting...";
  font-size: 16px;
}
@keyframes quoteSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- success panel ---- */
.quote-success {
  text-align: center;
  padding: 60px 20px;
}
.quote-success[hidden] {
  display: none;
}
.quote-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.12);
  color: #25D366;
  font-size: 36px;
}
.quote-success-title {
  font-family: var(--font_instrumentsans);
  font-weight: 500;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 14px;
}
.quote-success-text {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary);
}

/* ---- shared focus visibility ---- */
.quote-form-wrap a:focus-visible,
.quote-form-wrap button:focus-visible,
.quote-input:focus-visible,
.quote-select:focus-visible,
.quote-textarea:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}

/* visually-hidden utility for SR-only live text */
.quote-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
