/* Free Project Estimate — uses website-checkup layout + service expands */

.estimate-page .estimate-ai-link {
  margin-top: 18px;
  width: fit-content;
}

.estimate-page .estimate-service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.estimate-page .est-service {
  display: grid;
  gap: 0;
}

.estimate-page .est-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(24, 48, 96, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}

.estimate-page .est-card:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 48, 96, 0.34);
}

.estimate-page .est-service.is-open .est-card,
.estimate-page .est-card:has(input:checked) {
  border-color: #cd0f36;
  background: #fff7f8;
  box-shadow: 0 8px 20px rgba(205, 15, 54, 0.08);
}

.estimate-page .est-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.estimate-page .est-card:has(input:focus-visible) {
  outline: 3px solid rgba(205, 15, 54, 0.3);
  outline-offset: 2px;
}

.estimate-page .est-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.estimate-page .est-card-body strong {
  color: #0b1220;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.estimate-page .est-card-body em {
  color: rgba(11, 18, 32, 0.56);
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.estimate-page .est-card-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(24, 48, 96, 0.22);
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}

.estimate-page .est-card:has(input:checked) .est-card-check {
  border-color: #cd0f36;
  background: #cd0f36;
}

.estimate-page .est-card:has(input:checked) .est-card-check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

.estimate-page .est-expand {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(24, 48, 96, 0.1);
  border-radius: 14px;
  background: rgba(24, 48, 96, 0.03);
}

.estimate-page .est-expand[hidden] {
  display: none;
}

.estimate-page .est-expand-label {
  margin: 0 0 10px;
  color: rgba(11, 18, 32, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.estimate-page .est-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estimate-page .est-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.estimate-page .est-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.estimate-page .est-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(24, 48, 96, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #183060;
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--t), background var(--t), color var(--t);
}

.estimate-page .est-chip:has(input:checked) span {
  border-color: #cd0f36;
  background: #fff7f8;
  color: #cd0f36;
}

.estimate-page .est-chip:has(input:focus-visible) span {
  outline: 3px solid rgba(205, 15, 54, 0.28);
  outline-offset: 2px;
}

.estimate-page .est-other-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #183060;
  font-size: 13px;
  font-weight: 700;
}

.estimate-page .est-other-field span {
  position: static;
  transform: none;
  color: inherit;
  font-size: inherit;
}

.estimate-page .est-other-field textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 48, 96, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #0b1220;
  font: inherit;
  font-weight: 500;
  resize: vertical;
  outline: 0;
}

.estimate-page .est-other-field textarea:focus {
  border-color: #183060;
  box-shadow: 0 0 0 4px rgba(24, 48, 96, 0.09);
}

.estimate-page .estimate-hint {
  margin: 12px 0 0;
  color: #cd0f36;
  font-size: 13px;
  font-weight: 600;
}

.estimate-page .estimate-hint[hidden] {
  display: none;
}

.estimate-page .form-status {
  margin: 8px 0 0;
  color: #1f7a56;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.estimate-page .form-status.is-visible {
  opacity: 1;
}

@media (min-width: 900px) {
  .estimate-page .estimate-service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimate-page .est-service:has(.est-expand:not([hidden])) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .estimate-page .estimate-ai-link {
    width: 100%;
    justify-content: center;
  }
}
