/* =====================================================================
   도입문의 폼
===================================================================== */
.contact-page {
  display: flex;
  justify-content: center;
  padding: 64px 24px 120px;
}

.contact-wrap {
  width: 100%;
  max-width: 640px;
}

.contact-head {
  text-align: center;
  margin-bottom: 44px;
}
.contact-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.contact-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}
.contact-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.req {
  color: #e5484d;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #b3b3b3;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #e5484d;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.choice-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.choice-btn.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.privacy-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--black);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.alert-modal-message.is-success {
  color: var(--blue);
}
.alert-modal-message.is-error {
  color: #e5484d;
}

.form-submit-btn {
  width: 100%;
  height: 58px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 165, 144, 0.3);
}
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-urgent {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}
.contact-urgent a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.contact-urgent a:hover {
  text-decoration: underline;
}

/* ── 개인정보 처리방침 모달 ── */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.privacy-modal.is-open {
  display: flex;
}
.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.5);
}
.privacy-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
}
.privacy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.privacy-modal-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}
.privacy-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: var(--black);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.privacy-modal-close:hover {
  background: #e5e5e5;
}
.privacy-modal-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
}
.privacy-modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.privacy-modal-body h3:first-child {
  margin-top: 0;
}
.privacy-modal-body p {
  margin-bottom: 4px;
}

/* ── 필수 입력 안내 알럿 모달 ── */
.alert-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.alert-modal.is-open {
  display: flex;
}
.alert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.5);
}
.alert-modal-panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-align: center;
}
.alert-modal-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 24px;
}
.alert-modal-confirm {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.alert-modal-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 165, 144, 0.3);
}

@media (max-width: 640px) {
  .contact-page { padding: 48px 20px 96px; }
  .contact-form { gap: 24px; }
  .privacy-modal-panel { padding: 24px; }
}
