/**
 * Contact Form 7 カスタムスタイル - 洗練版
 * MUSE FIT お問い合わせフォーム用
 */

/* フォーム全体のラッパー */
.cf7-custom {
    max-width: 100%;
}

/* Contact Form 7のデフォルトスタイルをリセット */
.wpcf7-form p {
    margin: 0;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

/* mailform dl/dt/dd のスタイル継承 */
.cf7-custom .mailform {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.cf7-custom .mailform:last-of-type {
    border-bottom: none;
}

.cf7-custom .mailform dt {
    margin-bottom: 12px;
    font-weight: bold;
    color: #000;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.cf7-custom .mailform dd {
    margin: 0;
}

/* 必須・任意のバッジ（元のデザインに準拠） */
.must_s, .any_s,
.badge-required, .badge-optional {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

.must_s, .badge-required {
    background: #ff5353;
    color: #fff;
}

.any_s, .badge-optional {
    background: #6fa4ca;
    color: #fff;
}

/* 入力フィールド共通スタイル */
.cf7-custom .form-text,
.cf7-custom .form-input,
.cf7-custom .form-select,
.cf7-custom .form-textarea,
.cf7-custom .form-date,
.cf7-custom input[type="text"],
.cf7-custom input[type="email"],
.cf7-custom input[type="tel"],
.cf7-custom select,
.cf7-custom textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.cf7-custom .form-text:hover,
.cf7-custom .form-input:hover,
.cf7-custom .form-select:hover,
.cf7-custom .form-textarea:hover,
.cf7-custom .form-date:hover,
.cf7-custom input:hover,
.cf7-custom select:hover,
.cf7-custom textarea:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cf7-custom .form-text:focus,
.cf7-custom .form-input:focus,
.cf7-custom .form-select:focus,
.cf7-custom .form-textarea:focus,
.cf7-custom .form-date:focus,
.cf7-custom input:focus,
.cf7-custom select:focus,
.cf7-custom textarea:focus {
    outline: none;
    border-color: #ff5353;
    box-shadow: 0 0 0 3px rgba(255, 83, 83, 0.1);
}

/* プレースホルダーのスタイル */
.cf7-custom input::placeholder,
.cf7-custom textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

/* セレクトボックス */
.cf7-custom .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
    cursor: pointer;
}

.cf7-custom .form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff5353' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* テキストエリア */
.cf7-custom .form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
    font-family: inherit;
}

/* 日付と時間の選択 */
.cf7-custom .datetime-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cf7-custom .datetime-select li {
    margin: 0;
}

@media (max-width: 768px) {
    .cf7-custom .datetime-select {
        grid-template-columns: 1fr;
    }
}

/* タイムボックス（元のデザインに準拠） */
.cf7-custom .timebox {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cf7-custom .timebox .ttl {
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    font-size: 14px;
}

.cf7-custom .timebox .txt {
    color: #333;
    line-height: 1.7;
    font-size: 14px;
}

.cf7-custom .timebox .date1,
.cf7-custom .timebox .date2 {
    display: inline-block;
    font-weight: bold;
    color: #ff5353;
}

/* 備考欄の説明テキスト */
.cf7-custom .text {
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* 希望日時注意書き */
.cf7-custom .datetime-notice {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 20px;
}

.cf7-custom .datetime-notice p {
    margin: 0;
    padding: 0;
    color: #8d6e00;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.cf7-custom .datetime-notice p + p {
    margin-top: 6px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .cf7-custom .datetime-notice {
        padding: 12px 14px;
    }

    .cf7-custom .datetime-notice p {
        font-size: 13px;
    }
}

/* 同一日エラーメッセージ */
.cf7-custom .datetime-duplicate-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 20px;
    animation: shake 0.5s;
}

.cf7-custom .datetime-duplicate-error p {
    margin: 0;
    color: #c62828;
    font-size: 14px;
    font-weight: 700;
}

/* 希望日時ラベル（第1・第2・第3希望）の視覚的改善 */
.cf7-custom .mailform dd > .text strong {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 5px;
    margin-bottom: 12px;
    margin-top: 20px;
    border-left: 4px solid #ddd;
    background: #f8f9fa;
    color: #333;
}

.cf7-custom .mailform dd > .text:first-child strong {
    margin-top: 0;
}

/* 第1希望（必須）は赤系で強調 - クラスベース */
.cf7-custom .datetime-required strong {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left-color: #ff5353;
    color: #c12f2f;
}

/* 第2・第3希望（任意）は青系で控えめに - クラスベース */
.cf7-custom .datetime-optional strong {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border-left-color: #6fa4ca;
    color: #2c5f7f;
}

/* 日時入力行のレイアウト */
.cf7-custom .datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.cf7-custom .datetime-field {
    position: relative;
}

.cf7-custom .datetime-field .form-date,
.cf7-custom .datetime-field select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.cf7-custom .datetime-field .form-date:hover,
.cf7-custom .datetime-field select:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cf7-custom .datetime-field .form-date:focus,
.cf7-custom .datetime-field select:focus {
    outline: none;
    border-color: #ff5353;
    box-shadow: 0 0 0 3px rgba(255, 83, 83, 0.1);
}

/* 送信ボタンエリア */
.cf7-custom .submit-area {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.cf7-custom .submit-btn,
.cf7-custom input[type="submit"] {
    background: linear-gradient(135deg, #ff5353 0%, #ff3030 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 83, 83, 0.3);
    min-width: 250px;
}

.cf7-custom .submit-btn:hover,
.cf7-custom input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff3030 0%, #ff1010 100%);
    box-shadow: 0 6px 20px rgba(255, 83, 83, 0.4);
    transform: translateY(-2px);
}

.cf7-custom .submit-btn:active,
.cf7-custom input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 83, 83, 0.3);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .cf7-custom .datetime-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cf7-custom .mailform dd > .text strong {
        font-size: 14px;
        padding: 6px 12px;
        margin-top: 15px;
    }

    .cf7-custom .submit-btn,
    .cf7-custom input[type="submit"] {
        font-size: 16px;
        padding: 14px 40px;
        min-width: 200px;
    }
}

/* 注意書き */
.cf7-custom .chui {
    margin-top: 10px;
    padding: 12px;
    background: #fff8f0;
    border-radius: 5px;
    border: 1px solid #ffe4cc;
}

.cf7-custom .chui .ttl {
    font-weight: bold;
    color: #ff8c42;
    margin-bottom: 6px;
    font-size: 13px;
}

.cf7-custom .chui .txt {
    color: #333;
    font-size: 13px;
    line-height: 1.7;
}

/* ラジオボタン（元のデザインに準拠） */
.cf7-custom .radio-cards {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cf7-custom .radio-cards .wpcf7-list-item {
    margin: 0 0 8px 0 !important;
    display: inline-block;
}

.cf7-custom .radio-cards .wpcf7-list-item-label {
    display: inline-block;
    position: relative;
    padding: 10px 15px 10px 35px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
}

.cf7-custom .radio-cards .wpcf7-list-item-label:hover {
    border-color: #ccc;
    background: #fafafa;
}

/* ラジオボタンの実際のinput要素を隠す */
.cf7-custom .radio-cards input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* シンプルな丸型ラジオボタン */
.cf7-custom .radio-cards .wpcf7-list-item-label::before {
    content: "";
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    transition: all 0.2s ease;
}

.cf7-custom .radio-cards .wpcf7-list-item-label::after {
    content: "";
    display: block;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #ff5353;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* 選択された状態 - 背景も赤くして分かりやすく */
.cf7-custom .radio-cards input[type="radio"]:checked + .wpcf7-list-item-label {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c12f2f;
    border-color: #ff5353;
    font-weight: 600;
}

.cf7-custom .radio-cards input[type="radio"]:checked + .wpcf7-list-item-label::before {
    border-color: #ff5353;
    background: #ff5353;
}

.cf7-custom .radio-cards input[type="radio"]:checked + .wpcf7-list-item-label::after {
    transform: translateY(-50%) scale(1);
    background: #fff;
}

/* スマホでのタップ最適化 */
@media (max-width: 768px) {
    .cf7-custom .radio-cards .wpcf7-list-item-label {
        padding: 10px 15px 10px 35px;
        font-size: 14px;
    }
}

/* ========================================
   チェックボックス（radio-cardsクラス使用時）
   ========================================*/

/* チェックボックスのinput要素を隠す */
.cf7-custom .radio-cards input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* チェックボックスの四角いボックス */
.cf7-custom .radio-cards .wpcf7-list-item:has(input[type="checkbox"]) .wpcf7-list-item-label::before {
    border-radius: 4px;
}

.cf7-custom .radio-cards .wpcf7-list-item:has(input[type="checkbox"]) .wpcf7-list-item-label::after {
    content: "✓";
    width: auto;
    height: auto;
    background: none;
    color: #ff5353;
    font-size: 12px;
    font-weight: bold;
    left: 12px;
    border-radius: 0;
}

/* チェックボックス選択時 - 背景も赤くして分かりやすく */
.cf7-custom .radio-cards input[type="checkbox"]:checked + .wpcf7-list-item-label {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c12f2f;
    border-color: #ff5353;
    font-weight: 600;
}

.cf7-custom .radio-cards input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    border-color: #ff5353;
    background: #ff5353;
}

.cf7-custom .radio-cards input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    transform: translateY(-50%) scale(1);
    color: #fff;
}

/* 送信ボタンのラッパー */
.cf7-custom .mfp_buttons {
    clear: both;
    padding: 30px 0px;
    text-align: center;
}

/* CF7のデフォルトsubmitボタンのラッパー */
.cf7-custom .wpcf7-form p:has(.wpcf7-submit) {
    text-align: center;
    margin: 30px 0 0 0;
}

/* 送信ボタン（元のデザインに準拠） */
.cf7-custom .submit-more,
.cf7-custom .wpcf7-submit {
    width: 200px;
    height: 56px;
    padding: 15px 40px;
    background: #ff5353;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 0 auto;
}

.cf7-custom .submit-more:hover,
.cf7-custom .wpcf7-submit:hover {
    background: #e64848;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ボタンのローディング状態 */
.cf7-custom .wpcf7 form.submitting .submit-more,
.cf7-custom .wpcf7 form.submitting .wpcf7-submit {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* より確実な中央配置 */
.cf7-custom form > p:last-of-type {
    text-align: center;
}

.cf7-custom .wpcf7-form > p:last-of-type,
.cf7-custom .mfp_buttons {
    display: block;
    text-align: center;
    width: 100%;
}

/* スピナーを非表示にする（送信中の表示は不要） */
.cf7-custom .wpcf7-spinner {
    display: none;
}

/* または、スピナーを表示する場合は絶対配置で中央に配置 */
/*
.cf7-custom .wpcf7-spinner {
    position: absolute;
    left: 50%;
    margin-left: 110px;
}
*/

/* エラーメッセージのスタイル */
.wpcf7-not-valid-tip {
    color: #ff5353;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 700;
    padding: 8px 12px;
    background: #fff5f5;
    border-left: 4px solid #ff5353;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #ff5353 !important;
    border-width: 2px !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(255, 83, 83, 0.1) !important;
    animation: errorPulse 0.6s ease;
}

@keyframes errorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* エラーフィールドの親要素（mailform dl）を強調 */
.cf7-custom .mailform:has(.wpcf7-not-valid) {
    background: #fff8f8;
    border: 2px solid #ff5353;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    animation: highlightError 0.5s ease;
}

@keyframes highlightError {
    0%, 100% { background: #fff8f8; }
    50% { background: #ffe5e5; }
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
    margin: 30px 0 0;
    padding: 20px 24px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
    border: 2px solid;
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* アクセシビリティ: フォーカス状態を明確に */
.cf7-custom input:focus-visible,
.cf7-custom select:focus-visible,
.cf7-custom textarea:focus-visible {
    outline: 3px solid rgba(255, 83, 83, 0.4);
    outline-offset: 2px;
}

/* アニメーションは削除（元のシンプルなデザインに準拠） */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cf7-custom .mailform {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .cf7-custom .form-input,
    .cf7-custom .form-select,
    .cf7-custom .form-textarea,
    .cf7-custom .form-date {
        font-size: 16px; /* iOS のズームを防ぐ */
        padding: 12px 16px;
    }

    .cf7-custom .submit-more {
        font-size: 16px;
        height: 56px;
        max-width: 100%;
    }

    .cf7-custom .timebox {
        padding: 16px;
    }
}

/* ダークモード対応は削除（ライトモードのみ） */

/* ========================================
   UX改善機能のスタイル
   ========================================*/

/* インラインエラーメッセージ */
.inline-error {
    display: block;
    color: #ff5353;
    font-size: 12px;
    margin-top: 6px;
    font-weight: bold;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invalid-email,
.invalid-tel {
    border-color: #ff5353 !important;
    background: #fff5f5 !important;
}

/* エラーサマリー */
.error-summary {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid #ff5353;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 25px;
    animation: shake 0.5s;
    box-shadow: 0 4px 12px rgba(255, 83, 83, 0.2);
}

.error-summary strong {
    color: #ff5353;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.error-summary p {
    color: #333;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* エラーリスト */
.error-summary .error-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 12px 16px;
}

.error-summary .error-list li {
    color: #ff5353;
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0;
    padding-left: 8px;
    border-left: 3px solid #ff5353;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* タッチ中の視覚フィードバック */
.cf7-custom .radio-cards .wpcf7-list-item-label.touching {
    transform: scale(0.98);
    opacity: 0.9;
}

/* モバイル最適化 */
@media (max-width: 768px) {
    .error-summary {
        padding: 14px 16px;
    }

    .error-summary strong {
        font-size: 14px;
    }

    .error-summary p {
        font-size: 13px;
    }
}

/* ========================================
   確認モーダル
   ========================================*/

/* モーダル開時のbody */
body.cf7-modal-open {
    overflow: hidden;
}

/* モーダルオーバーレイ */
.cf7-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cf7-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* モーダルコンテンツ */
.cf7-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.cf7-modal-overlay.is-active .cf7-modal-content {
    transform: translateY(0) scale(1);
}

/* モーダルヘッダー */
.cf7-modal-header {
    padding: 24px 28px 16px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.cf7-modal-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.cf7-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* モーダルボディ */
.cf7-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}

/* 確認リスト */
.cf7-confirm-list {
    margin: 0;
    padding: 0;
}

.cf7-confirm-item {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cf7-confirm-item:last-child {
    border-bottom: none;
}

.cf7-confirm-item dt {
    width: 35%;
    font-weight: 700;
    color: #333;
    font-size: 14px;
    padding-right: 12px;
}

.cf7-confirm-item dd {
    width: 65%;
    margin: 0;
    color: #555;
    font-size: 15px;
    word-break: break-word;
}

/* モーダルフッター */
.cf7-modal-footer {
    padding: 20px 28px 24px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* モーダルボタン */
.cf7-modal-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.cf7-modal-btn-back {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.cf7-modal-btn-back:hover {
    background: #eee;
    border-color: #ccc;
}

.cf7-modal-btn-submit {
    background: linear-gradient(135deg, #ff5353 0%, #e64848 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 83, 83, 0.3);
}

.cf7-modal-btn-submit:hover {
    background: linear-gradient(135deg, #e64848 0%, #d43a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 83, 83, 0.4);
}

/* 確認内容が空の場合 */
.cf7-confirm-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

/* ========================================
   送信完了演出モーダル
   ========================================*/

.cf7-success-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.cf7-success-content {
    background: linear-gradient(135deg, #fff 0%, #f8fff8 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.cf7-success-overlay.is-active .cf7-success-content {
    transform: translateY(0) scale(1);
}

/* チェックマークアイコン */
.cf7-success-icon {
    margin-bottom: 24px;
}

.cf7-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.cf7-checkmark svg {
    width: 100%;
    height: 100%;
}

.cf7-checkmark-circle {
    stroke: #4caf50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: cf7-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cf7-checkmark-check {
    stroke: #4caf50;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cf7-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes cf7-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* 完了タイトル */
.cf7-success-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
    color: #333;
    animation: cf7-fadeInUp 0.5s ease 0.3s both;
}

/* 完了メッセージ */
.cf7-success-message {
    margin: 0 0 8px;
    font-size: 16px;
    color: #555;
    animation: cf7-fadeInUp 0.5s ease 0.4s both;
}

.cf7-success-submessage {
    margin: 0 0 28px;
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    animation: cf7-fadeInUp 0.5s ease 0.5s both;
}

/* 閉じるボタン */
.cf7-success-btn {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: cf7-fadeInUp 0.5s ease 0.6s both;
}

.cf7-success-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

@keyframes cf7-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 紙吹雪 */
.cf7-success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.cf7-confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: cf7-confetti-fall linear forwards;
    transform: rotate(0deg);
}

@keyframes cf7-confetti-fall {
    0% {
        top: -20px;
        transform: rotate(0deg) translateX(0);
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: rotate(720deg) translateX(50px);
        opacity: 0;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .cf7-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .cf7-modal-header {
        padding: 20px 20px 14px;
    }
    
    .cf7-modal-header h3 {
        font-size: 18px;
    }
    
    .cf7-modal-body {
        padding: 16px 20px;
    }
    
    .cf7-confirm-item {
        flex-direction: column;
    }
    
    .cf7-confirm-item dt {
        width: 100%;
        margin-bottom: 4px;
        font-size: 13px;
        color: #888;
    }
    
    .cf7-confirm-item dd {
        width: 100%;
        font-size: 15px;
    }
    
    .cf7-modal-footer {
        padding: 16px 20px 20px;
        flex-direction: column-reverse;
    }
    
    .cf7-modal-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .cf7-success-content {
        padding: 40px 24px;
    }
    
    .cf7-success-title {
        font-size: 24px;
    }
    
    .cf7-checkmark {
        width: 70px;
        height: 70px;
    }
}
