/* OET LP contact section — scoped to .oet-contact */
.oet-contact,
.oet-contact * {
  box-sizing: border-box;
}

.oet-contact {
  --oet-navy: var(--navy, #0f1d44);
  --oet-navy-dark: var(--navy-dark, #08132e);
  --oet-teal: var(--teal, #178798);
  --oet-teal-dark: var(--teal-dark, #0f7180);
  --oet-gold: var(--gold, #c9a661);
  --oet-gold-light: #e8d8ae;
  --oet-gold-button: #d49600;
  --oet-red: #ef3c38;
  --oet-text: #17264b;
  --oet-muted: #6f7890;
  --oet-border: #e5d7b3;
  --oet-field-bg: #ffffff;
  --oet-soft-bg: #f8fafb;
  margin: 0;
  padding: 40px 24px 52px;
  color: var(--oet-text);
  background: #071a46;
  font-family: var(--f-sans, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
  font-size: 16px;
  line-height: 1.7;
}

.oet-contact svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.oet-contact__panel {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 39px 62px 34px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 29, 68, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(2, 14, 45, 0.22);
}

.oet-contact__header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.oet-contact__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  margin: 0 0 13px;
  color: var(--oet-teal);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.oet-contact__eyebrow::before,
.oet-contact__eyebrow::after {
  width: 16px;
  height: 2px;
  content: "";
  background: currentColor;
}

.oet-contact__eyebrow::before {
  transform: rotate(49deg);
}

.oet-contact__eyebrow::after {
  transform: rotate(-49deg);
}

.oet-contact__title {
  margin: 0;
  color: var(--oet-navy);
  font-family: var(--f-serif, "Noto Serif JP", "Yu Mincho", serif);
  font-size: clamp(34px, 3.15vw, 43px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

.oet-contact__title span {
  display: block;
}

.oet-contact__title-accent {
  color: var(--oet-teal);
}

.oet-contact__sp-break {
  display: none;
}

.oet-contact__lead {
  margin: 23px 0 0;
  color: var(--oet-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.oet-contact__trial {
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: min(100%, 780px);
  min-height: 96px;
  margin: 31px auto 17px;
  padding: 18px 44px;
  color: #ffffff;
  background: linear-gradient(180deg, #efb511 0%, #d28d00 55%, #bd7600 100%);
  border: 1px solid #d79700;
  border-radius: 11px;
  box-shadow:
    0 11px 17px rgba(144, 91, 0, 0.25),
    0 0 20px rgba(255, 192, 0, 0.65);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.oet-contact__trial:hover {
  color: #ffffff;
  filter: brightness(1.055);
  transform: translateY(-1px);
}

.oet-contact__trial:focus-visible,
.oet-contact__summary:focus-visible,
.oet-contact input:focus-visible,
.oet-contact select:focus-visible,
.oet-contact textarea:focus-visible,
.oet-contact__submit:focus-visible {
  outline: 3px solid rgba(29, 122, 138, 0.35);
  outline-offset: 3px;
}

.oet-contact__trial > svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.1;
}

.oet-contact__trial-arrow {
  display: block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.oet-contact__details {
  width: min(100%, 840px);
  margin: 0 auto;
  scroll-margin-top: 80px; /* clear sticky header when deep-linking */
}

.oet-contact__summary {
  display: flex;
  width: min(85%, 663px);
  min-height: 62px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 25px;
  color: var(--oet-navy);
  background: #ffffff;
  border: 1px solid #e1e5e8;
  border-radius: 6px;
  box-shadow: 0 5px 9px rgba(15, 29, 68, 0.12);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.025em;
  list-style: none;
}

.oet-contact__summary::-webkit-details-marker {
  display: none;
}

.oet-contact__summary-label {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 auto;
}

.oet-contact__summary-label svg {
  width: 22px;
  height: 22px;
  color: var(--oet-teal);
}

.oet-contact__chevron {
  width: 20px;
  height: 20px;
  color: var(--oet-navy);
  transition: transform 0.2s ease;
}

.oet-contact__details.is-expanded .oet-contact__chevron,
.oet-contact__details[open] .oet-contact__chevron {
  transform: rotate(180deg);
}

/* Smooth expand/collapse shell (height driven by JS) */
.oet-contact__collapse {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-10px);
  will-change: height, opacity, transform;
}

.oet-contact__details.is-expanded .oet-contact__collapse {
  opacity: 1;
  transform: translateY(0);
}

.oet-contact__form {
  margin-top: 29px;
  padding: 28px 31px 30px;
  background: #ffffff;
  border: 1.5px solid var(--oet-border);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(117, 89, 29, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .oet-contact__collapse {
    transition: none !important;
    transform: none !important;
  }
}

.oet-contact__form-intro {
  margin: 0 0 25px;
  color: var(--oet-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.oet-contact__field {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.oet-contact__field > label,
.oet-contact__field > legend {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: var(--oet-navy);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.oet-contact__field em {
  color: var(--oet-red);
  font-style: normal;
}

.oet-contact input[type="text"],
.oet-contact input[type="email"],
.oet-contact select,
.oet-contact textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--oet-navy);
  background-color: var(--oet-field-bg);
  border: 1.5px solid var(--oet-border);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(15, 29, 68, 0.025);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oet-contact input[type="text"],
.oet-contact input[type="email"],
.oet-contact select {
  height: 46px;
  padding: 0 16px;
}

.oet-contact select {
  appearance: none;
  padding-right: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f1d44' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 17px;
}

.oet-contact textarea {
  min-height: 98px;
  padding: 13px 16px;
  line-height: 1.6;
  resize: vertical;
}

.oet-contact input::placeholder,
.oet-contact textarea::placeholder {
  color: #adb4c2;
  opacity: 1;
}

.oet-contact input[type="text"]:focus,
.oet-contact input[type="email"]:focus,
.oet-contact select:focus,
.oet-contact textarea:focus {
  border-color: var(--oet-teal);
  box-shadow: 0 0 0 3px rgba(29, 122, 138, 0.1);
}

.oet-contact__courses {
  margin-top: 1px;
  margin-bottom: 20px;
}

.oet-contact__course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 26px;
}

.oet-contact__course-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--oet-navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.oet-contact__course-grid input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--oet-teal);
}

.oet-contact__privacy {
  margin: 4px 0 17px;
  padding: 13px 17px;
  color: var(--oet-navy);
  background: var(--oet-soft-bg);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.65;
}

.oet-contact__privacy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.oet-contact__privacy-title svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--oet-teal);
}

.oet-contact__privacy p {
  margin-top: 0;
  margin-bottom: 0;
}

.oet-contact__submit {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 14px 24px;
  color: #ffffff;
  background: linear-gradient(180deg, #1990a0 0%, #0b7d8d 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(7, 91, 105, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.oet-contact__submit:hover {
  background: linear-gradient(180deg, #168696 0%, #086f7e 100%);
  transform: translateY(-1px);
}

.oet-contact__submit svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 767px) {
  .oet-contact__sp-break {
    display: block;
  }

  .oet-contact {
    padding: 20px 12px 28px;
  }

  .oet-contact__panel {
    padding: 31px 17px 20px;
    border-radius: 7px;
  }

  .oet-contact__eyebrow {
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .oet-contact__eyebrow::before,
  .oet-contact__eyebrow::after {
    width: 12px;
  }

  .oet-contact__title {
    font-size: clamp(27px, 8.3vw, 35px);
    line-height: 1.38;
    letter-spacing: 0.015em;
  }

  .oet-contact__lead {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.8;
  }

  .oet-contact__trial {
    grid-template-columns: 27px auto 27px;
    gap: 10px;
    min-height: 68px;
    margin: 24px auto 14px;
    padding: 14px 15px;
    border-radius: 8px;
    font-size: clamp(19px, 5.3vw, 25px);
    letter-spacing: 0.025em;
  }

  .oet-contact__trial > svg {
    width: 27px;
    height: 27px;
  }

  .oet-contact__trial-arrow {
    font-size: 29px;
  }

  .oet-contact__summary {
    min-height: 55px;
    gap: 10px;
    padding: 11px 15px;
    font-size: 14px;
  }

  .oet-contact__summary-label {
    gap: 8px;
  }

  .oet-contact__summary-label svg,
  .oet-contact__chevron {
    width: 18px;
    height: 18px;
  }

  .oet-contact__form {
    margin-top: 18px;
    padding: 22px 15px 16px;
  }

  .oet-contact__form-intro {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .oet-contact__field {
    margin-bottom: 15px;
  }

  .oet-contact__field > label,
  .oet-contact__field > legend {
    font-size: 13px;
  }

  .oet-contact input[type="text"],
  .oet-contact input[type="email"],
  .oet-contact select,
  .oet-contact textarea {
    font-size: 16px;
  }

  .oet-contact__course-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px 14px;
  }

  .oet-contact__course-grid label {
    align-items: flex-start;
    font-size: 12px;
  }

  .oet-contact__privacy {
    padding: 12px;
    font-size: 10.5px;
  }

  .oet-contact__submit {
    min-height: 56px;
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .oet-contact__panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .oet-contact__course-grid {
    grid-template-columns: 1fr;
  }
}

.oet-contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.oet-contact__err {
  margin: 6px 0 0;
  min-height: 1em;
  color: var(--oet-red);
  font-size: 12px;
  line-height: 1.4;
}

.oet-contact__field.is-invalid > input,
.oet-contact__field.is-invalid > select,
.oet-contact__field.is-invalid > textarea {
  border-color: var(--oet-red);
}

.oet-contact__captcha {
  margin: 8px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .oet-contact__trial,
  .oet-contact__chevron,
  .oet-contact__submit {
    transition: none;
  }
}
