/**
 * Top Pneus - Styles for Static Pages (FAQ, About, Contact)
 *
 * @package TopPneus
 * @since 3.5.0
 */

/* ==========================================================================
   FAQ PAGE
   ========================================================================== */

.tp-page-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--tp-space-md) var(--tp-space-lg);
}

.tp-faq-category {
    margin-bottom: var(--tp-space-xl, 2rem);
}

.tp-faq-category-title {
    font-size: var(--tp-text-xl, 1.25rem);
    font-weight: 700;
    color: var(--tp-gray-900);
    margin: 0 0 var(--tp-space-sm);
    padding-bottom: var(--tp-space-xs, 0.25rem);
    border-bottom: 2px solid var(--tp-red, #e53e3e);
}

/* Reuses .tp-faq-list, .tp-faq-item, .tp-faq-question, .tp-faq-answer
   from _product.css — same accordion pattern */

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.tp-page-about {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--tp-space-md) var(--tp-space-lg);
}

.tp-about-hero {
    text-align: center;
    margin-bottom: var(--tp-space-lg, 1.5rem);
}

.tp-about-hero h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--tp-gray-900);
    margin: 0 0 8px;
    line-height: 1.3;
}

.tp-about-subtitle {
    font-size: var(--tp-text-lg, 1.125rem);
    color: var(--tp-gray-600);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section with alternating backgrounds for visual rhythm */
.tp-about-section {
    margin-bottom: 0;
    padding: var(--tp-space-lg, 1.5rem) 0;
    border-bottom: 1px solid var(--tp-gray-100, #f0f0f0);
}

.tp-about-section:last-of-type {
    border-bottom: none;
}

.tp-about-section-alt {
    background: var(--tp-gray-50, #f7fafc);
    margin-left: calc(-1 * var(--tp-space-lg, 1.5rem));
    margin-right: calc(-1 * var(--tp-space-lg, 1.5rem));
    padding-left: var(--tp-space-lg, 1.5rem);
    padding-right: var(--tp-space-lg, 1.5rem);
    border-radius: var(--tp-radius-lg, 8px);
}

/* Section header with icon */
.tp-about-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-about-section-header h2 {
    margin: 0;
}

.tp-about-section-icon {
    flex-shrink: 0;
    color: var(--tp-red, #e53e3e);
    display: flex;
    align-items: center;
}

.tp-about-section-icon svg {
    width: 28px;
    height: 28px;
}

.tp-about-section h2 {
    font-size: var(--tp-text-xl, 1.25rem);
    font-weight: 700;
    color: var(--tp-gray-900);
    margin: 0 0 12px;
}

.tp-about-section p {
    font-size: var(--tp-text-base, 1rem);
    line-height: 1.7;
    color: var(--tp-gray-700);
    margin: 0 0 12px;
}

.tp-about-section p:last-of-type {
    margin-bottom: 0;
}

/* Intermediate CTA inside sections */
.tp-about-section-cta {
    margin-top: 16px;
}

.tp-about-section-cta .tp-btn-sm {
    padding: 8px 20px;
    font-size: var(--tp-text-sm, 0.875rem);
}

.tp-about-section-cta .tp-btn-secondary {
    padding: 8px 20px;
    font-size: var(--tp-text-sm, 0.875rem);
    background: transparent;
    color: var(--tp-gray-700);
    border: 1px solid var(--tp-gray-300, #d1d5db);
    border-radius: var(--tp-radius-md, 6px);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.tp-about-section-cta .tp-btn-secondary:hover {
    border-color: var(--tp-red, #e53e3e);
    color: var(--tp-red, #e53e3e);
}

/* Bullet list inside sections */
.tp-about-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.tp-about-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: var(--tp-text-base, 1rem);
    line-height: 1.7;
    color: var(--tp-gray-700);
}

.tp-about-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--tp-red, #e53e3e);
    border-radius: 50%;
}

.tp-about-bullets li strong {
    color: var(--tp-gray-900);
}

/* Values grid */
.tp-about-values {
    margin-bottom: var(--tp-space-xl, 2rem);
}

.tp-about-values h2 {
    font-size: var(--tp-text-xl, 1.25rem);
    font-weight: 700;
    color: var(--tp-gray-900);
    margin: 0 0 var(--tp-space-md);
    text-align: center;
}

.tp-about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tp-space-md);
}

.tp-about-value-card {
    padding: 24px;
    background: var(--tp-gray-50, #f7fafc);
    border-radius: var(--tp-radius-lg, 8px);
    border: 1px solid var(--tp-gray-200);
    text-align: center;
}

.tp-about-value-icon {
    color: var(--tp-red, #e53e3e);
    margin-bottom: 12px;
}

.tp-about-value-card h3 {
    font-size: var(--tp-text-base, 1rem);
    font-weight: 600;
    color: var(--tp-gray-900);
    margin: 0 0 8px;
}

.tp-about-value-card p {
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Stats bar — positioned right after hero for immediate credibility */
.tp-about-stats {
    display: flex;
    justify-content: center;
    gap: var(--tp-space-lg, 1.5rem);
    flex-wrap: wrap;
    margin-bottom: var(--tp-space-xl, 2rem);
    padding: 20px 24px;
    background: var(--tp-gray-900);
    border-radius: var(--tp-radius-lg, 8px);
}

.tp-about-stat {
    text-align: center;
    min-width: 120px;
}

.tp-about-stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--tp-white);
}

.tp-about-stat-label {
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-gray-400, #a0aec0);
}

/* Trust section */
.tp-about-trust {
    text-align: center;
    margin-bottom: var(--tp-space-xl, 2rem);
}

.tp-about-trust h2 {
    font-size: var(--tp-text-xl, 1.25rem);
    font-weight: 700;
    margin: 0 0 8px;
}

.tp-about-trust p {
    color: var(--tp-gray-600);
    margin: 0 0 var(--tp-space-md);
}

.tp-about-trustindex {
    max-width: 600px;
    margin: 0 auto;
}

/* Dual CTA */
.tp-about-cta {
    text-align: center;
    margin-top: var(--tp-space-lg, 1.5rem);
    margin-bottom: var(--tp-space-lg);
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-about-cta .tp-btn-secondary {
    padding: 12px 28px;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 600;
    background: transparent;
    color: var(--tp-gray-700);
    border: 2px solid var(--tp-gray-300, #d1d5db);
    border-radius: var(--tp-radius-md, 6px);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.tp-about-cta .tp-btn-secondary:hover {
    border-color: var(--tp-red, #e53e3e);
    color: var(--tp-red, #e53e3e);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.tp-contact-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--tp-space-xl, 2rem);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--tp-space-md) var(--tp-space-lg);
}

/* Contact info sidebar */
.tp-contact-info {
    padding: 24px;
    background: var(--tp-gray-50, #f7fafc);
    border-radius: var(--tp-radius-lg, 8px);
    border: 1px solid var(--tp-gray-200);
    height: fit-content;
}

.tp-contact-info h2 {
    font-size: var(--tp-text-base, 1rem);
    font-weight: 700;
    color: var(--tp-gray-900);
    margin: 0 0 16px;
}

.tp-contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-gray-700);
}

.tp-contact-info-item svg {
    flex-shrink: 0;
    color: var(--tp-red, #e53e3e);
}

.tp-contact-info-item a {
    color: var(--tp-gray-700);
    text-decoration: none;
}

.tp-contact-info-item a:hover {
    color: var(--tp-red, #e53e3e);
}

/* Form */
.tp-contact-form-wrap h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--tp-gray-900);
    margin: 0 0 8px;
}

.tp-contact-intro {
    color: var(--tp-gray-600);
    margin: 0 0 24px;
    font-size: var(--tp-text-sm, 0.875rem);
}

.tp-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tp-form-field label {
    display: block;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 600;
    color: var(--tp-gray-700);
    margin-bottom: 4px;
}

.tp-form-field input,
.tp-form-field select,
.tp-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--tp-text-sm, 0.875rem);
    border: 1px solid var(--tp-gray-300, #d1d5db);
    border-radius: var(--tp-radius-md, 6px);
    background: var(--tp-white);
    color: var(--tp-gray-900);
    transition: border-color 0.2s;
}

.tp-form-field input:focus,
.tp-form-field select:focus,
.tp-form-field textarea:focus {
    outline: none;
    border-color: var(--tp-red, #e53e3e);
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15);
}

.tp-contact-submit {
    align-self: flex-start;
    padding: 12px 32px;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 600;
    cursor: pointer;
}

.tp-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback message */
.tp-contact-feedback {
    padding: 12px 16px;
    border-radius: var(--tp-radius-md, 6px);
    font-size: var(--tp-text-sm, 0.875rem);
}

.tp-contact-feedback.tp-feedback-success {
    background: var(--tp-green-50);
    color: var(--tp-green-700);
    border: 1px solid var(--tp-green-100);
}

.tp-contact-feedback.tp-feedback-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* 3-column row (dimensions) */
.tp-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* Fieldset for tire details */
.tp-form-fieldset {
    border: 1px solid var(--tp-gray-200, #e2e8f0);
    border-radius: var(--tp-radius-md, 6px);
    padding: 16px;
    margin: 0;
}

.tp-form-fieldset legend {
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 600;
    color: var(--tp-gray-600);
    padding: 0 8px;
}

/* Radio group */
.tp-form-label {
    display: block;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 600;
    color: var(--tp-gray-700);
    margin-bottom: 6px;
}

.tp-form-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tp-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 400;
    color: var(--tp-gray-700);
    cursor: pointer;
}

.tp-radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--tp-red, #e53e3e);
}

/* Terms checkbox */
.tp-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 400;
    color: var(--tp-gray-700);
    cursor: pointer;
}

.tp-form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--tp-red, #e53e3e);
}

/* Honeypot - hidden from humans */
.tp-hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .tp-page-faq,
    .tp-page-about {
        padding: var(--tp-space-sm) var(--tp-space-md);
    }

    .tp-about-section-alt {
        margin-left: calc(-1 * var(--tp-space-md, 1rem));
        margin-right: calc(-1 * var(--tp-space-md, 1rem));
        padding-left: var(--tp-space-md, 1rem);
        padding-right: var(--tp-space-md, 1rem);
    }

    .tp-about-section-header {
        gap: 8px;
    }

    .tp-about-section-icon svg {
        width: 24px;
        height: 24px;
    }

    .tp-about-values-grid {
        grid-template-columns: 1fr;
    }

    .tp-about-stats {
        gap: var(--tp-space-md);
    }

    .tp-about-stat {
        min-width: 70px;
    }

    .tp-about-cta {
        flex-direction: column;
        align-items: center;
    }

    .tp-contact-page {
        grid-template-columns: 1fr;
        padding: var(--tp-space-sm) var(--tp-space-md);
    }

    .tp-contact-info {
        order: 2;
    }

    .tp-contact-form-wrap {
        order: 1;
    }

    .tp-form-row,
    .tp-form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   REVIEWS PAGE — [toppneus_reviews]
   ========================================================================= */

.tp-page-reviews {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--tp-space-xl) var(--tp-space-lg);
}

/* Intro — narrower for readability (@ux-expert) */
.tp-reviews-intro {
    max-width: 800px;
    margin: 0 auto var(--tp-space-2xl);
    text-align: center;
}

.tp-reviews-intro h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--tp-gray-900);
    margin: 0 0 var(--tp-space-lg);
}

.tp-reviews-intro p {
    color: var(--tp-gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* Widget — reserve space to prevent CLS (@ux-expert CRITICAL) */
.tp-reviews-trustindex {
    min-height: 500px;
    margin-bottom: var(--tp-space-2xl);
    overflow: hidden;
}

/* Skeleton loader while TrustIndex loads */
.tp-reviews-trustindex:empty {
    background: var(--tp-gray-50);
    border-radius: var(--tp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-reviews-trustindex:empty::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--tp-gray-200);
    border-top-color: var(--tp-red);
    border-radius: 50%;
    animation: tp-spin 0.8s linear infinite;
}

@keyframes tp-spin {
    to { transform: rotate(360deg); }
}

/* Dual CTA (@copywriter + @ux-expert) */
.tp-reviews-cta {
    text-align: center;
    margin-bottom: var(--tp-space-xl);
    display: flex;
    justify-content: center;
    gap: var(--tp-space-md);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tp-reviews-intro {
        max-width: 100%;
    }

    .tp-page-reviews {
        padding: var(--tp-space-lg) var(--tp-space-md);
    }
}

@media (max-width: 600px) {
    .tp-reviews-cta {
        flex-direction: column;
        align-items: center;
    }

    .tp-reviews-cta .tp-btn-primary,
    .tp-reviews-cta .tp-btn-secondary {
        width: 100%;
        text-align: center;
    }
}
