/* Apply page (main chrome: ../css/style.8e377.css) */
main:has(#apply-page) {
  background-color: var(--light-gray, #f4f3ef);
}

main #apply-page.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 40px) 88px;
  background: var(--white, #fff);
  border-radius: 16px;
  box-sizing: border-box;
}

#apply-page .wd-apply-intro .wd-apply-title {
  color: var(--deep-blue, #00014d);
}

#apply-page .wd-apply-intro .wd-apply-label {
  color: var(--slate-gray, #242423);
}

#apply-page .wd-apply-intro .wd-apply-lead,
#apply-page .wd-apply-intro .wd-apply-note {
  color: var(--slate-gray, #242423);
  font-size: 1.6rem;
  line-height: 1.55;
}

#apply-page .wd-apply-intro .wd-apply-note a {
  color: var(--bright-blue, #000477);
  text-decoration: underline;
}

.wd-apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.wd-apply-intro {
  padding: 8px 0 0;
}

.wd-apply-label {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-apply-title {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.12;
}

.wd-apply-lead,
.wd-apply-note {
  margin: 0 0 14px;
}

.wd-form {
  background: var(--light-gray-tint, #faf9f7);
  border: 1px solid #e5e3df;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
}

.wd-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wd-form-row {
  margin-bottom: 16px;
}

.wd-form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wd-form-row > label,
.wd-form-two > div > label {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--slate-gray, #242423);
}

/* Theme sets all inputs to width 100% + appearance:none — exclude checkbox/file */
.wd-form input:not([type="checkbox"]):not([type="file"]),
.wd-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbcbcb;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.6rem;
  color: var(--slate-gray, #242423);
}

.wd-form input:focus,
.wd-form select:focus {
  outline: 2px solid var(--orange, #ff6c00);
  outline-offset: 1px;
  border-color: var(--orange, #ff6c00);
}

.wd-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px dashed #b0b0b0;
  border-radius: 10px;
  background: #fff;
  font-size: 1.4rem;
}

.wd-form-hint {
  font-size: 1.2rem;
  color: #666;
  margin: 6px 0 0;
}

/* Confirmation toggle (button — avoids global input { appearance:none } / width:100%) */
.wd-confirm {
  margin: 24px 0 28px;
}

#apply-page button.wd-confirm-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #cbcbcb;
  border-radius: 12px;
  background-color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--slate-gray, #242423);
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: visible;
  position: static;
  line-height: 1.45;
}

#apply-page button.wd-confirm-btn::before {
  display: none;
  content: none;
}

#apply-page button.wd-confirm-btn:hover {
  border-color: var(--orange, #ff6c00);
}

#apply-page button.wd-confirm-btn:focus-visible {
  outline: 2px solid var(--orange, #ff6c00);
  outline-offset: 2px;
}

#apply-page button.wd-confirm-btn.is-checked {
  border-color: var(--orange, #ff6c00);
  background-color: #fff9f4;
}

.wd-confirm-icon {
  flex-shrink: 0;
  display: block;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 2px solid var(--deep-blue, #00014d);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}

#apply-page button.wd-confirm-btn.is-checked .wd-confirm-icon {
  background: var(--orange, #ff6c00);
  border-color: var(--orange, #ff6c00);
}

#apply-page button.wd-confirm-btn.is-checked .wd-confirm-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.wd-confirm-copy {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 400;
}

.wd-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 1.4rem;
}

.wd-alert.is-ok {
  background: #e9f8ea;
  color: #1f5f22;
}

.wd-alert.is-err {
  background: #fdecec;
  color: #8a1f1f;
}

#apply-success-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#apply-success-modal[hidden] {
  display: none;
}

#apply-success-modal .wd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

#apply-success-modal .wd-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 34px 32px 28px;
  width: min(92vw, 420px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

#apply-success-modal .wd-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e9f8ea;
  color: #2a7a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

#apply-success-modal .wd-modal-icon svg {
  width: 28px;
  height: 28px;
}

#apply-page .button-wrapper .wp-block-button__link,
#apply-success-modal .button-wrapper .wp-block-button__link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  padding: 0 36px;
  min-width: 200px;
  line-height: 48px;
  background-color: var(--orange, #ff6c00);
  color: var(--white, #fff) !important;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

#apply-page .button-wrapper .wp-block-button__link:hover,
#apply-success-modal .button-wrapper .wp-block-button__link:hover {
  background-color: var(--light-coral, #ffa766);
}

#apply-page .button-wrapper {
  margin-top: 8px;
}

#apply-page .button-wrapper .wp-block-button {
  margin: 0;
}

@media (max-width: 900px) {
  main #apply-page.container {
    padding: 32px 20px 64px;
    border-radius: 0;
  }

  .wd-apply-layout,
  .wd-form-two {
    grid-template-columns: 1fr;
  }

  .wd-apply-intro {
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e3df;
    margin-bottom: 8px;
  }

  #apply-page .button-wrapper .wp-block-button__link {
    width: 100%;
  }
}