/* 견적문의 페이지 전용 — logisfactory_estimate_request_v2.html 기준, .estimate-section 스코프 */

.estimate-section {
  padding: 38px 0 96px;
  background: linear-gradient(180deg, #fff, #f4faff);
}

/* .estimate-section .estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}*/
/* 수정 후 코드 */
.estimate-section .estimate-layout {
  display: block;                  /* 2열 그리드를 해제 */
  /*max-width: 920px; */                /* 폼 영역이 너무 넓어지지 않도록 최적 너비 설정 */
  margin: 0 auto;                  /* 가운데 정렬 */
}

.estimate-section .form-card,
.estimate-section .guide-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.estimate-section .form-head {
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbff, #eef9ff);
}

.estimate-section .form-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  letter-spacing: -.045em;
}

.estimate-section .form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.estimate-section .form-body {
  padding: 32px;
}

.estimate-section .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.03em;
}

.estimate-section .section-title .num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(8, 119, 242, .22);
}

.estimate-section .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.estimate-section .field {
  display: grid;
  gap: 8px;
}

.estimate-section .field.full {
  grid-column: 1 / -1;
}

.estimate-section .field label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.estimate-section .required {
  color: #d9534f;
  margin-left: 3px;
}

.estimate-section .input,
.estimate-section .textarea,
.estimate-section .select {
  width: 100%;
  border: 1px solid #cfddea;
  background: #fbfdff;
  color: var(--ink);
  border-radius: 15px;
  outline: none;
  transition: .18s;
  font: inherit;
}

/* .field input { width:100% } 보다 구체적으로 — 인라인 행은 flex 한 줄 */
.estimate-section .field .inline-input-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.estimate-section .field .inline-input-row > .input,
.estimate-section .field .inline-input-row > .select {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.estimate-section .input,
.estimate-section .select {
  height: 52px;
  padding: 0 16px;
}

.estimate-section .textarea {
  min-height: 350px;
  padding: 18px 16px;
  resize: vertical;
  line-height: 1.85;
  white-space: pre-wrap;
}

.estimate-section .input:focus,
/*.estimate-section .textarea:focus, */
.estimate-section .select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 119, 242, .10);
}

.estimate-section .input.is-invalid,
.estimate-section .textarea.is-invalid {
  border-color: #d9534f;
}

.estimate-section .helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.estimate-section .field-error {
  color: #d9534f;
  font-size: 12px;
  font-weight: 700;
}

.estimate-section .form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #fdecef;
  border: 1px solid #f5c2c9;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}

.estimate-section .divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}

.estimate-section .security-section {
  margin-top: 30px;
}

.estimate-section .security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.0fr) minmax(0, 1.0fr);
  gap: 18px;
  align-items: stretch;
}

.estimate-section .captcha-panel,
.estimate-section .privacy-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fbff;
  overflow: hidden;
}

.estimate-section .panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}

.estimate-section .panel-title .icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e9f3ff;
  color: var(--blue);
  font-size: 16px;
}

.estimate-section .panel-body {
  padding: 18px;
}

.estimate-section .captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.estimate-section .captcha-image {
  display: block;
  width: 132px;
  height: 46px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #d4e1ed;
  background: #eef4f9;
}

.estimate-section .captcha-guide {
  color: #44546b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.estimate-section .captcha-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.estimate-section .captcha-input-wrap .input {
  flex: 1;
}

.estimate-section .captcha-refresh {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #eef4fa;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.estimate-section .captcha-refresh:hover {
  background: #e2edf7;
}

.estimate-section .privacy-content {
  max-height: 215px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: #536176;
  font-size: 12px;
  line-height: 1.7;
}

.estimate-section .privacy-content h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
}

.estimate-section .privacy-content p {
  margin: 0 0 9px;
}

.estimate-section .privacy-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.estimate-section .check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid #cfe1f3;
  border-radius: 15px;
  background: #eef7ff;
}

