/* ============================================================
   VT レッスン予約フォーム — Contact Form 7 用スタイル
   page-reserve.php から wp_enqueue_style で読み込む
   ============================================================ */

.vt-reserve-wrap * { box-sizing: border-box; }

.vt-reserve-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    color: #1a1a1a;
}

.vt-reserve-header { text-align: center; margin-bottom: 28px; }
.vt-reserve-header h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #004096; }
.vt-reserve-header p { font-size: 14px; color: #666; margin: 0; }

/* プログレスバー */
.progress-bar { display: flex; margin-bottom: 24px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pbar-item { flex: 1; padding: 12px 8px; background: #e5e7eb; color: #6b7280; font-size: 12px; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.pbar-item.is-current { background: #004096; color: #fff; }
.pbar-item.is-done { background: #c2d500; color: #1a1f00; }

/* パネル共通 */
.step-panel { display: none; }
.step-panel.is-active { display: block; }
.panel-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.step-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; margin: 0 0 4px; }
.step-panel[data-panel="1"] .step-label { color: #004096; }
.step-panel[data-panel="2"] .step-label { color: #185fa5; }
.step-panel[data-panel="3"] .step-label { color: #854f0b; }
.step-title { font-size: 19px; font-weight: 700; margin: 0 0 18px; }

/* フォームフィールド（CF7が生成する input と共通の見た目にする） */
.field-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.req { color: #dc2626; font-weight: 700; margin-left: 6px; font-size: 11px; }
.opt { color: #6b7280; font-weight: 400; margin-left: 6px; font-size: 11px; }

/* CF7は各タグを <span class="wpcf7-form-control-wrap"> で囲むため、
   幅計算がずれないようブロック要素化しておく */
.vt-reserve-wrap .wpcf7-form-control-wrap { display: block; width: 100%; margin-bottom: 18px; }
.vt-reserve-wrap .wpcf7-form-control-wrap.your-date2 { margin-bottom: 0; }

.field-input,
.vt-reserve-wrap input.wpcf7-form-control,
.vt-reserve-wrap select.wpcf7-form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.field-input:focus,
.vt-reserve-wrap input.wpcf7-form-control:focus { outline: none; border-color: #004096; box-shadow: 0 0 0 3px rgba(0,64,150,.1); }

/* CF7バリデーションエラー表示 */
.vt-reserve-wrap .wpcf7-not-valid-tip { font-size: 12px; color: #dc2626; margin-top: 4px; }
.vt-reserve-wrap .wpcf7-form-control.wpcf7-not-valid { border-color: #dc2626; }
.vt-reserve-wrap .wpcf7-response-output { border-radius: 8px; font-size: 13px; padding: 12px 16px; margin-top: 16px; }

/* スタジオ選択 */
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.studio-btn { text-align:center; padding: 12px 4px; border: 2px solid #d1d5db; background: #fff; border-radius: 8px; font-size: 13px; font-weight: 700; color: #374151; cursor: pointer; font-family: inherit; }
.studio-btn.is-selected { border-color: #004096; background: #eef4ff; color: #004096; }

/* 講師カード */
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ins-grid.is-filtered { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
.ins-grid.is-filtered .ins-photo-wrap { width: 120px; height: 120px; }
.ins-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px; border: 2px solid #e5e7eb; background: #fff; border-radius: 10px; cursor: pointer; font-family: inherit; width: 100%; }
.ins-card.is-selected { border-color: #004096; background: #eef4ff; }
.ins-photo-wrap { flex-shrink: 0; width: 92px; height: 92px; border-radius: 50%; background: #f7f4ec; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.ins-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.ins-photo-wrap.is-omakase { font-size: 13px; font-weight: 700; color: #9ca3af; }
.ins-body { width: 100%; }
.ins-name { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #1a1a1a; }
.ins-price-row { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; }
.ins-badge { display: inline-block; background: #a3284a; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.ins-price { font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.ins-price.none { color: #9ca3af; font-weight: 400; font-size: 13px; }
.ins-career { list-style: none; margin: 0; padding: 0; text-align: left; display: inline-block; }
.ins-career li { position: relative; padding-left: 16px; margin-bottom: 3px; font-size: 11px; line-height: 1.5; color: #555; }
.ins-career li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; background: #c2d500; }

/* 折りたたみ */
.add-date-btn { background: none; border: none; color: #004096; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; }
#second-date-wrap { display: none; margin-bottom: 4px; }

/* 電話番号（強調） */
.phone-box { background: #fefbea; border: 1.5px solid #eab308; border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.phone-box .field-label { color: #854f0b; display: flex; align-items: center; gap: 6px; }
.phone-box .wpcf7-form-control-wrap { margin-bottom: 0 !important; }
.phone-box .field-input,
.phone-box input.wpcf7-form-control { background: #fff; border-color: #eab308; }

/* 確認テーブル */
.confirm-table { border-top: 1px solid #e5e7eb; padding-top: 14px; font-size: 13px; color: #374151; line-height: 2.2; }
.confirm-row { display: flex; justify-content: space-between; }
.confirm-row span:first-child { color: #6b7280; }
.confirm-row span:last-child { font-weight: 700; }

/* ボタン */
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn { padding: 15px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; border: none; }
.btn-next { flex: 2; background: #c2d500; color: #1a1f00; }
.btn-back { flex: 1; background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-full { width: 100%; }

/* CF7送信ボタン（STEP3内） */
.vt-reserve-wrap input.wpcf7-form-control[type="submit"] {
    flex: 2;
    padding: 15px;
    background: #004096;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}
.vt-reserve-wrap .wpcf7-spinner { margin-left: 10px; }

/* hidden項目は非表示のまま */
.vt-reserve-wrap input[type="hidden"] { display: none; }

@media (max-width: 480px) {
    .vt-reserve-wrap { padding: 0; }
    .panel-card { padding: 18px; }
    .studio-grid { grid-template-columns: repeat(2, 1fr); }
    .ins-grid { gap: 8px; }
    .ins-card { padding: 12px 8px; }
    .ins-photo-wrap { width: 64px; height: 64px; margin-bottom: 8px; }
    .ins-name { font-size: 13px; margin-bottom: 6px; }
    .ins-badge { font-size: 9px; padding: 3px 6px; }
    .ins-price { font-size: 17px; }
    .ins-career li { font-size: 10px; }
}
