/* Contact Us page — extends styles.css + company.css variables */

/* ——— Banner / Page Head ——— */
.contact-page-head {
  position: relative;
  background: #0d0d1a;
  border-bottom: none;
  overflow: hidden;
}

.contact-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../contact/contact-banner-bg.png") center/cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.contact-head-inner {
  max-width: 1440px;
  padding-bottom: 90px;
}

.contact-page-head .company-crumb {
  color: rgba(255, 255, 255, 0.7);
}

.contact-page-head .company-crumb .crumb-current {
  color: #fff;
}

.contact-page-head .company-crumb .crumb-home {
  filter: brightness(0) invert(1);
}

.contact-page-head .company-crumb .crumb-sep {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.contact-page-title {
  color: #fff;
}

/* ——— Contact Form Section ——— */
.contact-form-section {
  padding: 120px 0;
}

.contact-form-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 240px;
  display: flex;
  gap: 80px;
}

.contact-form-left {
  flex-shrink: 0;
  width: 360px;
  padding-top: 8px;
}

.contact-form-eyebrow {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin: 0 0 16px;
}

.contact-form-title {
  font-size: 56px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  letter-spacing: -1.68px;
  margin: 0 0 24px;
  word-break: keep-all;
}

.contact-form-desc {
  font-size: 24px;
  font-weight: 300;
  color: #505050;
  letter-spacing: -0.72px;
  line-height: 1.7;
  margin: 0;
}

.contact-form-right {
  flex: 1;
  max-width: 755px;
  min-width: 0;
}

.contact-form-required-notice {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 32px;
  text-align: right;
}

/* ——— Form ——— */
.contact-form .form-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-form .form-label {
  flex-shrink: 0;
  width: 103px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  padding-top: 18px;
  line-height: 1.5;
}

.contact-form .form-label .required {
  color: #107af2;
  margin-left: 2px;
}

.contact-form .form-fields {
  flex: 1;
  display: flex;
  gap: 48px;
}

.contact-form .form-input {
  flex: 1;
  width: 100%;
  max-width: 632px;
  height: 60px;
  background: #edeff4;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 18px;
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  color: #222;
  outline: none;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s;
}

.contact-form .form-input::placeholder {
  color: #b2b2b2;
}

.contact-form .form-input:focus {
  background: #fff;
  border: 1.5px solid #0667d5;
}

/* 2-column row (성함/직책) */
.contact-form .form-group-row {
  flex-wrap: wrap;
}

.contact-form .form-group-row .form-group-half {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.contact-form .form-group-row .form-group-half:first-child {
  margin-right: 28px;
}

.contact-form .form-group-row .form-group-half .form-label {
  width: 103px;
}

.contact-form .form-group-row .form-group-half .form-input {
  flex: 1;
  max-width: 300px;
}

/* ——— Radio ——— */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
  padding: 18px 0;
  flex: 1;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  letter-spacing: -0.36px;
  color: #222;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.form-radio input[type="radio"]:checked {
  border-color: #107af2;
}

.form-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #107af2;
}

/* ——— Textarea ——— */
.form-textarea-wrap {
  flex: 1;
  position: relative;
}

.form-textarea {
  width: 100%;
  background: #edeff4;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  color: #222;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  min-height: 254px;
  transition: background 0.2s, border-color 0.2s;
}

.form-textarea::placeholder {
  color: #b2b2b2;
}

.form-textarea:focus {
  background: #fff;
  border: 1.5px solid #0667d5;
}

.form-textarea-count {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 14px;
  color: #9ca3af;
}

/* ——— File upload ——— */
.form-file-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  background: #edeff4;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px 0 20px;
  gap: 16px;
  box-sizing: border-box;
}

.form-file-text {
  font-size: 16px;
  color: #b2b2b2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-file-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #107af2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-file-btn:hover {
  background: #0667d5;
}

.form-file-btn .upload-icon {
  width: 16px;
  height: 16px;
}

/* ——— Captcha ——— */
.form-captcha {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.captcha-code {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.captcha-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #107af2;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  border-radius: 8px;
  user-select: none;
}

.captcha-input {
  max-width: 320px;
}

/* ——— Checkbox + Submit ——— */
.form-group-submit {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #222;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background: #107af2;
  border-color: #107af2;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text .required {
  color: #107af2;
  margin-left: 2px;
}

.privacy-link {
  color: #107af2;
  text-decoration: underline;
  font-weight: 600;
}

.form-submit-btn {
  width: 200px;
  height: 50px;
  background: #e5e7eb;
  color: #9ca3af;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit-btn:hover {
  background: #107af2;
  color: #fff;
}

/* ==============================
   Contact Complete Page
   ============================== */
.contact-complete-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 132px 40px;
  min-height: calc(100vh - 200px);
}

