/* ── Tool base (shared across all SEO tools) ─────────────────────────── */
.mt-tool-section { padding:60px 0 80px; background:var(--secondary-color,#F8F8F8); }
.mt-tool-card { background:#fff; border-radius:20px; padding:32px; box-shadow:0 10px 40px rgba(3,29,54,.06); height:100%; display:flex; flex-direction:column; }
.mt-tool-card-head { margin-bottom:22px; }
.mt-tool-card-head h4 { font-size:18px; font-weight:700; color:var(--primary-color,#031D36); margin-bottom:4px; }
.mt-tool-card-head p  { font-size:14px; color:#6b7a8d; margin-bottom:0; }

/* ── Form elements ───────────────────────────────────────────────────── */
.mt-form-group { margin-bottom:18px; }
.mt-form-group label { display:block; font-size:13px; font-weight:600; color:var(--primary-color); margin-bottom:6px; }
.mt-form-group input, .mt-form-group select, .mt-form-group textarea {
    width:100%; border:1px solid rgba(3,29,54,.12); border-radius:10px;
    padding:10px 14px; font-size:14px; background:var(--secondary-color); color:var(--primary-color); outline:none;
    transition:border-color .2s;
}
.mt-form-group input:focus, .mt-form-group select:focus, .mt-form-group textarea:focus { border-color:var(--accent-color,#0A49A6); }
.mt-form-group textarea { resize:vertical; line-height:1.6; }

/* ── SERP Preview specific ───────────────────────────────────────────── */

/* Shared section label & counter */
.seo-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #6b7a8d;
    border-bottom: 1px solid rgba(3,29,54,.08);
    padding-bottom: 8px;
    margin-bottom: 16px;
    margin-top: 4px;
}
.seo-char-counter {
    float: right;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(3,29,54,.06);
    color: #6b7a8d;
    transition: background .2s, color .2s;
}
.seo-char-counter.over { background: rgba(239,68,68,.12); color: #dc2626; }
.seo-char-counter.ok   { background: rgba(34,197,94,.12);  color: #16a34a; }

/* Device toggle */
.serp-device-toggle {
    display: flex;
    gap: 6px;
}
.serp-dev-btn {
    background: rgba(3,29,54,.06);
    border: 1px solid rgba(3,29,54,.12);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    color: #6b7a8d;
    transition: all .18s;
}
.serp-dev-btn.active {
    background: var(--primary-color, #031D36);
    color: #fff;
    border-color: transparent;
}

/* Cosmetic Google search bar */
.serp-google-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(32,33,36,.1);
}
.serp-google-logo {
    font-size: 22px;
    font-weight: 700;
    color: #4285F4;
    font-family: 'Product Sans', Arial, sans-serif;
    flex-shrink: 0;
}
.serp-google-input {
    flex: 1;
    font-size: 14px;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Preview wrapper */
.serp-preview-wrap {
    background: #fff;
    border: 1px solid rgba(3,29,54,.08);
    border-radius: 12px;
    padding: 20px;
}
.serp-preview-wrap.mobile {
    max-width: 360px;
    margin: 0 auto;
}

/* Google result card */
.serp-result-card {
    font-family: Arial, sans-serif;
    max-width: 600px;
}
.serp-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.serp-favicon {
    font-size: 16px;
    flex-shrink: 0;
}
.serp-result-site {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
}
.serp-result-url {
    font-size: 12px;
    color: #4d5156;
    display: block;
    margin-bottom: 2px;
}
.serp-result-title {
    font-size: 20px;
    color: #1a0dab;
    line-height: 1.3;
    cursor: pointer;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.serp-result-title:hover { text-decoration: underline; }
.serp-result-title.truncated { color: #c0392b; }

.serp-result-desc {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Mobile overrides */
.serp-preview-wrap.mobile .serp-result-title { font-size: 17px; }
.serp-preview-wrap.mobile .serp-result-desc  { font-size: 13px; }

/* Status row */
.serp-status-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(3,29,54,.07);
}
.serp-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7a8d;
}
.serp-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}
.serp-status-dot.ok   { background: #22c55e; }
.serp-status-dot.warn { background: #f59e0b; }
.serp-status-dot.over { background: #ef4444; }

/* Tips */
.serp-tips {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.serp-tip {
    font-size: 12px;
    color: #6b7a8d;
    display: flex;
    align-items: center;
    gap: 6px;
}
.serp-tip i { color: #6246ea; font-size: 11px; }
