/* ================================================
   無料相談お申し込みフォーム スタイル
================================================ */

.fpcf-description {
    background: #fff8f0;
    border-left: 4px solid #ff9800;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.fpcf-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 28px 0;
}

/* セクション */
.fpcf-section {
    margin-bottom: 24px;
}

.fpcf-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.fpcf-required {
    color: #e53935;
    margin-left: 4px;
}

/* ラジオ・チェックボックス */
.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin: 6px 0;
}

.wpcf7-radio .wpcf7-list-item label,
.wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.wpcf7-radio .wpcf7-list-item input,
.wpcf7-checkbox .wpcf7-list-item input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #ff9800;
}

/* テキスト入力フィールド */
.fpcf-field-row {
    margin-bottom: 18px;
}

.fpcf-field-row label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.fpcf-field-row input[type="text"],
.fpcf-field-row input[type="email"],
.fpcf-field-row input[type="tel"],
.fpcf-field-row select,
.wpcf7-form .fpcf-field-row input,
.wpcf7-form .fpcf-field-row select {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.fpcf-field-row input:focus,
.fpcf-field-row select:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
    outline: none;
}

/* テキストエリア */
.wpcf7-textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 120px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7-textarea:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
    outline: none;
}

/* 利用規約 */
.fpcf-terms-section {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 18px 20px;
}

.fpcf-terms-section a {
    color: #ff9800;
    text-decoration: underline;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 10px 0 0;
}

.wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
    accent-color: #ff9800;
    width: 18px;
    height: 18px;
}

/* 送信ボタン */
.fpcf-submit-row {
    text-align: center;
    margin-top: 32px;
}

.wpcf7-submit {
    background-color: #ff9800;
    color: #fff;
    border: none;
    padding: 14px 60px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 0.05em;
}

.wpcf7-submit:hover {
    background-color: #e68900;
    transform: translateY(-1px);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #e53935 !important;
}

/* レスポンスメッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #ffebee;
    border: 1px solid #e53935;
    color: #c62828;
}

.wpcf7-spam-blocked {
    background: #fff8e1;
    border: 1px solid #ffc107;
    color: #f57f17;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .fpcf-field-row input,
    .fpcf-field-row select,
    .wpcf7-textarea {
        max-width: 100%;
    }

    .wpcf7-submit {
        width: 100%;
        padding: 14px 20px;
    }
}
