/* 久万高原 親子バスツアー 申込フォーム 専用スタイル（プレーンCSS・ビルド非依存） */
.jafb-bt {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    max-width: 600px;
    padding: 32px;
    border: 1px solid #D9E8D1;
    border-radius: 16px;
    background: #fcfdfb;
    box-sizing: border-box;
}

/* セクション見出し（緑帯＋アイコン） */
.jafb-bt__section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 16px;
    padding: 12px 16px;
    background: #138A43;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.jafb-bt__section i { font-size: 20px; }

/* サブ見出し（住所・電話番号など） */
.jafb-bt__subhead {
    margin: 22px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #EEF8E9;
    font-size: 15px;
    font-weight: 700;
    color: #075C30;
}
.jafb-bt__note { margin: 0 0 12px; font-size: 13px; color: #777; }

.jafb-bt__row { margin: 0 0 18px; }
.jafb-bt__label { display: block; margin: 0 0 7px; font-weight: 700; }

/* 必須バッジ */
.jafb-bt__req {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    vertical-align: middle;
    line-height: 1.5;
}

/* 入力欄共通（CF7コントロール含む） */
.jafb-bt input[type="text"],
.jafb-bt input[type="tel"],
.jafb-bt input[type="email"],
.jafb-bt input[type="number"],
.jafb-bt input[type="url"],
.jafb-bt textarea,
.jafb-bt select,
.jafb-bt__input {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    border: 1.5px solid #D9E8D1;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.jafb-bt input:focus,
.jafb-bt textarea:focus,
.jafb-bt select:focus {
    border-color: #138A43;
    box-shadow: 0 0 0 3px rgba(19,138,67,0.15);
    outline: none;
}

/* 小さい入力（年齢・郵便番号） */
.jafb-bt input.jafb-bt__input-sm,
.jafb-bt .jafb-bt__inline input[type="number"],
.jafb-bt .jafb-bt__zip input[type="text"] {
    width: 120px;
    max-width: 120px;
}
.jafb-bt__inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jafb-bt__agehint { font-size: 12px; color: #888; }

/* CF7ラッパー span 制御 */
.jafb-bt .wpcf7-form-control-wrap { display: block; width: 100%; max-width: none; }
.jafb-bt__inline .wpcf7-form-control-wrap,
.jafb-bt__zip .wpcf7-form-control-wrap { display: inline-block; width: auto; max-width: none; }

/* 郵便番号検索 */
.jafb-bt__zip { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jafb-bt__zipbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #075C30;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.jafb-bt__zipbtn:hover { background: #064a27; }
.jafb-bt__ziphint, .jafb-bt__capnote { display: block; margin-top: 6px; font-size: 13px; color: #777; }

/* ── ラジオをボタン型に（CF7・JS両対応） ── */
/* CF7ラジオ（pseudo-checked方式・:has不使用） */
.jafb-bt .wpcf7-radio {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item {
    margin: 0;
    position: relative;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1.5px solid #D9E8D1;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-weight: 500;
    transition: all .15s;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item-label::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #b5c9a8;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all .15s;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item input[type="radio"]:hover + .wpcf7-list-item-label {
    border-color: #138A43;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label {
    background: #138A43;
    border-color: #138A43;
    color: #fff;
}
.jafb-bt .wpcf7-radio .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label::before {
    border-color: #fff;
    background: radial-gradient(#fff 0 38%, transparent 42%);
}

/* JS生成ラジオ（参加者）pseudo-checked方式 */
.jafb-bt__radios { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.jafb-bt__radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 18px;
    border: 1.5px solid #D9E8D1;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.jafb-bt__radio::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid #b5c9a8;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all .15s;
}
.jafb-bt__radio input[type="radio"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.jafb-bt__radio:hover { border-color: #138A43; }
.jafb-bt__radio:has(input:checked) { background: #138A43; border-color: #138A43; color: #fff; }
.jafb-bt__radio:has(input:checked)::before {
    border-color: #fff;
    background: radial-gradient(#fff 0 38%, transparent 42%);
}

/* 参加者リスト・カード */
.jafb-bt__plist { display: flex; flex-direction: column; gap: 14px; }
.jafb-bt__pcard {
    border: 1.5px solid #D9E8D1;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.jafb-bt__pcard.is-incomplete { border-color: #E9942F; background: #fff8f0; }
.jafb-bt__pcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.jafb-bt__pcard-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #075C30; }
.jafb-bt__pcard-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #EEF8E9;
    color: #075C30;
    font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.jafb-bt__delbtn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid #e0c0c0;
    background: #fdf5f5;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #b54;
}
.jafb-bt__delbtn:hover { background: #fce8e8; }
.jafb-bt__prow { display: grid; grid-template-columns: 90px 1fr; gap: 10px 8px; align-items: center; margin: 10px 0; }
.jafb-bt__plabel { font-size: 13px; font-weight: 700; color: #555; }
.jafb-bt__prow .jafb-bt__input,
.jafb-bt__prow input { max-width: 100%; }

/* 参加者追加ボタン */
.jafb-bt__addwrap { margin-top: 14px; }
.jafb-bt__addbtn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 20px;
    border: 1.5px dashed #138A43;
    border-radius: 10px;
    background: #fff;
    color: #138A43;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
}
.jafb-bt__addbtn:hover { background: #f4f8f0; }
.jafb-bt__addbtn:disabled { border-color: #bbb; color: #999; background: #fafafa; cursor: not-allowed; }

/* 参加費合計ボックス */
.jafb-bt__total-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #EEF8E9;
    border-radius: 12px;
    margin: 0 0 22px;
}
.jafb-bt__total-row .jafb-bt__label { margin: 0; color: #075C30; white-space: nowrap; }
.jafb-bt__total {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 26px; font-weight: 800; color: #075C30;
}

/* サマリ textarea */
.jafb-bt__summary {
    width: 100%; max-width: none; min-height: 90px;
    padding: 12px 14px;
    border: 1.5px solid #D9E8D1;
    border-radius: 10px;
    background: #f7faf4;
    font-size: 14px; color: #333;
    box-sizing: border-box;
}

/* total隠しinput */
.jafb-bt__hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 送信ボタン */
.jafb-bt__actions { margin-top: 28px; text-align: center; }
.jafb-bt .jafb-bt__actions input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; max-width: 300px;
    padding: 16px;
    background: #138A43;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 17px; font-weight: 700;
    cursor: pointer;
}
.jafb-bt .jafb-bt__actions input[type="submit"]:hover { background: #0f7438; }

/* CF7自動pタグ・バリデーション */
.jafb-bt p { margin: 0; }
.jafb-bt .wpcf7-not-valid-tip { font-size: 12px; color: #c00; margin-top: 4px; }
.jafb-bt .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; }

/* スマホ */
@media (max-width: 768px) {
    .jafb-bt input[type="text"],
    .jafb-bt input[type="tel"],
    .jafb-bt input[type="email"],
    .jafb-bt input[type="url"],
    .jafb-bt textarea,
    .jafb-bt__input,
    .jafb-bt__prow .jafb-bt__input,
    .jafb-bt__prow input,
    .jafb-bt__summary { max-width: 100%; }
    .jafb-bt__prow { grid-template-columns: 1fr; gap: 4px; }
    .jafb-bt__radios, .jafb-bt .wpcf7-radio { gap: 8px; }
    .jafb-bt .jafb-bt__actions input[type="submit"] { max-width: 100%; }
    .jafb-bt {
        padding: 18px 16px;
        border-radius: 12px;
    }
}
