/*
 * =========================================================
 * Luxury Clean / Estimate Form Page
 * Figma: form / PC 1440 + Mobile 428
 * =========================================================
 */

.estimate-page {
  min-height: 1789px;
  padding: 64px 20px 58px;
  background: var(--lc-semantic-color-bg-subtle);
}

.lc-form-submit {
  font-weight: 700;
}

.estimate-card {
  width: 640px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--lc-semantic-color-border-default);
  border-radius: var(--lc-semantic-radius-input);
  background: var(--lc-semantic-color-bg-base);
}

.estimate-card__title {
  margin: 0 0 24px;
  color: var(--lc-semantic-color-text-primary);
  font-size: var(--lc-type-desktop-heading-l-size);
  line-height: var(--lc-type-desktop-heading-l-line-height);
  font-weight: 700;
  text-align: center;
}

.estimate-field,
.estimate-form> :nth-child(1) {
  display: flex;
  gap: 14px;
}

.estimate-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.estimate-field,
.estimate-fieldset {
  width: 100%;
  padding-bottom: 14px;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.estimate-label {
  padding: 0;
  color: var(--lc-semantic-color-text-primary);
  font-size: var(--lc-type-desktop-body-l-size);
  line-height: 1.3;
  font-weight: 500;
}

.estimate-label span {
  color: var(--lc-semantic-color-brand-primary);
}

.estimate-help {
  margin: 0;
  color: var(--lc-semantic-color-text-secondary);
  font-size: var(--lc-type-desktop-caption-size);
  line-height: 1.4;
}

.estimate-options {
  display: grid;
  gap: 8px;
}

.estimate-options--two {
  grid-template-columns: repeat(2, 1fr);
}

.estimate-options .lc-choice--wide {
  width: 100%;
}

.estimate-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.estimate-days .lc-choice--day {
  width: 100%;
  max-width: none;
}

.estimate-field .lc-control+.lc-control {
  margin-top: 0;
}

.estimate-field textarea.lc-control {
  min-height: 160px;
}

.estimate-submit {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.estimate-submit > p {
  margin: 0;
  color: var(--lc-semantic-color-text-primary);
  font-size: var(--lc-type-desktop-body-s-size);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.estimate-consent a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.estimate-consent {
  border: 1px solid var(--lc-semantic-color-border-default);
  border-radius: var(--lc-semantic-radius-card-sm);
  overflow: hidden;
}

.estimate-consent__summary {
  padding: var(--lc-space-16);
  background: var(--lc-semantic-color-bg-subtle);
}

.estimate-consent__summary strong {
  display: block;
  margin-bottom: var(--lc-space-10);
  color: var(--lc-semantic-color-text-heading);
  font-size: var(--lc-type-desktop-body-s-size);
  line-height: var(--lc-type-desktop-body-s-line-height);
}

.estimate-consent__summary dl,
.estimate-consent__summary dd,
.estimate-consent__summary p {
  margin: 0;
}

.estimate-consent__summary dl > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--lc-space-8);
}

.estimate-consent__summary dl > div + div {
  margin-top: var(--lc-space-4);
}

.estimate-consent__summary dt,
.estimate-consent__summary dd,
.estimate-consent__summary p {
  color: var(--lc-semantic-color-text-secondary);
  font-size: var(--lc-type-desktop-caption-size);
  line-height: 1.55;
}

.estimate-consent__summary dt {
  font-weight: 700;
}

.estimate-consent__summary p {
  margin-top: var(--lc-space-10);
}

.estimate-consent__check {
  min-height: var(--lc-semantic-layout-touch-min);
  padding: var(--lc-space-12) var(--lc-space-16);
  display: flex;
  align-items: center;
  gap: var(--lc-space-10);
  color: var(--lc-semantic-color-text-primary);
  font-size: var(--lc-type-desktop-body-s-size);
  line-height: var(--lc-type-desktop-body-s-line-height);
  font-weight: 600;
  cursor: pointer;
}

.estimate-consent__check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--lc-semantic-color-brand-primary);
  flex: 0 0 auto;
}

.estimate-consent__check:has(input:focus-visible) {
  outline: 3px solid var(--lc-semantic-color-brand-secondary);
  outline-offset: -3px;
}

/* 필수값 입력 전 신청 버튼 비활성화 */
.estimate-submit .lc-form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .estimate-page {
    min-height: 0;
    padding: 32px 20px 40px;
    background: var(--lc-semantic-color-bg-base);
  }

  .estimate-card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .estimate-card__title {
    margin-bottom: 24px;
    font-size: var(--lc-type-mobile-section-size);
    line-height: var(--lc-type-mobile-section-line-height);
  }

  .estimate-form {
    gap: 24px;
  }

  .estimate-label {
    font-size: 16.2px;
  }

  .estimate-help {
    font-size: var(--lc-type-mobile-caption-size);
  }

  .estimate-options--two {
    gap: 8px;
  }

  .estimate-days {
    gap: var(--lc-space-8);
  }

  .estimate-submit {
    padding-top: 0;
    gap: 12px;
  }

  .estimate-submit > p {
    font-size: 12.6px;
  }

  .estimate-consent__summary strong,
  .estimate-consent__check {
    font-size: var(--lc-type-mobile-body-s-size);
    line-height: var(--lc-type-mobile-body-s-line-height);
  }

  .estimate-consent__summary dt,
  .estimate-consent__summary dd,
  .estimate-consent__summary p {
    font-size: var(--lc-type-mobile-caption-size);
    line-height: var(--lc-type-mobile-caption-line-height);
  }
}

/* Figma exact frame alignment */
@media (min-width: 768px) {
  .estimate-page {
    padding: 64px 20px 58px;
  }

  .estimate-card {
    width: 640px;
    padding: 24px;
  }

  .estimate-card__title {
    margin-bottom: 24px;
  }

  .estimate-form {
    gap: 24px;
  }

  .estimate-options--two {
    gap: 8px;
  }

  .estimate-days {
    gap: 8px;
  }

  .estimate-field,
  .estimate-fieldset {
    gap: 14px;
  }
}

/* =========================================================
 * Figma frame-height lock
 * Desktop main 1789 / card 1667 / form 1548
 * Mobile main 1652
 * ========================================================= */
.estimate-card__title {
  min-height: 45px;
}

.estimate-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px
}

.estimate-notice--success {
  background: #eef8f0;
  color: #176b2c
}

.estimate-notice--error {
  background: #fff1f1;
  color: #a32222
}
