/**
 * Contact Form 7 カスタムスタイル
 * HUYC Arkhe Child Theme
 */

/* フォーム全体 */
.wpcf7 {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* フォームグループ */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.5rem;
}

/* ラベル */
.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #343a40;
}

/* 必須マーク */
.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    color: #c41e3a;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 入力フィールド */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* エラー状態 */
.wpcf7-not-valid {
    border-color: #c41e3a !important;
    background-color: #fff5f5 !important;
}

/* テキストエリア */
.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* チェックボックスとラジオボタン */
.wpcf7 .wpcf7-list-item {
    margin: 0 0 0.5rem 0;
    display: block;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #c41e3a;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background-color: #c41e3a;
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

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

/* 送信中 */
.wpcf7 .ajax-loader {
    display: inline-block;
    margin-left: 1rem;
    vertical-align: middle;
}

/* 送信完了メッセージ */
.wpcf7-mail-sent-ok {
    border: 2px solid #28a745;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* エラーメッセージ */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border: 2px solid #c41e3a;
    background-color: #fff5f5;
    color: #c41e3a;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* スパム保護 */
.wpcf7-spam-blocked {
    border: 2px solid #ffc107;
    background-color: #fff8e1;
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ファイルアップロード */
.wpcf7 input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e9ecef;
    border-radius: 4px;
    cursor: pointer;
}

.wpcf7 input[type="file"]:hover {
    border-color: #c41e3a;
    background-color: #fff5f5;
}

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