/* =================================
 * 상담문의 페이지 스타일 (pages/contact.css)
 * ================================= */

.section-header h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* --- 상담 폼 섹션 --- */
.contact-form-section {
  background: linear-gradient(
      0deg,
      rgba(201, 220, 255, 0.24) 0%,
      rgba(201, 220, 255, 0.24) 100%
    ),
    #fff;
}
.contact-form-section .section-container {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.contact-form-section .section-header {
  width: 28%;
}
.contact-form-section .section-header h2,
.contact-form-section .section-header h3,
.contact-form-section .section-header p {
  text-align: left;
}

.contact-info .section-container {
  padding: 180px 20px 240px 20px;
}

.contact-info-wrapper {
  display: flex;
  gap: 17px;
  margin-top: 100px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.contact-info-maps {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
  margin-top: 100px;
}

.contact-info-content {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.contact-info-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 36px;
  margin-top: 100px;
}
.contact-info-item img {
  width: fit-content;
}

.item-content h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
}

.item-contact-list {
  padding: 0;
  margin: 0;
}
.item-contact-list li {
  color: #404040;
  font-size: 18px;
  font-weight: 300;
  padding-left: 32px;
  list-style: none;
  position: relative;
  margin-bottom: 16px;
  text-align: left;
}

.item-contact-list li::before {
  content: "";
  position: absolute;
  background: var(--color-primary);
  display: flex;
  width: 4px;
  height: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.item-contact-list li:last-child {
  margin-bottom: 0;
}

.separator-line {
  width: 1px;
  height: 494px;
  background: #f1f4ff;
}

.item-map {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.item-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-map-title span {
  font-size: 18px;
  height: 25px;
  line-height: 25px;
}

.item-map-list {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-map-list a {
  display: flex;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: var(--border-radius-lg, 8px);
  background: rgba(241, 244, 255, 0.5);
}

/* --- 5. 상담 폼 --- */
#contact-form {
  margin: 0;
  display: flex;
  padding: 36px 48px;
  align-items: center;
  flex: 1 0 0;
  border-radius: 16px;
  background: #fff;
  flex-direction: column;
  max-width: 45%;
}
.form-wrapper {
  width: 100%;
}

.form-group {
  position: relative;
  display: flex;
  padding: 16px 50px 16px 24px;
  align-items: baseline;
  gap: 8px;
  align-self: stretch;
  border-top: 1px solid #f5f5f5;
}
.form-group.textarea-group {
  padding: 16px 24px;
}
.form-group:first-child {
  border-top: none;
}
.form-group label {
  min-width: 150px;
  width: 150px;
  margin: 0;
  color: #171717;
  font-weight: 400;
  font-size: 18px;
  text-align: left;
}
.form-group input,
.form-group select,
.form-group textarea {
  color: #404040;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: -0.2px;
  border: none;
  width: 100%;
  font-size: 1rem;

  border: none;
  outline: none;
  font-family: Pretendard;
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #a3a3a3;
}
.form-group textarea {
  resize: none;
  max-height: 400px;
}

.form-group-select {
  flex-direction: column;
}
.form-group-select-wrapper {
  width: 100%;
  display: flex;
  align-items: baseline;
}
.form-group-select-alert {
  width: calc(100% - 153px);
  padding-left: 153px;
  display: none;
}

.form-group-select-alert.show {
  display: block;
}

.form-group-alert {
  position: absolute;
  right: 24px;
  top: 20px;
  display: none;
}

.form-group-alert.show {
  display: block;
}

.checkbox-group-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-alert {
  position: static;
  transform: none;
}

.form-checkbox {
  margin: 36px 0 24px 0;
  width: 100%;
}
.checkbox-group {
  display: flex;
  justify-content: space-between;
  padding: 16px 14px 16px 24px;
}
.checkbox-group img {
  padding: 0px 10px;
  cursor: pointer;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.chevron-icon {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-checkbox label span {
  color: #222222;
  font-size: 14px;

  gap: 8px;
  cursor: pointer;
  color: #171717;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 4px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  position: relative;
  transition: all 0.2s ease;
  padding: 2px;
  box-sizing: border-box;
  background-color: #fff;
}

.form-checkbox input[type="checkbox"]:checked {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  background-clip: content-box;
}
.form-checkbox p {
  display: flex;
  padding: 16px 24px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  color: #525252;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  border-top: 1px solid #f5f5f5;

  opacity: 0;
  padding: 0;
}

.form-group-select-wrapper {
  gap: 8px;
}

.privacy-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
    padding 0.3s ease-out;
  padding: 0 24px;
}

.privacy-details.open {
  max-height: max-content;
  opacity: 1;
  padding: 16px 24px;
}
.form-buttons {
  width: 100%;
  position: relative;
}
.btn-submit {
  display: flex;
  padding: 12px 32px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 18px;
  width: 100%;
  border: none;

  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.2px;
}
.btn-submit:hover {
  background: #02063a;
  cursor: pointer;
}

.toast-message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  bottom: 48px;
  display: flex;
  max-width: 800px;
  width: 65%;
  padding: 16px 36px;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02), 0 0 8px 0 rgba(0, 0, 0, 0.02);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out,
    visibility 0.3s ease-out;
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-message-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #171717;
  font-size: 18px;
  font-weight: 400;
}

.toast-message-close {
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

.toast-message-close:hover {
  opacity: 0.7;
}

/* --- 4. 상단 안내 박스 --- */
.info-box {
  background-color: #f4f8ff;
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 40px;
}
.info-box h4 {
  font-size: 1.2rem;
  margin: 0 0 16px 0;
}
.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-box li {
  color: #555;
  margin-bottom: 8px;
  position: relative;
  padding-left: 1.2em;
}
.info-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
}

/* --- 6. 하단 경고 박스 --- */
.warning-box {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
.warning-box p {
  margin: 0;
  font-size: 0.9rem;
  color: #713f12;
}

/* --- 8. 연락처 정보 (다크) --- */
.contact-info-section {
  background-color: #0d2856;
  color: #fff;
  padding: 80px 0;
}
.contact-info-section .container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
}
.contact-info-box {
  background-color: #1a3b70;
  border-radius: 12px;
  padding: 30px 40px;
  flex: 1;
  text-align: center;
}
.contact-info-box .icon-placeholder {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px auto;
  background-color: #33548a;
  border: 1px dashed #5b79a9;
  border-radius: 50%;
}
.contact-info-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.contact-info-box p {
  color: #eee;
  font-size: 1rem;
  margin: 0;
}
.toast-message-confirm {
  display: none;
}
.toast-message-block {
  display: none;
}

@media (max-width: 1024px) {
  .contact-form-section .section-header {
    width: 40%;
  }
}

/* --- 9. 반응형 (모바일) --- */
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-section .container {
    flex-direction: column;
  }
  .form-buttons {
    flex-direction: column;
  }

  .contact-form-section .section-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-form-section .section-header {
    width: 100%;
  }

  .contact-form-section .section-header h2,
  .contact-form-section .section-header h3,
  .contact-form-section .section-header p {
    text-align: center;
  }
  .section-header h2 {
    margin-top: 8px;
  }

  #contact-form {
    max-width: 100%;
    margin-top: 40px;
    padding: 16px 24px;
  }
  .form-group {
    padding: 16px;
  }
  .form-group label {
    width: 110px;
    min-width: 110px;
    font-size: 14px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
  }

  .checkbox-group {
    padding: 16px;
  }

  .form-checkbox label span {
    font-size: 14px;
  }

  .contact-info .section-container {
    padding: 80px 16px 120px 16px;
  }

  .item-contact-list li::before {
    left: 8px;
  }

  .contact-info-item {
    margin-top: 24px;
    gap: 24px;
    padding: 0 8px;
  }
  .contact-info-item img.info-item-icon {
    width: 60px;
    height: 60px;
  }

  .item-content h3 {
    margin-bottom: 16px;
    font-size: 16px;
  }
  .item-contact-list li {
    font-size: 14px;
    padding-left: 20px;
  }

  .location-icon {
    width: 20px;
    height: 20px;
  }

  .item-map-title {
    gap: 4px;
  }
  .item-map-title span {
    font-size: 16px;
  }
  .item-map-list {
    gap: 8px;
  }
  .item-map-list a {
    font-size: 14px;
    padding: 12px;
  }
  .contact-info-item img {
    width: 24px;
    height: 24px;
  }

  .separator-line {
    height: 1px;
    width: 100%;
    margin: 40px 0;
  }

  .contact-info-wrapper {
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
  }
  .contact-info-content {
    width: 100%;
  }

  iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .toast-message {
    display: flex;
    width: 328px;
    padding: 24px 24px 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    height: max-content;
  }
  .toast-message .toast-message-content img {
    display: none;
  }
  .toast-message-icon,
  .toast-message-close {
    display: none;
  }
  .toast-message-confirm {
    display: block;
    width: 100%;
  }
  .toast-message-block.show {
    display: block;
    width: 100%;
    height: 100vh;
    background-color: #0000001a;
    position: fixed;
    top: 0;
    left: 0;
  }

  .form-group-select-alert.show {
    width: calc(100% - 125px);
    padding-left: 120px;
  }
}
