/* Petition Page Styles */

.petition-section {
    padding: 2rem 0 4rem;
}

.petition-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .petition-grid {
        grid-template-columns: 1fr;
    }
}

.petition-form-card,
.petition-seo-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.petition-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input,
.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #94a3b8; /* Solid border to make it visible */
    background: #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-container {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
    background: #ffffff; /* Solid white background */
    border: 1px solid #94a3b8;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-main);
}

.suggestion-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.suggestion-region {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.btn-generate {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* SEO Card */
.petition-seo-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.petition-seo-card h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-primary);
}

.petition-seo-card p,
.petition-seo-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.petition-seo-card ul {
    padding-left: 1.2rem;
}



/* SEO Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.seo-table th, .seo-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}
.seo-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}
.seo-table tr:last-child td {
    border-bottom: none;
}
.seo-table tr:nth-child(even) {
    background-color: #fcfcfc;
}


/* Consultation Modal & Contextual Block */
.consult-context-block {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.consult-context-block h3 {
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.consult-context-block p {
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.consult-context-block ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #334155;
}
.consult-context-block ul li {
    margin-bottom: 0.5rem;
}
.consult-btn {
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}
.consult-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.consult-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.consult-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.consult-modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.consult-modal-overlay.active .consult-modal-content {
    transform: translateY(0);
}
.consult-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.consult-modal-close:hover {
    color: #0f172a;
}
.consult-modal-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}
.consult-modal-desc {
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.consult-form .pet-form-group {
    margin-bottom: 1.2rem;
}
.consult-submit-btn {
    background: #10b981;
    margin-top: 0.5rem;
}
.consult-submit-btn:hover {
    background: #059669;
}
.consult-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.consult-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    border-top: 1px solid #e2e8f0;
    z-index: 1;
}
.consult-divider span {
    background: white;
    padding: 0 10px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
.consult-call-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}
.consult-call-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
    transform: none;
}

/* Modal Form Beautiful Overrides */
.consult-form {
    margin-top: 1.5rem;
}
.consult-form .pet-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #f8fafc;
}
.consult-form .pet-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
}
.consult-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-align: left;
}
.consult-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    border-radius: 8px;
    background: #10b981;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}
.consult-submit-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(16, 185, 129, 0.3);
}
.consult-call-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.consult-modal-content {
    padding: 2.5rem 2.5rem;
}


.consult-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 136, 204, 0.2);
}
.consult-tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 136, 204, 0.3);
}
