/* リセットとベーススタイル */
.contact-form-container {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* コンテナ */
.contact-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* プログレスバー */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
}

.progress-step.active .step-label {
    color: #4CAF50;
    font-weight: bold;
}

/* フォームグループ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.required {
    color: #f44336;
    margin-left: 0.2rem;
}

/* 入力フィールド */
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #333;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container textarea:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* プレースホルダー */
.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
    color: #999;
}

/* ファイルアップロード */
.file-upload-wrapper {
    border: 2px dashed #e0e0e0;
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    margin-top: 0.5rem;
}

.file-upload-wrapper:hover {
    border-color: #2196F3;
}

.file-notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* ボタン */
.button-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.back-button,
.submit-button {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    min-width: 160px;
}

.back-button {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
}

.back-button:hover {
    background: #f5f5f5;
}

.submit-button {
    background: #4CAF50;
    color: white;
}

.submit-button:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* 確認画面 */
.confirmation-content {
    margin: 0;
    padding: 0;
}

.confirmation-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.confirm-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.confirm-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 0.95rem;
}

.confirm-value {
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    color: #333;
    line-height: 1.6;
}

/* 完了メッセージ */
.completion-message {
    text-align: center;
    padding: 3rem 0;
}

.completion-message h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.completion-message p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* エラーメッセージ */
.error-message {
    background: #ffebee;
    color: #f44336;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 1rem;
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .back-button,
    .submit-button {
        width: 100%;
        min-width: auto;
    }

    .progress-bar {
        margin-bottom: 2rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
    
    .confirm-item {
        padding: 1rem;
    }
}

/* Cocoonテーマとの互換性対応 */
.entry-content .contact-form-container {
    margin: 2rem auto;
    max-width: 800px;
}

.entry-content .contact-form-container .form-group input,
.entry-content .contact-form-container .form-group textarea {
    width: 100% !important;
    max-width: none !important;
}

.entry-content .contact-form-container button {
    width: auto !important;
    max-width: none !important;
}