.estimate-section .check-row input {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.estimate-section .check-row label {
  font-size: 14px;
  line-height: 1.65;
  color: #34445c;
  font-weight: 800;
}

.estimate-section .privacy-link {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 900;
}

.estimate-section .form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.estimate-section .form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 15px;
  font-weight: 950;
  transition: .18s;
  white-space: nowrap;
}

.estimate-section .form-actions .btn:hover {
  transform: translateY(-2px);
}

.estimate-section .form-actions .btn.primary {
  min-width: 220px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: 0;
  box-shadow: 0 15px 34px rgba(8, 119, 242, .24);
}

.estimate-section .form-actions .btn.secondary {
  background: #eef4fa;
  color: var(--navy);
  border: 1px solid var(--line);
}

.estimate-section .guide-card {
  position: sticky;
  top: 100px;
}

.estimate-section .guide-head {
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), #103d70);
  color: #fff;
}

.estimate-section .guide-head h3 {
  margin: 0;
  font-size: 22px;
}

.estimate-section .guide-head p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
}

.estimate-section .guide-body {
  padding: 24px;
}

.estimate-section .guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.estimate-section .guide-list li {
  display: flex;
  gap: 10px;
  color: #34445c;
  font-size: 14px;
  font-weight: 750;
}

.estimate-section .guide-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e4f8f1;
  color: #15956a;
  font-weight: 950;
}

.estimate-section .contact-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #f5faff;
  border: 1px solid var(--line);
}

.estimate-section .contact-box strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
}

.estimate-section .contact-box a {
  color: var(--blue);
  font-weight: 950;
  font-size: 20px;
}

.estimate-section .contact-box small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

/* 완료 화면 */
.estimate-complete-section {
  padding: 38px 0 96px;
  background: linear-gradient(180deg, #fff, #f4faff);
}

.estimate-complete-section .estimate-complete-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.estimate-complete-section .estimate-complete-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.estimate-complete-section .estimate-complete-card h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
}

.estimate-complete-section .estimate-complete-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.estimate-complete-section .estimate-complete-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.estimate-complete-section .estimate-complete-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  border-radius: 15px;
  font-weight: 950;
  transition: .18s;
}

.estimate-complete-section .estimate-complete-actions .btn:hover {
  transform: translateY(-2px);
}

.estimate-complete-section .estimate-complete-actions .btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: 0;
  box-shadow: 0 15px 34px rgba(8, 119, 242, .24);
}

.estimate-complete-section .estimate-complete-actions .btn.secondary {
  background: #eef4fa;
  color: var(--navy);
  border: 1px solid var(--line);
}

@media (max-width: 1020px) {
  .estimate-section .estimate-layout {
    grid-template-columns: 1fr;
  }

  .estimate-section .guide-card {
    position: static;
  }
}

/* 일자리문의 작성 — 이메일/연락처 한 줄 입력 (.estimate-section 안에서 사용) */
.estimate-section .field .inline-input-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.estimate-section .field .inline-input-row.email-row,
.estimate-section .field .inline-input-row.phone-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* base-layout .field input { width:100% } 보다 우선 */
.estimate-section .field .inline-input-row > .input,
.estimate-section .field .inline-input-row > .select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 52px;
  margin: 0;
  box-sizing: border-box;
}

.estimate-section .field .inline-input-row.email-row > .email-id {
  flex: 1 1 0;
  min-width: 0;
}

.estimate-section .field .inline-input-row.email-row > .email-at,
.estimate-section .field .inline-input-row.phone-row > .inline-sep {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  padding: 0 2px;
  user-select: none;
}

.estimate-section .field .inline-input-row.email-row > .email-domain {
  flex: 1 1 0;
  min-width: 0;
}

.estimate-section .field .inline-input-row.email-row > .email-domain-select {
  flex: 0 1 132px;
  min-width: 0;
  max-width: 38%;
}

