/* contact.css
 * 문의하기 페이지 전용 스타일
 */

.contact-main {
  padding: 56px 20px 72px;
}

.contact-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e8edff;
  box-shadow: 0 16px 36px rgba(24, 39, 75, 0.1);
  padding: 30px 28px;
}

.contact-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #22366f;
}

.contact-summary {
  margin-top: 12px;
  color: #4d597f;
  line-height: 1.85;
}

.contact-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

/* Netlify honeypot: 사용자에게 보이지 않게 숨김 */
.contact-netlify-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-row {
  margin: 0;
  display: grid;
  gap: 8px;
}

.contact-form-row--submit {
  margin-top: 4px;
}

.contact-inline-label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2e3f78;
}

.contact-inline-label--stack {
  margin-bottom: -4px;
}

.contact-form-row input,
.contact-form-row textarea,
.contact-form-row select {
  width: 100%;
  border: 1px solid #d8e1ff;
  border-radius: 12px;
  background: #fbfcff;
  color: #2b355d;
  font-size: 15px;
  line-height: 1.6;
  padding: 12px 14px;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus,
.contact-form-row select:focus {
  border-color: #8aa3ff;
  outline: 2px solid #d9e3ff;
  outline-offset: 1px;
}

.contact-form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5c6cab 50%),
    linear-gradient(135deg, #5c6cab 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.contact-form-row--consent {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e4e9fb;
  background: #f7f9ff;
}

.contact-consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-form-row--consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #3d5ccc;
}

.label-required {
  color: #cc334f;
  font-weight: 800;
}

.label-optional {
  font-weight: 600;
  font-size: 13px;
  color: #6b7394;
}

.contact-summary a {
  color: #3d5ccc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-summary a:hover {
  color: #22366f;
}

.form-consent-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: #3a4570;
}

.form-consent-label .label-required {
  margin-left: 2px;
}

.form-consent-label a {
  color: #3d5ccc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-submit {
  width: 100%;
  margin-top: 4px;
}

.contact-feedback {
  min-height: 24px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
}

.contact-feedback.is-error {
  color: #cc334f;
}

.contact-feedback.is-success {
  color: #2b7a37;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 39, 75, 0.45);
}

.contact-modal-dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 18vh auto 0;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e8edff;
  box-shadow: 0 24px 48px rgba(24, 39, 75, 0.18);
}

.contact-modal-title {
  margin: 0;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  color: #22366f;
}

.contact-modal-desc {
  margin: 14px 0 0;
  color: #4d597f;
  line-height: 1.75;
  font-size: 15px;
}

.contact-modal-close {
  margin-top: 0;
  width: 100%;
}

.contact-modal-actions {
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.contact-modal-secondary {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #3d5ccc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-modal-secondary:hover {
  color: #22366f;
}

.contact-thanks-wrap .contact-summary {
  margin-top: 16px;
}

.contact-thanks-actions {
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.contact-thanks-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-thanks-link {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #3d5ccc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-thanks-link:hover {
  color: #22366f;
}

@media (max-width: 768px) {
  .contact-main {
    padding: 34px 14px 52px;
  }

  .contact-wrap {
    border-radius: 14px;
    padding: 22px 16px;
  }
}
