@use "../base/variable" as *;
@use "../base/mixin" as *;

// Contact
// 이 섹션만 Figma 디자인이 라이트 테마(흰 배경/검은 텍스트)임 — 다른 섹션과 색상 반전
.contact {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 48px 64px;
}

.contact__heading {
  font-family: $기본글꼴;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0d0d0d;
  line-height: 1;
}

.contact__desc {
  margin-top: 20px;
  margin-bottom: 48px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(13, 13, 13, 0.6);
}

.contact__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.5);
  margin-bottom: 20px;
}

.contact__infoList {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact__infoItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__infoLabel {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7796ff;
}

.contact__infoValue {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(13, 13, 13, 0.85);
}

.contact__infoLink {
  color: inherit;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.7;
  }
}

// Contact accordion
.contactAccordion {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.contactAccordion__item {
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.contactAccordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 48px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  cursor: pointer;
  color: #0d0d0d;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  font-family: $기본글꼴;
  text-align: left;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.7;
  }
}

.contactAccordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  object-fit: unset;
  filter: invert(1);
}

.contactAccordion__item.isOpen .contactAccordion__icon {
  transform: rotate(180deg);
}

.contactAccordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;

  &:not([hidden]) {
    max-height: 800px;
  }

  &[hidden] {
    display: block !important;
    max-height: 0;
  }
}

// 문의 폼
.contactForm {
  padding: 8px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contactForm__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contactForm__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contactForm__input,
.contactForm__textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.2);
  color: #0d0d0d;
  font-family: $기본글꼴;
  font-size: 14px;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;

  &::placeholder {
    color: rgba(13, 13, 13, 0.35);
  }
  &:focus {
    border-color: rgba(13, 13, 13, 0.4);
  }
}

.contactForm__textarea {
  resize: none;
  min-height: 180px;
  height: 100%;
}

.contactForm__agree {
  margin-top: 4px;
}

.contactForm__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 300;
  color: rgba(13, 13, 13, 0.6);
}

.contactForm__checkboxInput {
  display: none;
}

.contactForm__checkboxInput:checked + .contactForm__checkboxBox {
  background: #7796ff;
  border-color: #7796ff;
}

.contactForm__checkboxInput:checked + .contactForm__checkboxBox::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: rotate(-45deg) translateY(-2px);
}

.contactForm__checkboxBox {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(13, 13, 13, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.contactForm__submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btnSend {
  padding: 12px 48px;
  background: #7796ff;
  border: none;
  border-radius: 100px;
  color: #ffffff;
  font-family: $기본글꼴;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.8;
  }
}

// 채용 태그
.careerTags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 48px 48px;
}

.careerTag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(13, 13, 13, 0.25);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 300;
  color: #0d0d0d;
  transition:
    border-color 0.2s,
    color 0.2s;

  &:hover {
    border-color: #7796ff;
    color: #7796ff;
  }
}

.careerTag__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

// Footer
.footer {
  background: #0d0d0d;
  padding: 32px 48px;
}

.footer__inner {
  display: flex;
  align-items: center;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer__contact {
  font-size: 13px;
  // font-weight: 300;
  color: #fff;
}

.footer__contactLabel {
  font-weight: 700;
}

.footer__contactLink {
  color: #fff;
  transition: color 0.2s;

  &:hover {
    color: #0d0d0d;
  }
}

.footer__copy {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.03em;
}

@include mo {
  .contact__inner {
    padding: 60px 24px 40px;
  }

  .contact__desc {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .contact__infoList {
    flex-direction: column;
    gap: 24px;
  }

  .contactAccordion__header {
    padding: 22px 24px;
  }

  .contactForm {
    padding: 8px 24px 40px;
  }

  .contactForm__cols {
    grid-template-columns: 1fr;
  }

  .contactForm__textarea {
    height: auto;
  }

  .careerTags {
    padding: 8px 24px 40px;
  }

  .footer {
    padding: 24px 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__contact {
    font-size: 12px;
  }
}
