/* ===== 예상견적(estimate) 전용 스타일 =====
   견적 계산기, 항목별 사진칸, 결과 패널 */

.section--estimate {
  padding-top: clamp(1.4rem, 4vw, 3rem);
}

.estimate-box {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.estimate-form {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.estimate-form.detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "group group"
    "shroud coffin"
    "embalm flower"
    "helper urn"
    "supplies supplies"
    "vehicles vehicles";
  gap: 1.6rem 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.estimate-form.detailed > .est-group {
  grid-area: group;
}

.estimate-form.detailed > .est-field--shroud,
.estimate-form.detailed > .est-field--coffin,
.estimate-form.detailed > .est-field--embalm,
.estimate-form.detailed > .est-field--flower,
.estimate-form.detailed > .est-field--helper,
.estimate-form.detailed > .est-field--urn,
.estimate-form.detailed > .est-check-group--supplies,
.estimate-form.detailed > .est-check-group--vehicles {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.estimate-form.detailed > .est-field--shroud {
  grid-area: shroud;
}

.estimate-form.detailed > .est-field--coffin {
  grid-area: coffin;
}

.estimate-form.detailed > .est-field--embalm {
  grid-area: embalm;
}

.estimate-form.detailed > .est-field--flower {
  grid-area: flower;
}

.estimate-form.detailed > .est-field--helper {
  grid-area: helper;
}

.estimate-form.detailed > .est-field--urn {
  grid-area: urn;
}

.estimate-form.detailed > .est-check-group--supplies {
  grid-area: supplies;
}

.estimate-form.detailed > .est-check-group--vehicles {
  grid-area: vehicles;
}


.est-field-head {
  margin: 0 0 0.9rem;
}

.est-field-title {
  margin: 0;
}

.est-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.est-field-label::before {
  content: "";
  width: 18px;
  height: 1px;
  flex-shrink: 0;
  background: var(--gold);
}

.est-field-body {
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  min-height: 5.2rem;
}

.est-field-price {
  margin: auto 0 0;
  padding-top: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-soft);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.estimate-form select,
.est-select {
  width: 100%;
  margin-top: 0.42rem;
  padding: 0.5rem 1.6rem 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a86a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.estimate-form select:hover,
.est-select:hover {
  border-color: rgba(200, 168, 106, 0.6);
}

.estimate-form select:focus-visible,
.est-select:focus-visible {
  outline: none;
  border-color: var(--gold);
}

.estimate-form select option,
.est-select option {
  color: #202724;
}

/* 견적 계산기 - 상세 */
.est-group-title {
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.est-group-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.est-group-title span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 168, 106, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
}

.est-included {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1rem;
}

.est-included li {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.est-included li span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.est-photo--included {
  aspect-ratio: 4 / 3;
}

.est-photo--included figcaption {
  display: none;
}

.est-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.est-stepper-info {
  display: grid;
  gap: 0.2rem;
}

.est-stepper-info span {
  font-size: 0.9rem;
  color: var(--ink);
}

.est-stepper-info small {
  font-size: 0.78rem;
  color: var(--ink-dim);
}

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

.step-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step-btn:hover {
  border-color: var(--gold);
  background: rgba(200, 168, 106, 0.12);
}

.stepper input {
  width: 46px;
  text-align: center;
  padding: 0.45rem 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
}

.est-check-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.1rem;
  align-content: start;
}

.est-check-group legend {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.est-check-group legend::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.est-check-body {
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.est-check-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.est-check {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--ink-dim);
}

.est-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  cursor: pointer;
}

.est-check span {
  font-weight: 700;
  color: var(--gold-soft);
}

/* 견적 계산기 - 항목별 사진칸 */
.est-field {
  display: grid;
  align-content: start;
}

.estimate-form.detailed > .est-field,
.estimate-form.detailed > .est-check-group {
  padding: 0;
  background: none;
}

.est-check-item {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.est-check-item .est-photo {
  aspect-ratio: 1.5 / 1;
  border-radius: 10px;
}

.est-check-item .est-photo figcaption {
  display: none;
}

.est-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.est-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.est-photo:hover img {
  opacity: 1;
}

.est-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.est-photo-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.est-photo-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
}

.est-photo.empty {
  border: 1px solid var(--line);
}

.est-photo-hint {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.est-photo.no-img {
  background:
    radial-gradient(circle at 25% 20%, rgba(200, 168, 106, 0.28), rgba(200, 168, 106, 0) 60%),
    linear-gradient(135deg, #f8f1e4, #ece3d1);
}

.est-photo.no-img img {
  display: none;
}

.est-photo.no-img figcaption {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.8rem;
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: var(--dc-red);
  background: none;
}

.est-photo[data-static] {
  opacity: 0.5;
}

.est-photo[data-static].is-active {
  opacity: 1;
}

.est-photo[data-static].is-active::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241d16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.estimate-result {
  position: sticky;
  top: 108px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
}

.estimate-result .eyebrow {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.estimate-result .eyebrow::before {
  width: 24px;
}

.estimate-cta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.estimate-amount {
  margin: 0.15rem 0 0.1rem;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.estimate-amount strong {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--gold-soft);
  line-height: 1;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
}

.estimate-result .hours {
  margin: 0.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

.est-inquiry {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.est-inquiry input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
}

.est-inquiry select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.est-inquiry textarea {
  width: 100%;
  min-height: 92px;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.est-inquiry select option {
  background: #ffffff;
  color: #202724;
}

.est-inquiry select option:disabled {
  color: #9aa1ab;
}

.est-inquiry input::placeholder {
  color: rgba(169, 176, 184, 0.6);
}

.est-inquiry textarea::placeholder {
  color: rgba(169, 176, 184, 0.6);
}

.est-inquiry input:focus-visible,
.est-inquiry select:focus-visible,
.est-inquiry textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
}

.est-inquiry-row {
  display: grid;
  gap: 0.55rem;
}

.est-inquiry-row--time {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.est-inquiry-row--time > input,
.est-inquiry-row--time > select {
  min-width: 0;
}

.est-inquiry-row--region {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.est-consent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.1rem 0.05rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
  cursor: pointer;
}

.est-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}

.est-inquiry .btn {
  margin-top: 0.3rem;
  align-self: center;
  border-radius: 0;
  min-width: 170px;
}

.est-inquiry .form-note {
  margin: 0;
  min-height: 1.1rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .estimate-box {
    grid-template-columns: 1fr;
  }

  .estimate-result {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .estimate-result {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .estimate-amount {
    font-size: 1.28rem;
  }

  .estimate-amount strong {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .estimate-result .hours {
    font-size: 0.82rem;
  }

  .est-inquiry .btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .estimate-form.detailed {
    gap: 1.2rem 0.9rem;
    padding: 1.1rem;
  }

  .estimate-form.detailed > .est-field--shroud,
  .estimate-form.detailed > .est-field--coffin,
  .estimate-form.detailed > .est-field--embalm,
  .estimate-form.detailed > .est-field--flower,
  .estimate-form.detailed > .est-field--helper,
  .estimate-form.detailed > .est-field--urn,
  .estimate-form.detailed > .est-check-group--supplies,
  .estimate-form.detailed > .est-check-group--vehicles {
    padding-top: 1.1rem;
  }

  .est-group-title,
  .est-check-group legend {
    font-size: 0.66rem;
  }

  .est-field-label,
  .est-field-price {
    font-size: 0.66rem;
  }

  .est-field-price {
    padding-top: 0.35rem;
    font-size: 0.82rem;
  }

  .est-photo-note {
    font-size: 0.68rem;
  }

  .estimate-form select,
  .est-select {
    font-size: 0.78rem;
  }

  .est-check-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.7rem;
  }

  .est-check-item {
    gap: 0.5rem;
  }

  .est-check-title {
    font-size: 0.82rem;
  }

  .est-check {
    font-size: 0.78rem;
  }

  .est-included {
    gap: 0.9rem 0.7rem;
  }

  .est-included li span {
    font-size: 0.78rem;
  }
}
