/**
 * ================================================================================
 * Contact Form 7 - キャンペーン応募フォーム用CSS
 * ================================================================================
 *
 * @package mogmogrecipe
 * ================================================================================
 */

/* ===================================
   フォーム全体
   =================================== */
.wpcf7 .h-adr {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   フィールド共通
   =================================== */
.wpcf7 .form-field {
    margin-bottom: 1.5em;
}

.wpcf7 .form-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

/* ===================================
   必須マーク
   =================================== */
.wpcf7 .required {
    color: #e53935;
    font-size: 0.75em;
    margin-left: 0.5em;
    padding: 0.1em 0.4em;
    border: 1px solid #e53935;
    border-radius: 3px;
    vertical-align: middle;
}

/* ===================================
   入力フィールド
   =================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; /* iOS zoom防止 */
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

/* ===================================
   郵便番号フィールド
   =================================== */
.wpcf7 input.p-postal-code {
    max-width: 200px;
}

.wpcf7 .postal-note {
    display: block;
    margin-top: 0.3em;
    font-size: 0.85em;
    color: #666;
}

/* ===================================
   自動入力フィールドの視覚的フィードバック
   =================================== */
.wpcf7 input.p-region,
.wpcf7 input.p-locality,
.wpcf7 input.p-street-address {
    background-color: #fafafa;
    transition: background-color 0.3s ease;
}

.wpcf7 input.p-region:not(:placeholder-shown),
.wpcf7 input.p-locality:not(:placeholder-shown),
.wpcf7 input.p-street-address:not(:placeholder-shown) {
    background-color: #fff;
}

/* ===================================
   同意チェックボックス
   =================================== */
.wpcf7 .acceptance-field {
    margin: 2em 0;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

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

.wpcf7 .acceptance-field a {
    color: #4a90a4;
    text-decoration: underline;
}

/* ===================================
   送信ボタン
   =================================== */
.wpcf7 .form-submit {
    text-align: center;
    margin-top: 2em;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 1em 3em;
    background: #e53935;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* ===================================
   バリデーションエラー
   =================================== */
.wpcf7 .wpcf7-not-valid {
    border-color: #e53935 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #e53935;
    font-size: 0.85em;
    margin-top: 0.3em;
}

/* ===================================
   送信完了・エラーメッセージ
   =================================== */
.wpcf7 .wpcf7-response-output {
    margin: 2em 0;
    padding: 1em;
    border-radius: 4px;
}

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

/* ===================================
   Turnstile バッジ（週明け追加後）
   =================================== */
.wpcf7 .cf-turnstile {
    margin: 1.5em 0;
}

/* ===================================
   レスポンシブ対応
   =================================== */
@media screen and (max-width: 600px) {
    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 1em;
    }

    .wpcf7 input.p-postal-code {
        max-width: 100%;
    }
}

/* ===================================
   TCD テーマとの競合対策（必要に応じて有効化）
   =================================== */
/*
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    height: auto !important;
    line-height: normal !important;
}
*/
