/* contact.css */

/* ==========================================================================
   Intro Banner - ir-banner.css (공통)
   ========================================================================== */

/* ==========================================================================
   Contents Section (Direct Contacts + General Inquiries)
   ========================================================================== */

.contact-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 9.375rem clamp(1.25rem, calc((100vw - 80rem) / 2), 20rem) 15.625rem;
  background-color: #ffffff;
  box-sizing: border-box;
  gap: 12.5rem; /* 200px */
}

/* ==========================================================================
   Direct Contacts
   ========================================================================== */

.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
  width: 100%;
}

.direct-contacts__title {
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 1.3;
  letter-spacing: -0.05rem; /* -0.8px */
  color: var(--logogreen);
  margin: 0;
}

/* Cards Container */
.direct-contacts__cards {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 1.25rem 0; /* 20px top/bottom */
  gap: 5rem; /* 80px */
}

/* Individual Card */
.direct-contacts__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.direct-contacts__card-info {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.direct-contacts__card-title {
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: 2.125rem; /* 34px */
  line-height: 1.3;
  color: var(--darkgreen);
  margin: 0;
}

.direct-contacts__card-desc {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
  margin: 0;
}

/* Contact Rows */
.direct-contacts__row {
  display: flex;
  align-items: center;
  gap: 1rem; /* 16px */
}

.direct-contacts__rows {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.direct-contacts__icon {
  width: 1.5rem; /* 24px */
  height: 1.5rem; /* 24px */
  flex-shrink: 0;
}

.direct-contacts__link {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
  text-decoration: none;
}

.direct-contacts__link:hover {
  color: var(--logogreen);
}

.direct-contacts__text {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
}

/* Divider */
.direct-contacts__divider {
  width: 1px;
  align-self: stretch;
  background-color: #e0e0e0;
  flex-shrink: 0;
}

/* ==========================================================================
   General Inquiries
   ========================================================================== */

.general-inquiries {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* 48px */
  width: 100%;
}

/* Left Column: Info */
.general-inquiries__info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
  width: 100%;
}

.general-inquiries__info-header {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.general-inquiries__title {
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 1.3;
  letter-spacing: -0.05rem; /* -0.8px */
  color: var(--logogreen);
  margin: 0;
}

.general-inquiries__desc {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
  margin: 0;
}

.general-inquiries__details {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

.general-inquiries__row {
  display: flex;
  align-items: center;
  gap: 1rem; /* 16px */
}

.general-inquiries__row--top {
  align-items: flex-start;
}

.general-inquiries__icon {
  width: 1.5rem; /* 24px */
  height: 1.5rem; /* 24px */
  flex-shrink: 0;
}

.general-inquiries__link {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
  text-decoration: none;
}

.general-inquiries__link:hover {
  color: var(--logogreen);
}

.general-inquiries__text {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
}

.general-inquiries__address {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  letter-spacing: -0.025rem; /* -0.4px */
  color: #273c35;
  font-style: normal;
}

/* Form */
.general-inquiries__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 24px */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}

.form-label {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.5;
  color: #273c35;
}

.form-input {
  height: 3rem; /* 48px */
  padding: 0.8125rem 1rem; /* 13px 16px */
  border: 1px solid #111113;
  border-radius: 0.25rem; /* 4px */
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 1rem; /* 16px */
  line-height: 1.4;
  color: #111113;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(17, 17, 18, 0.6);
}

.form-input:focus {
  border-color: #111113;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.2);
}

.form-input:focus::placeholder {
  color: rgba(17, 17, 18, 0.2);
}

.form-textarea {
  height: 9.375rem; /* 150px */
  padding: 0.8125rem 1rem; /* 13px 16px */
  border: 1px solid #111113;
  border-radius: 0.25rem; /* 4px */
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 1rem; /* 16px */
  line-height: 1.4;
  color: #111113;
  background-color: #ffffff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  border-color: #111113;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.2);
}

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

.form-checkbox {
  width: 1.125rem; /* 18px */
  height: 1.125rem; /* 18px */
  border: 1px solid #273c35;
  background-color: #ffffff;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox:checked {
  background-color: var(--logogreen);
  border-color: var(--logogreen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 0.875rem;
  background-position: center;
  background-repeat: no-repeat;
}

.form-checkbox-label {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.5;
  color: #273c35;
}

/* Submit Button */
.form-submit-btn {
  width: 100%;
  height: 3.375rem; /* 54px */
  padding: 0.75rem 1.5rem; /* 12px 24px */
  background-color: var(--logogreen);
  border: none;
  cursor: pointer;
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  line-height: normal;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.form-submit-btn:hover {
  background-color: #004d33;
}

/* ==========================================================================
   Responsive - Tablet (max-width: 1199px)
   ========================================================================== */

@media (max-width: 1199px) {
  .contact-contents {
    padding: 6rem 5% 8rem;
    gap: 6rem;
  }

  .direct-contacts__cards {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .direct-contacts__card {
    flex: none;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .direct-contacts__card:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }

  .direct-contacts__divider {
    display: none;
  }

  .direct-contacts__title {
    font-size: 2rem;
  }

  .direct-contacts__card-title {
    font-size: 1.75rem;
  }

  .general-inquiries__title {
    font-size: 2rem;
  }

  .general-inquiries__desc {
    font-size: 1.125rem;
  }

  .general-inquiries__link,
  .general-inquiries__text,
  .general-inquiries__address {
    font-size: 1.125rem;
  }

}

/* ==========================================================================
   Responsive - Mobile (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
  .contact-contents {
    padding: 4rem 5% 5rem;
    gap: 4rem;
  }

  .direct-contacts__cards {
    gap: 1.5rem;
  }

  .direct-contacts__card {
    padding-bottom: 1.5rem;
  }

  .direct-contacts__title {
    font-size: 1.75rem;
  }

  .direct-contacts__card-title {
    font-size: 1.5rem;
  }

  .direct-contacts__card-desc,
  .direct-contacts__link,
  .direct-contacts__text {
    font-size: 1rem;
  }

  .general-inquiries__info {
    gap: 2rem;
  }

  .general-inquiries__title {
    font-size: 1.75rem;
  }

  .general-inquiries__desc {
    font-size: 1rem;
  }

  .general-inquiries__link,
  .general-inquiries__text,
  .general-inquiries__address {
    font-size: 1rem;
  }

  .general-inquiries__icon,
  .direct-contacts__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .form-label {
    font-size: 1rem;
  }

  .form-input,
  .form-textarea {
    min-height: 2.75rem;
  }

  .form-submit-btn {
    min-height: 2.75rem;
    font-size: 1.125rem;
  }

  .form-checkbox-label {
    font-size: 0.875rem;
  }
}
