/**
 * Contact Page Styles
 * お問い合わせページ用スタイル
 * 
 * @package BIG_Theme
 * @since 1.0.0
 */

/* ============================================
   Contact Page Header (プライバシーポリシーページと同じスタイル)
   ============================================ */
.contact-page .page-header,
body.contact-page .page-header {
    background: linear-gradient(135deg, #2D3748 0%, #1a202c 100%);
    color: white;
    padding: 230px 20px 60px !important; /* ヘッダー（150px）+ 余白（80px） */
    text-align: center;
    margin-bottom: 60px;
    margin-top: 0;
}

/* wpadminbarが表示されている場合の調整 */
body.admin-bar.contact-page .page-header,
body.admin-bar .contact-page .page-header {
    padding-top: 150px !important; /* wpadminbar（32px）+ ヘッダー（150px）+ 余白（80px） */
}

@media screen and (max-width: 782px) {
    body.admin-bar.contact-page .page-header,
    body.admin-bar .contact-page .page-header {
        padding-top: 150px !important; /* wpadminbar（46px）+ ヘッダー（150px）+ 余白（80px） */
    }
}

@media (max-width: 768px) {
    .contact-page .page-header,
    body.contact-page .page-header {
        padding: 150px 20px 60px !important; /* ヘッダー（auto）+ 余白（150px） */
    }
    
    /* wpadminbarが表示されている場合の調整 */
    body.admin-bar.contact-page .page-header,
    body.admin-bar .contact-page .page-header {
        padding-top: 150px !important; /* wpadminbar（46px）+ ヘッダー（auto）+ 余白（150px） */
    }
}

/* ============================================
   Contact Page Content
   ============================================ */

/* ============================================
   Contact Info Section
   ============================================ */
.contact-info-section {
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-info-item {
    text-align: center;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #2D3748;
    margin-bottom: 10px;
}

.contact-info-content p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
}

.contact-info-content a {
    color: #D4AF37;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info-content a:hover {
    opacity: 0.7;
}

.contact-hours {
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 5px;
}

/* ============================================
   Contact Form 7 Styles
   ============================================ */
.page-container .wpcf7 {
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.wpcf7 form {
    max-width: 100%;
}

.page-container .wpcf7 label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #2D3748;
    margin-bottom: 8px;
}

.page-container .wpcf7 input[type="text"],
.page-container .wpcf7 input[type="email"],
.page-container .wpcf7 input[type="tel"],
.page-container .wpcf7 input[type="url"],
.page-container .wpcf7 textarea,
.page-container .wpcf7 select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background: #F7FAFC;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 25px;
}

.page-container .wpcf7 input:focus,
.page-container .wpcf7 textarea:focus,
.page-container .wpcf7 select:focus {
    outline: none;
    border-color: #D4AF37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.page-container .wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

/* プレースホルダーのスタイル */
.page-container .wpcf7 input::placeholder,
.page-container .wpcf7 textarea::placeholder {
    color: #A0AEC0;
}

/* 必須マーク */
.page-container .wpcf7 .wpcf7-not-valid-tip {
    color: #E53E3E;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 15px;
    display: block;
}

/* プライバシーポリシー同意チェックボックス */
.page-container .wpcf7 .wpcf7-acceptance {
    margin: 30px 0;
}

.page-container .wpcf7 .wpcf7-list-item {
    margin: 0;
}

.page-container .wpcf7 input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
}

.page-container .wpcf7 .wpcf7-list-item-label {
    font-size: 14px;
    font-weight: normal;
    color: #4A5568;
}

.page-container .wpcf7 .wpcf7-list-item-label a {
    color: #D4AF37;
    text-decoration: underline;
}

/* 送信ボタン */
.page-container .wpcf7 input[type="submit"],
.page-container .wpcf7 button[type="submit"] {
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 18px 60px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: auto;
    margin-top: 10px;
}

.page-container .wpcf7 input[type="submit"]:hover,
.page-container .wpcf7 button[type="submit"]:hover {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.3);
}

.page-container .wpcf7 input[type="submit"]:active,
.page-container .wpcf7 button[type="submit"]:active {
    transform: translateY(0);
}

/* 送信中のスピナー */
.page-container .wpcf7 .ajax-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 送信完了・エラーメッセージ */
.page-container .wpcf7-response-output {
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 30px;
    border: none;
}

.page-container .wpcf7-mail-sent-ok {
    background: #C6F6D5;
    color: #22543D;
    border-left: 4px solid #38A169;
}

.page-container .wpcf7-validation-errors,
.page-container .wpcf7-acceptance-missing {
    background: #FED7D7;
    color: #742A2A;
    border-left: 4px solid #E53E3E;
}

.page-container .wpcf7-mail-sent-ng,
.page-container .wpcf7-aborted {
    background: #FEEBC8;
    color: #7C2D12;
    border-left: 4px solid #ED8936;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .page-container .wpcf7 input[type="text"],
    .page-container .wpcf7 input[type="email"],
    .page-container .wpcf7 input[type="tel"],
    .page-container .wpcf7 textarea {
        padding: 12px 15px;
        font-size: 15px;
    }

    .page-container .wpcf7 input[type="submit"],
    .page-container .wpcf7 button[type="submit"] {
        width: 100%;
        padding: 15px 30px;
    }
}

/* ============================================
   Additional Enhancements
   ============================================ */

/* フォームのフェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-container .wpcf7 {
    animation: fadeIn 0.6s ease-out;
}