﻿/* HereSEO Merchant AI - Frontend Styles */
.hsma-lead-form-wrap { background: #f8f9fa; padding: 24px; border-radius: 12px; margin: 20px 0; border: 1px solid #e8e8e8; }
.hsma-lead-form-wrap h3 { margin: 0 0 8px; font-size: 20px; color: #333; }
.hsma-lead-form-wrap p { margin: 0 0 12px; }
.hsma-lead-form-wrap input, .hsma-lead-form-wrap select, .hsma-lead-form-wrap textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.hsma-lead-form-wrap input:focus, .hsma-lead-form-wrap select:focus, .hsma-lead-form-wrap textarea:focus {
    border-color: #1890ff; outline: none; box-shadow: 0 0 0 2px rgba(24,144,255,.2);
}
.hsma-lead-form-wrap .button-primary { background: #1890ff; border: none; color: #fff; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.hsma-lead-form-wrap .button-primary:hover { background: #096dd9; }
.hsma-lead-msg { margin-top: 12px; padding: 10px; border-radius: 6px; display: none; }
.hsma-lead-msg.success { display: block; background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.hsma-lead-msg.error { display: block; background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }

.hsma-booking-form { background: #fff; padding: 24px; border-radius: 12px; margin: 20px 0; border: 1px solid #e8e8e8; }
.hsma-booking-form h3 { margin: 0 0 8px; font-size: 20px; }
.hsma-booking-form input, .hsma-booking-form select { width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px; margin-bottom: 12px; box-sizing: border-box; }
.hsma-booking-form .button-primary { background: #52c41a; border: none; color: #fff; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.hsma-booking-form .button-primary:hover { background: #389e0d; }
.hsma-booking-msg { margin-top: 12px; padding: 10px; border-radius: 6px; display: none; }

.hsma-claim-form { background: #fffbe6; padding: 24px; border-radius: 12px; margin: 20px 0; border: 1px solid #ffe58f; }
.hsma-claim-form input, .hsma-claim-form select { width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px; margin-bottom: 12px; box-sizing: border-box; }
.hsma-claim-msg { margin-top: 12px; padding: 10px; border-radius: 6px; display: none; }

.hsma-badge { display: inline-flex; align-items: center; gap: 6px; background: #f6ffed; padding: 6px 14px; border-radius: 20px; border: 1px solid #b7eb8f; font-size: 14px; margin: 10px 0; }
.hsma-badge-verified { background: #e6f7ff; border-color: #91d5ff; }
.hsma-badge-verified-text { color: #1890ff; font-weight: 600; }

.hsma-claim-action { margin: 16px 0; }
.hsma-claim-btn { display: inline-block; padding: 10px 24px; background: #fa8c16; color: #fff; border-radius: 6px; text-decoration: none; }
.hsma-claim-btn:hover { background: #d46b08; color: #fff; }

.hsma-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.hsma-case-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 1px solid #f0f0f0; }
.hsma-case-img img { width: 100%; height: 200px; object-fit: cover; }
.hsma-case-card h4 { margin: 12px 16px 8px; font-size: 16px; }
.hsma-case-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; font-size: 13px; color: #666; }
.hsma-case-desc { padding: 8px 16px 16px; font-size: 14px; color: #333; }

.hsma-service-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hsma-service-table th { background: #fafafa; padding: 12px 16px; text-align: left; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.hsma-service-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }

.hsma-profile-form { background: #fff; padding: 24px; border-radius: 12px; margin: 20px 0; }
.hsma-profile-form textarea { width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px; box-sizing: border-box; }

.hsma-case-form { background: #fff; padding: 24px; border-radius: 12px; margin: 20px 0; border: 1px solid #e8e8e8; }
.hsma-case-form input, .hsma-case-form textarea { width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px; box-sizing: border-box; margin-bottom: 12px; }

.hsma-merchant-info { background: #f8f9fa; padding: 20px; border-radius: 12px; margin: 20px 0; }
.hsma-merchant-info h3 { margin: 0 0 12px; font-size: 18px; color: #333; }
.hsma-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hsma-gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

/* 商家详情页顶部认领按钮 */
.hsma-claim-hero-btn:hover {
    background: #d46b08 !important;
    color: #fff !important;
}
.hsma-hero-badge {
    cursor: default;
}
/* 侧边栏认领按钮 */
.hsma-claim-hero-btn:hover {
    background: #d46b08 !important;
    color: #fff !important;
}
/* 底部表单区域 */
.hsma-footer-forms {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}
.hsma-footer-forms .hsma-lead-form-wrap,
.hsma-footer-forms .hsma-booking-form,
.hsma-footer-forms .hsma-claim-form {
    margin-top: 24px;
}
/* 底部表单容器 - 自动定位在details后面 */
.hsma-footer-forms {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    clear: both;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hs-business-hero-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .hs-business-hero-actions a,
    .hs-business-hero-actions .hsma-claim-hero-btn,
    .hs-business-hero-actions .hsma-claimed-badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    .hsma-footer-forms {
        padding: 16px 12px 32px;
    }
    .hsma-claim-form,
    .hsma-lead-form-wrap,
    .hsma-booking-form {
        padding: 16px !important;
        margin: 12px 0 !important;
    }
    .hsma-claim-form h3,
    .hsma-lead-form-wrap h3,
    .hsma-booking-form h3 {
        font-size: 17px !important;
    }
}

/* 认领按钮强调样式 */
.hsma-claim-hero-btn {
    transition: background 0.2s, transform 0.1s;
}
.hsma-claim-hero-btn:hover {
    background: #d46b08 !important;
    transform: scale(1.03);
}

/* Tabbed forms */
.hsma-tabs { margin: 20px 0; }
.hsma-tab-nav { display: flex; border-bottom: 2px solid #e8e8e8; gap: 0; }
.hsma-tab-btn {
    flex: 1; padding: 12px 16px; border: none; background: #fafafa;
    font-size: 15px; font-weight: 600; cursor: pointer; color: #888;
    transition: all .2s; border-radius: 8px 8px 0 0; position: relative;
}
.hsma-tab-btn:hover { color: #333; background: #f0f0f0; }
.hsma-tab-btn.active { color: #1890ff; background: #fff; }
.hsma-tab-btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: #1890ff;
}
.hsma-tab-content { background: #fff; border: 1px solid #e8e8e8; border-top: none; border-radius: 0 0 8px 8px; padding: 20px; }
.hsma-tab-panel { display: none; }
.hsma-tab-panel.active { display: block; }
.hsma-tab-panel .hsma-lead-form-wrap,
.hsma-tab-panel .hsma-booking-form { margin: 0; border: none; padding: 0; background: transparent; }
@media (max-width: 480px) {
    .hsma-tab-btn { font-size: 14px; padding: 10px 8px; }
    .hsma-tab-content { padding: 12px; }
}
/* Merchant Profile Form */
.hsma-profile-form { background: #fff; padding: 24px; border-radius: 12px; }
.hsma-profile-form h3 { margin: 0 0 16px; font-size: 18px; color: #001529; }
.hsma-profile-form h4 { margin: 0 0 12px; font-size: 15px; color: #333; }
.hsma-profile-form label { font-weight: 600; display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.hsma-profile-form input.widefat,
.hsma-profile-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; box-sizing: border-box; transition: border-color .2s; }
.hsma-profile-form input.widefat:focus,
.hsma-profile-form textarea:focus { border-color: #1890ff; outline: none; box-shadow: 0 0 0 2px rgba(24,144,255,.2); }
.hsma-profile-form textarea { min-height: 80px; line-height: 1.5; }
.hsma-profile-form p { margin: 0 0 16px; }
.hsma-profile-form hr { margin: 20px 0; border: none; border-top: 1px solid #e8e8e8; }
.hsma-profile-form .button-primary { background: #1890ff; border: none; color: #fff; padding: 10px 32px; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 600; }
.hsma-profile-form .button-primary:hover { background: #096dd9; }

/* Claimed Merchant Info on Frontend */
.hsma-merchant-info { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
    .hsma-biz-contact table tr { display: block; padding: 4px 0; }
    .hsma-biz-contact table td { display: block; padding: 2px 0 !important; }
    .hsma-biz-contact table td:first-child { font-weight: 600; color: #333 !important; }
}

/* Claimed Merchant Info Card */
.hsma-claimed-info-card { animation: fadeIn .4s ease; transition: all .3s ease; }
.hsma-claimed-info-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,144,255,.15) !important; }
@media (max-width: 600px) {
    .hsma-claimed-info-card { padding: 16px !important; margin: 12px 0 !important; }
    .hsma-claimed-info-card table,
    .hsma-claimed-info-card table tbody,
    .hsma-claimed-info-card table tr,
    .hsma-claimed-info-card table td {
        display: block;
        width: 100%;
    }
    .hsma-claimed-info-card table td {
        padding: 4px 0 !important;
    }
}
