/* ================================================================
   お問い合わせ・無料見積りページ専用スタイル (contact.css)
   読み込み条件: is_page('contact') || is_page_template('page-contact.php')
   クラスプレフィックス: ct-
   共通コンポーネント: pg-fv / pg-breadcrumb / pg-cta / pg-sp-bar / pg-steps / pg-faq
================================================================ */

/* グローバルSP固定バーを非表示 */
body.contact-page #sp-bar {
    display: none;
}

/* ================================================================
   外枠ラッパー
================================================================ */
.ct-wrap {
    overflow-x: hidden;
}

.ct-wrap .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ct-wrap .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   フォームセクション（2カラム）
================================================================ */
.ct-form-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
}

/* ================================================================
   左カラム：お問い合わせ情報
================================================================ */
.ct-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ct-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.ct-info-card-icon {
    width: 44px;
    height: 44px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.ct-info-card-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ct-tel {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    text-decoration: none;
    margin-bottom: 4px;
    transition: opacity 0.2s ease;
}

.ct-tel:hover {
    opacity: 0.8;
}

.ct-info-hours {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
}

.ct-info-body {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin: 0;
}

/* 強みリスト */
.ct-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-feature-list li {
    font-size: 0.88rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-feature-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232d6b26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ================================================================
   右カラム：フォームエリア
================================================================ */
.ct-form-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
}

/* ショートコード未設定時のプレースホルダー */
.ct-form-placeholder {
    background: var(--green-pale);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ct-form-placeholder strong {
    display: block;
    color: var(--text-mid);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* プライバシーポリシー注記 */
.ct-privacy-note {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ================================================================
   WPForms スタイル上書き
================================================================ */
.ct-form-col .wpforms-container {
    margin: 0;
}

.ct-form-col .wpforms-field-label {
    font-weight: 700 !important;
    color: var(--green-dark) !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
}

.ct-form-col .wpforms-field input[type="text"],
.ct-form-col .wpforms-field input[type="email"],
.ct-form-col .wpforms-field input[type="tel"],
.ct-form-col .wpforms-field input[type="number"],
.ct-form-col .wpforms-field textarea,
.ct-form-col .wpforms-field select {
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: var(--white) !important;
    color: var(--text) !important;
}

.ct-form-col .wpforms-field input:focus,
.ct-form-col .wpforms-field textarea:focus,
.ct-form-col .wpforms-field select:focus {
    border-color: var(--green) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 38, 0.1) !important;
}

.ct-form-col .wpforms-field textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

.ct-form-col .wpforms-submit-container {
    margin-top: 8px !important;
    text-align: left !important;
}

.ct-form-col .wpforms-submit {
    background: var(--green) !important;
    border: 2px solid var(--green) !important;
    color: var(--white) !important;
    padding: 14px 40px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    letter-spacing: 0.02em !important;
    display: inline-block !important;
}

.ct-form-col .wpforms-submit:hover {
    background: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow) !important;
}

/* WPFormsエラーメッセージ */
.ct-form-col .wpforms-error-container,
.ct-form-col .wpforms-field .wpforms-error {
    color: #c0392b !important;
    font-size: 0.82rem !important;
    margin-top: 4px !important;
}

/* WPForms 確認メッセージ */
.ct-form-col .wpforms-confirmation-container-full {
    background: var(--green-light) !important;
    border-left: 4px solid var(--green) !important;
    border-radius: 4px !important;
    padding: 20px 24px !important;
    color: var(--green-dark) !important;
    font-weight: 700 !important;
}

/* ================================================================
   レスポンシブ：タブレット（960px 以下）
================================================================ */
@media (max-width: 960px) {
    .ct-form-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ct-info-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ================================================================
   レスポンシブ：スマートフォン（720px 以下）
================================================================ */
@media (max-width: 720px) {
    .ct-info-col {
        grid-template-columns: 1fr;
    }

    .ct-form-col {
        padding: 28px 20px;
    }
}
