/* contact.css */

#contact-main {
  width: 100%;
  background-color: #f8f8f8;
}

.contact-banner {
  width: 100%;
  height: 349px;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(
      90deg,
      rgba(149, 66, 255, 0.5) 0%,
      rgba(77, 57, 255, 0.5) 100%
    ),
    url("../assets/contact_banner_bg.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-banner h1 {
  font-family: "NanumSquare", sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-banner p {
  font-family: "NanumSquare", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
}

.contact-form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.contact-form-container form {
  max-width: 995px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.form-group.align-top {
  align-items: flex-start;
}

.form-group label {
  width: 180px;
  flex-shrink: 0;
  font-family: "NanumSquare", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  box-sizing: border-box;
}

.form-group .required {
  color: #ff0000;
}

.form-field-wrapper {
  flex-grow: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #ababab;
  border-radius: 5px;
  background-color: #fff;
  font-family: "NanumSquare", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
}

.form-group select.placeholder-color {
  color: #ababab;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ababab;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 1em;
  padding-right: 40px;
}

.form-group textarea {
  height: 412px;
  padding: 20px;
  resize: none;
}

.privacy-policy-box {
  height: 364px;
  overflow-y: auto;
  border: 1px solid #ababab;
  border-radius: 5px;
  padding: 20px;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.privacy-policy-box p {
  margin-bottom: 1em;
}

.form-notice {
  font-size: 16px;
  color: #ff0000;
  margin-top: 14px;
  margin-bottom: 10px;
}

.form-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.download-button {
  width: 148px;
  height: 42px;
  border-radius: 40px;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #fff;
  color: #2c2c2c;
  border: 2px solid #2c2c2c;
}

.submit-button {
  padding: 10px 20px;
  border-radius: 40px;
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  font-size: 24px;
  transition: background-color 0.3s ease;
  color: #fff;
  border: none;
}

.submit-button.disabled {
  background-color: #b6b6b6;
  cursor: not-allowed;
}

.submit-button:not(.disabled) {
  background-color: #9745ff;
  cursor: pointer;
}

.submit-container {
  text-align: center;
  margin-top: 64px;
}

#header > div > a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #000;
}

@media screen and (max-width: 767px) {
  #header {
    height: 60px;
    padding: 0 17px 0 0;
  }

  #header > div > a > img {
    width: 24px;
    height: 28.67px;
    margin-left: 20px;
    margin-right: 11px;
  }

  #header > div > a #logo-text {
    font-size: 16px;
  }

  /* Banner */
  .contact-banner {
    height: 220px;
  }

  .contact-banner h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .contact-banner p {
    font-size: 16px;
  }

  /* Form Container */
  .contact-form-container {
    padding: 40px 20px;
  }

  /* Form Group Layout */
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .form-group label {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
  }

  /* Form Fields */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    height: 44px;
  }

  .form-group textarea {
    height: 250px;
  }

  .form-field-wrapper {
    width: 100%;
  }

  /* Privacy Policy Box */
  .privacy-policy-box {
    height: 200px;
    font-size: 14px;
  }

  /* Buttons */
  .download-button,
  .submit-button {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
  }

  .download-button {
    margin-top: 15px;
  }

  .submit-container {
    margin-top: 40px;
  }
}