.estimate-section .field .inline-input-row.phone-row > .phone-prefix {
  flex: 0 0 96px;
  min-width: 0;
}

.estimate-section .field .inline-input-row.phone-row > .phone-part {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.estimate-section .field .job-direct-input {
  width: 100%;
  margin-top: 10px;
}

.estimate-section .field .job-direct-input[hidden] {
  display: none !important;
  margin-top: 0;
}

.estimate-section .private-notice {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef9ff);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
}

.estimate-section .summernote-wrap .note-editor {
  border-radius: 15px;
  overflow: hidden;
  border-color: #cfddea !important;
}

.estimate-section .summernote-wrap .note-toolbar {
  background: #f8fbff;
  border-bottom-color: #cfddea !important;
}

.estimate-section .password-wrap {
  position: relative;
  width: 100%;
}

.estimate-section .password-wrap .input {
  width: 100%;
  padding-right: 58px;
  box-sizing: border-box;
}

.estimate-section .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 9px;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

@media (max-width: 760px) {
  .estimate-section {
    padding: 24px 0 76px;
  }

  .estimate-section .form-head,
  .estimate-section .form-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .estimate-section .form-head h2 {
    font-size: 26px;
  }

  .estimate-section .form-grid {
    grid-template-columns: 1fr;
  }

  .estimate-section .field.full {
    grid-column: auto;
  }

  .estimate-section .textarea {
    min-height: 390px;
  }

  .estimate-section .security-grid {
    grid-template-columns: 1fr;
  }

  .estimate-section .captcha-box {
    align-items: flex-start;
  }

  .estimate-section .captcha-image {
    width: 122px;
  }

  .estimate-section .form-actions {
    flex-direction: column-reverse;
  }

  .estimate-section .form-actions .btn {
    width: 100%;
  }

  /* 이메일·연락처: 모바일에서도 한 줄 (칸 축소·간격 조정) */
  .estimate-section .field .inline-input-row.email-row,
  .estimate-section .field .inline-input-row.phone-row {
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
  }

  .estimate-section .field .inline-input-row > .input,
  .estimate-section .field .inline-input-row > .select {
    height: 48px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
  }

  .estimate-section .field .inline-input-row.email-row > .email-id,
  .estimate-section .field .inline-input-row.email-row > .email-domain {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .estimate-section .field .inline-input-row.email-row > .email-at {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 0 1px;
  }

  .estimate-section .field .inline-input-row.email-row > .email-domain-select {
    flex: 0 1 30%;
    min-width: 72px;
    max-width: 112px;
    width: auto;
    padding-right: 28px;
    font-size: 13px;
  }

  .estimate-section .field .inline-input-row.phone-row > .phone-prefix {
    flex: 0 0 72px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .estimate-section .field .inline-input-row.phone-row > .phone-part {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-left: 8px;
    padding-right: 8px;
  }

  .estimate-section .field .inline-input-row.phone-row > .inline-sep {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 0;
  }

  .estimate-complete-section {
    padding: 24px 0 76px;
  }

  .estimate-complete-section .estimate-complete-card {
    padding: 36px 24px;
  }

  .estimate-complete-section .estimate-complete-actions {
    flex-direction: column;
  }

  .estimate-complete-section .estimate-complete-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .estimate-section .field .inline-input-row.email-row,
  .estimate-section .field .inline-input-row.phone-row {
    gap: 4px;
  }

  .estimate-section .field .inline-input-row > .input,
  .estimate-section .field .inline-input-row > .select {
    height: 46px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }

  .estimate-section .field .inline-input-row.email-row > .email-domain-select {
    flex: 0 1 28%;
    min-width: 64px;
    max-width: 96px;
    font-size: 12px;
    padding-right: 24px;
  }

  .estimate-section .field .inline-input-row.phone-row > .phone-prefix {
    flex: 0 0 64px;
  }

  .estimate-section .field .inline-input-row.phone-row > .inline-sep {
    font-size: 12px;
  }
}
