/* ========== Apply (申込フォーム) ========== */
/* 上部赤帯 */
.apply__top-bar {
  background: #919191;
  padding: 6px 20px;
}

.apply__top-bar p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 11px;
  color: #fff;
}

.apply__top-bar-link {
  color: #fff;
  text-decoration: underline;
}

.apply__top-bar-link:hover {
  opacity: 0.8;
}

.apply {
  padding: 40px 20px 80px;
  background: #fff;
}

.apply__page-title {
  font-size: 32px;
  font-weight: 600;
  color: #12478c;
  margin-bottom: 24px;
}

/* ステップ */
.apply__steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.apply__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #f5f5f5;
  color: #999;
  border: 1px solid #ddd;
  position: relative;
}

.apply__step.is-active {
  background: #2087b0;
  color: #fff;
  border-color: #2087b0;
}

.apply__step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.apply__step-text {
  font-size: 16px;
  font-weight: 500;
}

.apply__step {
  flex: 1;
}

.apply__step-line {
  width: 15px;
  height: 2px;
  background: #ddd;
  flex-shrink: 0;
}

.apply__notice {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 32px;
}

.apply__notice p + p {
  margin-top: 12px;
}

.apply__notice-link {
  color: #145786;
  text-decoration: underline;
}

.apply__input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apply__input-prefix {
  font-size: 14px;
  color: #333;
  flex-shrink: 0;
}

.apply__input--zip {
  max-width: 200px;
  width: 100%;
  flex: none;
}

.apply__selected-info {
  font-size: 14px;
  color: #333;
  padding: 10px 0;
}

.apply__selected-tag {
  display: inline-block;
  background: #1a2a3a;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  margin-right: 8px;
}

.apply__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* セクション */
.apply__section {
  margin-bottom: 40px;
}

.apply__section--dark {
  background: #2a2a2a;
  margin-left: -20px;
  margin-right: -20px;
  padding: 40px 20px;
}

@media screen and (min-width: 1001px) {
  .apply__section--dark {
    margin-left: calc((100vw - 1000px) / -2);
    margin-right: calc((100vw - 1000px) / -2);
    padding: 40px calc((100vw - 1000px) / 2);
  }
}

.apply__section-title {
  font-size: 22px;
  font-weight: 600;
  color: #343434;
  padding-left: 16px;
  border-left: 4px solid #343434;
  margin-bottom: 24px;
}

