/* ==============================
   contact.css — 문의하기 페이지
   ============================== */

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  background: #F5F7FA;
  padding: 96px 80px;
}
.contact-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

/* ---------- LEFT: Company Info ---------- */
.contact-info-panel {
  background: #0A1F44;
  border-radius: 12px;
  padding: 48px;
  color: #fff;
}
.contact-info-panel .info-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #4A8BFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-info-panel h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.contact-info-panel .info-subtitle {
  font-size: 15px;
  color: #C8D2E4;
  line-height: 1.7;
  margin: 0 0 36px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-label {
  font-size: 12px;
  color: #8E9BB5;
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- RIGHT: Form ---------- */
.contact-form {
  background: #fff;
  border: 1px solid #E1E6EE;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 8px 24px rgba(10,31,68,0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group-last {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0A1F44;
  margin-bottom: 8px;
}
.form-label .required {
  color: #1E5EFF;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid #E1E6EE;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #0A1F44;
  outline: none;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-input,
.form-select {
  height: 48px;
}
.form-select {
  background: #fff;
  appearance: auto;
}
.form-textarea {
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #C8D2E4;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #1E5EFF;
  box-shadow: 0 0 0 4px rgba(30,94,255,0.15);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
  background: #FEF2F2;
  box-shadow: none;
}
.form-helper {
  display: none;
  font-size: 13px;
  color: #EF4444;
  margin-top: 6px;
}
.form-helper.show {
  display: block;
}

/* ---------- Checkbox / Agree ---------- */
.agree-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  cursor: pointer;
}
.agree-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1E5EFF;
  cursor: pointer;
}
.agree-label span {
  font-size: 14px;
  color: #4A5468;
}
.agree-label .agree-required {
  color: #1E5EFF;
  font-weight: 600;
}
.agree-label .agree-detail {
  color: #6B7585;
  text-decoration: underline;
}
.agree-helper {
  display: none;
  font-size: 13px;
  color: #EF4444;
  margin: -20px 0 24px;
}
.agree-helper.show {
  display: block;
}

/* ---------- Submit Button ---------- */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 40px;
  background: #1E5EFF;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30,94,255,0.28);
  transition: background .2s ease;
}
.btn-submit:hover {
  background: #1750D9;
}

/* ---------- Toast ---------- */
.contact-toast {
  position: fixed;
  top: 96px;
  right: 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0A1F44;
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10,31,68,0.25);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.contact-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.contact-toast .toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1E5EFF;
}
.contact-toast .toast-text {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.reveal-contact {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal-contact.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .contact-section {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (max-width: 1279px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .contact-section {
    padding: 56px 20px;
  }
  .contact-info-panel {
    padding: 28px;
  }
  .contact-info-value {
    font-size: 14px;
  }
  .contact-form {
    padding: 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .btn-submit {
    width: 100%;
  }
  .contact-toast {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    transform: translateY(24px);
  }
  .contact-toast.show {
    transform: translateY(0);
  }
}
