/* ============================================================
   GingerLab — contact.html only overrides
   ============================================================ */

/* ---- Page title --------------------------------------------- */

.page-title-area.contact-title .page-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-title-area.contact-title .contact-lead {
  margin-top: 24px;
  max-width: 720px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.85);
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
}

@media only screen and (max-width: 991px) {
  .page-title-area.contact-title .contact-lead {
    font-size: 15px;
  }
}


/* ---- Form layout -------------------------------------------- */

/* Strip the template's rounded card wrapper around each field — we draw
   borders directly on the inputs/textareas/selects below. The template's
   `.contact-formfield.message { height: 170px }` is also disabled so the
   textarea can grow with its rows/min-height instead of overflowing. */
.contact-page .contact-formfield {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
.contact-page .contact-formfield:hover {
  border-color: transparent !important;
}
.contact-page .contact-formfield.message {
  height: auto !important;
}

.contact-page .contact-form-wrapper {
  max-width: 880px;
  margin: 60px auto 0;
}

@media only screen and (max-width: 991px) {
  .contact-page .contact-form-wrapper {
    margin-top: 40px;
  }
}

.contact-page .contact-formwrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.contact-page .contact-formfield.message,
.contact-page .contact-formfield.consent,
.contact-page .contact-formfield:has(> #inquiry-type) {
  grid-column: 1 / -1;
}

@media only screen and (max-width: 767px) {
  .contact-page .contact-formwrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}


/* ---- Field styling ------------------------------------------ */

.contact-page .contact-formfield label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  font-family: YuMincho, "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "Noto Serif JP", "Times New Roman", serif;
}

.contact-page .contact-formfield .required {
  color: #fae54d;
  margin-left: 4px;
}

.contact-page .contact-formfield input[type="text"],
.contact-page .contact-formfield input[type="email"],
.contact-page .contact-formfield input[type="tel"],
.contact-page .contact-formfield select,
.contact-page .contact-formfield textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-page .contact-formfield input::placeholder,
.contact-page .contact-formfield textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-page .contact-formfield input:hover,
.contact-page .contact-formfield select:hover,
.contact-page .contact-formfield textarea:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-page .contact-formfield input:focus,
.contact-page .contact-formfield select:focus,
.contact-page .contact-formfield textarea:focus {
  outline: none;
  border-color: #fae54d;
  background-color: rgba(255, 255, 255, 0.06);
}

.contact-page .contact-formfield textarea {
  resize: vertical;
  min-height: 160px;
}

/* Native select arrow, dark-friendly */
.contact-page .contact-formfield select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}
.contact-page .contact-formfield select option {
  background-color: #111111;
  color: #ffffff;
}


/* ---- Consent checkbox --------------------------------------- */

.contact-page .contact-formfield.consent .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.contact-page .contact-formfield.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.contact-page .contact-formfield.consent input[type="checkbox"]:checked {
  background-color: #fae54d;
  border-color: #fae54d;
}
.contact-page .contact-formfield.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.4 11.6 2.8 8l1.4-1.4 2.2 2.2 5-5L12.8 5.2z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.contact-page .contact-formfield.consent a {
  color: #fae54d;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ---- Honeypot (hidden from real users) --------------------- */

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* ---- Submit button ----------------------------------------- */

.contact-page .submit-btn {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.contact-page .submit-btn .rr-btn {
  min-width: 240px;
  justify-content: center;
}


/* ---- Ajax response ----------------------------------------- */

.contact-page .ajax-response {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.contact-page .ajax-response.success-message {
  background-color: rgba(250, 229, 77, 0.12);
  border: 1px solid rgba(250, 229, 77, 0.5);
  color: #fae54d;
}
.contact-page .ajax-response.error-message {
  background-color: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8080;
}
