/* =====================================================
   Contact Form Tabs - PoC相談 / 資料請求・お見積り
   ===================================================== */

.contact-tabs {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 8px;
}

.contact-tab {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: -2px; /* overlap parent border */
    font-family: inherit;
}

.contact-tab:hover {
    color: #475569;
    background: #f8fafc;
}

.contact-tab[aria-selected="true"] {
    color: #2563EB;
    border-bottom-color: #2563EB;
    font-weight: 700;
}

.contact-tab__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-tab__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* --- タブパネル --- */
.contact-tabpanel {
    display: none;
}

.contact-tabpanel[aria-hidden="false"] {
    display: block;
}

/* --- タブ別サブコピー --- */
.contact-subcopy {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: #eff6ff;
    border-left: 4px solid #2563EB;
    border-radius: 8px;
    color: #1e3a5f;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- 準備中バナー（タブBのStep1） --- */
.contact-preparing-banner {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    color: #78350f;
    font-size: 0.88rem;
    line-height: 1.7;
}

.contact-preparing-banner strong {
    color: #78350f;
    font-weight: 700;
}

/* --- 資料ダウンロード ラジオボタングループ --- */
.document-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.document-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.document-radio-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.document-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #2563EB;
}

.document-radio-item:has(input[type="radio"]:checked) {
    background: #eff6ff;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.document-radio-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.document-radio-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.document-radio-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.document-radio-error {
    display: none;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 6px;
    padding: 0 4px;
}

.document-radio-group.error + .document-radio-error {
    display: block;
}

/* --- Disabled送信ボタン + 注釈 --- */
.form-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
}

.form-submit-btn:disabled:hover {
    background: #94a3b8;
}

.form-submit-note {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #78350f;
    margin-top: 10px;
    font-weight: 600;
}

/* --- モバイル --- */
@media (max-width: 640px) {
    .contact-tabs {
        padding: 0;
    }

    .contact-tab {
        padding: 14px 10px;
        font-size: 0.82rem;
    }

    .contact-tab__icon {
        width: 14px;
        height: 14px;
    }

    .document-checkbox-group {
        grid-template-columns: 1fr;
    }
}
