.contact-page {
  background: #fff;
  padding-top: 90px;
  color: #222
}

.contact-section {
  min-height: 1150px;
  padding: 60px max(calc((100vw - 1520px)/2), 5vw) 150px
}

.contact-section h1 {
  margin: 0 0 50px;
  font: 600 50px/60px "Noto Sans KR", sans-serif;
  text-align: center;
}

.contact-form {
  width: min(1425px, 100%);
  margin: 0 auto
}

.required-note {
  height: 67px;
  margin: 0;
  padding: 24px 20px;
  text-align: right;
  font-size: 16px;
  line-height: 19px;
  display: flex;
    justify-content: end;
    align-items: center;
    gap: 5px;

}

.required-note span,
.contact-row>label span,
.contact-row>legend span {
  color: #F00;
  width: 7.66px;
  height: 7.8px;
}

.contact-fields {
  border-top: 1px solid #222
}

.contact-row {
  min-height: 59px;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  padding: 0
}

.contact-row>label,
.contact-row>legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  margin: 0;
  padding: 20px;
  border: 0;
  background: #f9f9f9;
  font: 600 16px/19px "Noto Sans KR", sans-serif;
  color: #222;
  white-space: nowrap
}

.contact-control {
  display: flex;
  align-items: center;
  padding: 9px 20px
}

.contact-control input[type=text],
.contact-control input[type=email],
.contact-control input[type=tel] {
  width: 300px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: #fff;
  font: 400 16px/1.4 "Noto Sans KR", sans-serif;
  outline: none
}

.contact-control input:focus,
.contact-control textarea:focus {
  border-color: #222;
  box-shadow: 0 0 0 1px #222
}

.inquiry-row {
  height: 59px
}

.inquiry-options {
  gap: 20px;
  padding: 19px 20px;
  flex-wrap: wrap
}

.inquiry-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
  cursor: pointer
}

.inquiry-options input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #cdcdcd;
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer
}

.inquiry-options input:checked {
  background: #222;
  border-color: #222
}

.inquiry-options input:checked:after {
  content: "";
  width: 8px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px)
}

.message-row {
  height: 300px
}

.message-row>label {
  height: 299px
}

.message-row .contact-control {
  padding: 0 20px
}

.message-row textarea {
  display: block;
  width: 100%;
  height: 260px;
  padding: 14px;
  border: 1px solid transparent;
  resize: none;
  font: 400 16px/1.5 "Noto Sans KR", sans-serif;
  outline: none
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px
}

.contact-actions button {
  width: 250px;
  height: 60px;
  border-radius: 10px;
  font: 400 20px/22px "Noto Sans KR", sans-serif;
  letter-spacing: -.5px;
  cursor: pointer;
  transition: .2s
}

.contact-cancel {
  border: 1px solid #cdcdcd;
  background: #fff;
  color: #777
}

.contact-submit {
  border: 1px solid #222;
  background: #222;
  color: #fff
}

.contact-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px #0002
}

.contact-submit:disabled {
  opacity: .6;
  cursor: wait
}

.contact-status {
  min-height: 24px;
  margin: 18px 0 0;
  text-align: center;
  color: #276d35;
  font-weight: 600
}

.contact-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  width: 70px;
  height: 70px;
  padding: 22px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px #0003;
  cursor: pointer
}

.contact-top img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain
}

@media(max-width:900px) {
  .contact-section {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 90px
  }

  .contact-section h1 {
    font-size: 42px;
    line-height: 1.2
  }

  .contact-row {
    grid-template-columns: 190px 1fr
  }

  .contact-row>label,
  .contact-row>legend {
    width: 190px
  }
}

@media(max-width:767px) {
  .contact-page {
    padding-top: 70px
  }

  .contact-section {
    padding: 45px 20px 70px
  }

  .contact-section h1 {
    margin-bottom: 28px;
    font-size: 34px
  }

  .required-note {
    height: auto;
    padding: 12px 0;
    font-size: 13px
  }

  .contact-row {
    display: block;
    height: auto;
    min-height: 0;
    padding: 14px 0
  }

  .contact-row>label,
  .contact-row>legend {
    width: 100%;
    padding: 0 0 9px;
    background: #fff;
    font-size: 14px
  }

  .contact-control {
    padding: 0
  }

  .contact-control input[type=text],
  .contact-control input[type=email],
  .contact-control input[type=tel] {
    width: 100%;
    height: 44px
  }

  .inquiry-row {
    height: auto
  }

  .inquiry-options {
    gap: 12px 18px;
    padding: 2px 0
  }

  .inquiry-options label {
    font-size: 14px
  }

  .message-row {
    height: auto
  }

  .message-row>label {
    height: auto
  }

  .message-row textarea {
    height: 180px;
    border-color: #d4d4d4;
    padding: 12px
  }

  .contact-actions {
    gap: 10px;
    margin-top: 30px
  }

  .contact-actions button {
    width: 50%;
    height: 52px;
    font-size: 17px
  }

  .contact-top {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    padding: 13px
  }
}

/* Inquiry Type uses a normal grid item instead of fieldset/legend, whose native layout breaks CSS grid. */
.contact-row {
  grid-template-columns: 200px minmax(0, 1fr)
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
  font: 600 16px/19px "Noto Sans KR", sans-serif;
  color: #222;
  white-space: nowrap
}

.contact-label span {
  color: #F00;
  width: 7.66px;
height: 7.8px;
}

.contact-control {
  min-width: 0
}

@media(max-width:900px) and (min-width:768px) {
  .contact-row {
    grid-template-columns: 190px minmax(0, 1fr)
  }

  .contact-label {
    width: 190px
  }
}

@media(max-width:767px) {
  .contact-label {
    width: 100%;
    padding: 0 0 9px;
    border-bottom: 0;
    background: #fff;
    font-size: 14px
  }

  .inquiry-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%
  }

  .inquiry-options label {
    white-space: normal
  }
}