.contact-complete-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
}

.contact-complete-icon img {
  width: 100%;
  height: 100%;
}

.contact-complete-title {
  font-size: 51px;
  font-weight: 600;
  color: #000;
  letter-spacing: -1.53px;
  margin: 0 0 20px;
  text-align: center;
}

.contact-complete-desc {
  font-size: 20px;
  color: #505050;
  letter-spacing: -0.4px;
  line-height: 1.7;
  text-align: center;
  margin: 0 0 48px;
}

.contact-complete-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 34px;
  width: 782px;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.contact-complete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}

.contact-complete-grid-item .item-label {
  font-size: 15px;
  color: #767676;
  margin: 0 0 6px;
}

.contact-complete-grid-item .item-value {
  font-size: 18px;
  color: #505050;
  font-weight: 600;
  margin: 0;
}

.contact-complete-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: 15px;
  color: #505050;
}

.contact-complete-alert img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-complete-buttons {
  display: flex;
  gap: 16px;
}

.contact-complete-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 56px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-sizing: border-box;
}

.contact-complete-buttons .btn:hover {
  opacity: 0.85;
}

.btn-outline {
  background: #f9fafb;
  border: 1px solid #0667d5;
  color: #0661d9;
}

.btn-primary {
  background: #0667d5;
  border: none;
  color: #fff;
}

/* ——— Overlay / Disabled ——— */
.contact-form .form-input:disabled,
.contact-form .form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-form .form-radio input:disabled,
.contact-form .form-checkbox input:disabled {
  cursor: not-allowed;
}

.contact-form .form-radio input:disabled + *,
.contact-form .form-radio:has(input:disabled) {
  opacity: 0.5;
  pointer-events: none;
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.contact-overlay.is-hidden {
  display: none;
}

.contact-overlay-popup {
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px 36px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  min-width: 320px;
}

.contact-overlay-msg {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin: 0 0 32px;
  letter-spacing: -0.44px;
}

.contact-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 48px;
  background: #107af2;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-overlay-close:hover {
  background: #0667d5;
}

/* ——— Responsive ——— */
@media (max-width: 1440px) {
  .contact-form-inner {
    padding: 0 clamp(40px, 8vw, 240px);
  }
}

@media (max-width: 1024px) {
  .contact-form-inner {
    flex-direction: column;
    gap: 48px;
    padding: 0 clamp(20px, 5vw, 40px);
  }

  .contact-form-left {
    width: 100%;
  }

  .contact-form-title {
    font-size: 32px;
  }

  .contact-form-desc {
    font-size: 18px;
  }

  .contact-form-section {
    padding: 60px 0;
  }

  .contact-form .form-group {
    flex-direction: column;
    gap: 8px;
  }

  .contact-form .form-label {
    width: 100%;
    padding-top: 0;
  }

  .contact-form .form-input {
    width: 100%;
    max-width: 100%;
  }

  .contact-form .form-group-row .form-group-half {
    flex-direction: column;
    gap: 8px;
  }

  .contact-form .form-group-row .form-group-half:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .contact-form .form-group-row .form-group-half .form-label {
    width: 100%;
  }

  .contact-form .form-group-row .form-group-half .form-input {
    max-width: 100%;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .form-captcha {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha-input {
    max-width: 100%;
    width: 100%;
  }

  .form-file-wrap {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px;
    gap: 12px;
  }

  .contact-head-inner {
    padding-bottom: 60px;
  }

  .contact-complete-section {
    padding: 80px 20px;
  }

  .contact-complete-title {
    font-size: 32px;
  }

  .contact-complete-card {
    width: 100%;
  }

  .contact-complete-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-complete-buttons {
    flex-direction: column;
    width: 100%;
  }

  .contact-complete-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-form-title {
    font-size: 26px;
  }

  .captcha-digit {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .form-group-submit {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-submit-btn {
    width: 100%;
  }

  .contact-complete-grid {
    grid-template-columns: 1fr;
  }

  .contact-complete-title {
    font-size: 26px;
  }
}