.apply__sub-heading {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f5f5f5;
  padding: 8px 12px;
  margin-bottom: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.apply__seminar-info {
  font-size: 14px;
  line-height: 1.8;
}

.apply__seminar-detail {
  padding-left: 22px;
  margin-top: 4px;
  font-size: 13px;
  color: #333;
}

.apply__seminar-detail-sub {
  font-size: 12px;
  color: #666;
}

.apply__link {
  color: #145786;
  text-decoration: underline;
}

.apply__section-title--light {
  color: #fff;
  border-bottom-color: #fff;
}

/* フィールド */
.apply__field {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.apply__field--dark {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* ラベル */
.apply__label {
  width: 200px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding-top: 8px;
}

.apply__label--light {
  color: #fff;
}

.apply__label-sub {
  font-size: 12px;
  font-weight: 400;
}

.apply__required {
  display: inline-block;
  background: #c40b0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  margin-right: 8px;
  vertical-align: middle;
}

/* 入力 */
.apply__input-wrap {
  flex: 1;
}

.apply__input-wrap--inline {
  display: flex;
  gap: 12px;
}

.apply__input-wrap--date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.apply__input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  background: #fff;
  transition: border-color 0.3s;
}

.apply__input:focus {
  border-color: #1a2a3a;
  outline: none;
}

.apply__input--inline {
  width: auto;
  display: inline-block;
  margin-left: 8px;
  max-width: 200px;
}

.apply__select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.apply__select--sm {
  width: auto;
  min-width: 80px;
}

.apply__note {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* ラジオ・チェックボックス */
.apply__radio,
.apply__checkbox {
  display: block;
  font-size: 14px;
  color: #333;
  padding: 4px 0;
  cursor: pointer;
}

.apply__radio input,
.apply__checkbox input {
  margin-right: 6px;
}

.apply__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apply__checkbox-group .apply__checkbox {
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 10px 14px;
}

.apply__checkbox-group .apply__checkbox:last-child {
  border-bottom: 1px solid #ddd;
}

.apply__checkbox-sub {
  display: block;
  padding-left: 22px;
  margin-top: 4px;
  font-size: 13px;
  color: #999;
}

.apply__field--dark .apply__checkbox-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* 規約 */
.apply__policy-lead {
  font-size: 14px;
  color: #c40b0b;
  font-weight: 600;
  margin-bottom: 20px;
}

.apply__policy-box {
  border: 1px solid #ddd;
  padding: 0px;
  margin-bottom: 24px;
}

.apply__policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f5f5;
}

.apply__policy-header .apply__checkbox {
  border: none;
  padding: 0;
  font-weight: 600;
}

.apply__policy-toggle {
  background: none;
  border: none;
  color: #145786;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.apply__policy-toggle:hover {
  text-decoration: underline;
}

.apply__policy-toggle.is-open {
  color: #999;
}

.apply__policy-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.apply__policy-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.apply__policy-text {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  padding: 24px;
  max-height: 300px;
  overflow-y: auto;
}

.apply__policy-text p {
  margin-bottom: 12px;
}

.apply__agree {
  text-align: center;
  padding: 20px 0;
}

/* 送信ボタン */
.apply__actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.apply__btn {
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.apply__btn--reset {
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
}

.apply__btn--reset:hover {
  background: #ddd;
}

.apply__btn--submit {
  background: #12478c;
  color: #fff;
  min-width: 300px;
  font-weight: 500;
}

.apply__btn--submit:hover {
  background: #0d3568;
}

.apply__btn-arrow {
  margin-left: 8px;
}

.apply__submit-note {
  text-align: center;
  font-size: 12px;
  color: #666;
  line-height: 2;
}

/* 支払い方法 */
.apply__payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid #ddd;
}

.apply__payment-summary-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.apply__payment-summary-price {
  font-size: 28px;
  font-weight: 600;
  color: #12478c;
}

.apply__payment-summary-price small {
  font-size: 14px;
  font-weight: 400;
}

.apply__payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apply__payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.apply__payment-option:hover {
  border-color: #12478c;
  background: #f8fafd;
}

.apply__payment-option input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.apply__payment-option input[type="radio"]:checked ~ .apply__payment-option-body {
  color: #12478c;
}

.apply__payment-option:has(input:checked) {
  border-color: #12478c;
  background: #f0f5fc;
}

.apply__payment-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apply__payment-option-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.apply__payment-option-desc {
  font-size: 13px;
  color: #666;
}

.apply__payment-option-badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #2a8f3f;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 4px;
}

.apply__payment-option-badge--sub {
  background: #999;
}

.page-template-page-apply-payment .apply__field {
  padding: 16px 0 60px;
  border-bottom: none;
}

/* 完了画面 */
.apply__complete {
  text-align: center;
  padding: 80px 20px;
}

.apply__complete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2a8f3f;
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.apply__complete-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.apply__complete-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.apply__complete-countdown {
  font-size: 24px;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 24px;
}

.apply__complete-link {
  font-size: 13px;
  color: #999;
}

.apply__complete-link a {
  color: #12478c;
  text-decoration: underline;
}

/* バリデーションエラー */
.apply__field--error {
  background: #fff5f5;
}

.apply__field--error .apply__input,
.apply__field--error .apply__select {
  border-color: #c40b0b;
}

.apply__error {
  display: block;
  color: #c40b0b;
  font-size: 12px;
  margin-top: 6px;
}

.apply__policy-header.apply__field--error {
  background: #fff5f5;
}

/* 確認画面 */
.apply__confirm-lead {
  font-size: 15px;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}

.apply__confirm-field {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.apply__confirm-label {
  width: 200px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.apply__confirm-value {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.apply__actions--confirm {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 24px;
}

.apply__btn--back {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  font-weight: 500;
}

.apply__btn--back:hover {
  background: #e0e0e0;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .apply__steps {
    flex-direction: column;
    align-items: stretch;
  }

  .apply__step-line {
    width: 2px;
    height: 12px;
    align-self: center;
  }

  .apply__section-title {
    font-size: 18px;
  }

  .apply__step-text {
    font-size: 14px;
    font-weight: 500;
  }

  .apply__step-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .apply__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 32px;
  }

  .apply__input-wrap,
  .apply__checkbox-group {
    width: 100%;
  }

  .apply__page-title {
    font-size: 28px;
  }

  .apply__field {
    flex-direction: column;
    gap: 8px;
  }

  .apply__label {
    width: 100%;
  }

  .apply__actions {
    flex-direction: column;
    align-items: center;
  }

  .apply__btn--submit {
    min-width: auto;
    width: 100%;
  }

  .apply__input-wrap--date {
    flex-wrap: wrap;
  }

  .apply__confirm-field {
    flex-direction: column;
    gap: 4px;
  }

  .apply__confirm-label {
    width: 100%;
  }

  .apply__actions--confirm {
    flex-direction: column;
    align-items: center;
  }
}
