/* ==========================================================================
   ユアブランド（葬儀・funeral）専用 お問い合わせフォームスタイル
   ========================================================================== */

/* --- お問い合わせフォーム セクション全体のスタイル --- */
.contact-section {
    padding: 100px 0;
    background-color: #faf9f6; /* ★紫を廃止し、ロゴに調和する温かい極薄アイボリーに */
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(214, 126, 0, 0.05); /* 影にもほんのり暖色をプラス */
}

/* ヘッダー部分 */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.contact-header p {
    color: #f59600; /* ★ロゴのメインオレンジを適用 */
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* フォームアイテムのレイアウト */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

.form-group label .required {
    background: #f59600; /* ★必須バッジもロゴのオレンジに統一して上品に */
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールドの装飾 */
.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    outline: none;
}

/* フォーカス時の色合いをオレンジ系へ変更 */
.form-control:focus {
    border-color: #f59600; /* ★ロゴオレンジ */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 150, 0, 0.12); /* 優しいオレンジの光彩 */
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* 送信ボタン（ユアブランド・オレンジ仕様） */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 18px 0;
    background: #f59600; /* ★ロゴのメインオレンジ */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 150, 0, 0.25);
}

.btn-submit:hover {
    background: #d67e00; /* ★ホバー時は少し深みのあるマスタードオレンジへ */
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(214, 126, 0, 0.35);
}

/* 完了・エラーメッセージ */
.status-msg {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    line-height: 1.6;
}

.status-msg.success {
    background: #fdfaf2; /* オレンジになじむ薄いベージュ系 */
    color: #d67e00;
    border: 1px solid #f5e4c3;
}

.status-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 完了後の「トップページへ戻る」リンク */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid #f59600; /* ★線の色をオレンジに */
    color: #f59600; /* ★文字色をオレンジに */
    background-color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #f59600;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(245, 150, 0, 0.2);
    transform: translateY(-2px);
}

/* 前に戻るリンクの位置調整 */
.back-before-submit {
    margin-bottom: 10px;
}
.back-before-submit .btn-back {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-color: #ccc;
    color: #666;
}
.back-before-submit .btn-back:hover {
    background-color: #666;
    color: #fff;
    box-shadow: none;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .contact-header h2 {
        font-size: 1.6rem;
    }
}