/**
 * Contact Page Styles v7.0.0
 *
 * Optimized for: Marketing conversion, Performance, Accessibility
 *
 * @package Forever_BE_Premium
 * @version 7.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   1. URGENCY BANNER - Animated alert bar
   ═══════════════════════════════════════════════════════════════ */

.urgency-banner {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    background-size: 200% 100%;
    animation: contact-gradientShift 3s ease infinite;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.urgency-banner.urgency-high {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
    background-size: 200% 100%;
}

@keyframes contact-gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.urgency-banner .pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
    animation: contact-pulse 1.5s ease-in-out infinite;
}

@keyframes contact-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════════════════
   2. HERO SECTION - AIDA optimized
   ═══════════════════════════════════════════════════════════════ */

.contact-hero {
    background: linear-gradient(135deg, #1e5a3e 0%, #2d8659 100%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: contact-heroGlow 10s ease-in-out infinite;
}

@keyframes contact-heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-trust-badge .stars {
    color: #fbbf24;
}

.contact-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.contact-hero-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.stats-mini {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-mini strong {
    font-size: 1.1rem;
    color: #fbbf24;
}

/* Hero CTAs */
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251,191,36,0.5) !important;
}

.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════
   3. WHY CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */

.why-contact {
    background: #fff;
    padding: 4rem 1.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e5a3e;
    margin-bottom: 0.75rem;
}

.why-desc {
    color: #4b5563;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   4. CONTACT PATHS SECTION
   ═══════════════════════════════════════════════════════════════ */

.contact-paths {
    background: #f9fafb;
    padding: 4rem 1.5rem;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.path-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.path-card:hover {
    border-color: #1e5a3e;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(30,90,62,0.15);
}

.path-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.path-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e5a3e;
    margin-bottom: 1rem;
}

.path-desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.path-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.path-benefits li {
    padding: 0.5rem 0;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.path-benefits li::before {
    content: "\2713";
    color: #1e5a3e;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.path-cta-primary:hover,
.path-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   5. MAIN CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */

.main-contact-section {
    background: #fff;
    padding: 4rem 1.5rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   6. CONTACT SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.contact-sidebar {
    background: linear-gradient(135deg, #1e5a3e 0%, #2d8659 100%);
    color: #fff;
    padding: 3rem 2rem;
}

.contact-channel {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-channel:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.channel-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.channel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.channel-info {
    margin-left: 48px;
    opacity: 0.9;
    line-height: 1.6;
}

.channel-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.channel-info a:hover {
    color: #fbbf24;
}

.channel-benefit {
    font-size: 0.875rem;
    color: #fbbf24;
    margin-top: 0.5rem;
    font-style: italic;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fbbf24;
    color: #1e5a3e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   7. CONTACT FORM WRAPPER
   ═══════════════════════════════════════════════════════════════ */

.contact-form-wrapper {
    padding: 3rem 2rem;
}

.form-intro {
    margin-bottom: 2rem;
}

.form-intro h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e5a3e;
    margin-bottom: 1rem;
}

.form-intro p {
    color: #4b5563;
    line-height: 1.6;
}

.form-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-option {
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover {
    border-color: #1e5a3e;
    background: #f0fdf4;
}

.type-option.active {
    border-color: #1e5a3e;
    background: #dcfce7;
}

.type-option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.type-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* ═══════════════════════════════════════════════════════════════
   8. GUARANTEES SECTION
   ═══════════════════════════════════════════════════════════════ */

.guarantees {
    background: #f0fdf4;
    padding: 3rem 1.5rem;
    text-align: center;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.guarantee-icon {
    font-size: 2.5rem;
}

.guarantee-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e5a3e;
}

/* ═══════════════════════════════════════════════════════════════
   9. TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════ */

.testimonials-contact {
    background: #fff;
    padding: 4rem 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #1e5a3e;
}

.testimonial-text {
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e5a3e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #1e5a3e;
    margin: 0;
}

.author-status {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════════
   10. FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.final-cta-section {
    position: relative;
}

.final-cta-whatsapp:hover {
    transform: scale(1.05) !important;
    background: #f59e0b !important;
}

.final-cta-form:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   11. RESPONSIVE - TABLET
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 1rem 2rem;
    }

    .contact-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .stats-mini {
        gap: 1rem;
        margin-top: 1.5rem;
        font-size: 0.875rem;
    }

    .why-contact,
    .contact-paths {
        padding: 2.5rem 1rem;
    }

    .why-grid {
        gap: 1.5rem;
        margin: 2rem auto 0;
    }

    .why-card {
        padding: 1.5rem;
    }

    .why-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .why-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .path-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 2rem auto 0;
        max-width: 100% !important;
    }

    .path-card {
        padding: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        padding: 2rem 1.5rem;
    }

    .contact-channel {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .testimonials-contact {
        padding: 2.5rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .urgency-banner {
        font-size: 0.85rem;
        padding: 0.625rem 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   12. RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .contact-hero {
        padding: 2.5rem 0.75rem 1.5rem;
    }

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .hero-trust-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .why-contact,
    .contact-paths,
    .testimonials-contact {
        padding: 2rem 0.75rem;
    }

    .why-grid,
    .path-grid {
        margin: 1.5rem auto 0;
        gap: 1rem;
    }

    .why-card,
    .path-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .contact-sidebar,
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .guarantees {
        padding: 2rem 0.75rem;
    }

    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .guarantee-icon {
        font-size: 2rem;
    }

    .guarantee-text {
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   13. PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .urgency-banner,
    .hero-cta-primary,
    .hero-cta-secondary,
    .whatsapp-btn,
    .final-cta-section {
        display: none !important;
    }

    .contact-hero {
        background: #1e5a3e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ═══════════════════════════════════════════════════════════════
   14. ACCESSIBILITY - REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .urgency-banner,
    .contact-hero::before,
    .pulse-dot {
        animation: none !important;
    }

    .why-card,
    .path-card,
    .whatsapp-btn,
    .hero-cta-primary,
    .hero-cta-secondary {
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   15. FOCUS STATES - ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

.hero-cta-primary:focus,
.hero-cta-secondary:focus,
.path-cta-primary:focus,
.path-cta-secondary:focus,
.whatsapp-btn:focus,
.final-cta-whatsapp:focus,
.final-cta-form:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid #1e5a3e;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   16. PERFORMANCE OPTIMIZATIONS (Expert Performance v7.0.0)
   ═══════════════════════════════════════════════════════════════ */

/* Content visibility for below-the-fold sections - improves INP */
.why-contact,
.contact-paths,
.testimonials-contact,
.guarantees,
.contact-faq,
.final-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* GPU acceleration hints for animated elements */
.urgency-banner,
.pulse-dot,
.contact-hero::before {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Optimize card hover animations - use transform instead of box-shadow */
.why-card,
.path-card,
.testimonial-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduce animation complexity on low-end devices */
@media (prefers-reduced-motion: reduce), (max-width: 480px) {
    .urgency-banner,
    .contact-hero::before {
        animation: none !important;
    }

    .why-card:hover,
    .path-card:hover {
        transform: none;
    }
}

/* Font rendering optimization */
.contact-hero h1,
.why-title,
.path-title,
.guarantee-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Image containment for LCP optimization */
.author-avatar {
    contain: layout style paint;
}

/* Smooth scroll behavior for internal links */
@media (prefers-reduced-motion: no-preference) {
    html:has(.contact-hero) {
        scroll-behavior: smooth;
    }
}

/* FAQ accordion performance */
.faq-item details {
    contain: layout style;
}

.faq-item details[open] summary + div {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Optimize form inputs paint */
.contact-form-field {
    contain: layout style;
}

/* Critical rendering path - prioritize above-fold content */
.urgency-banner,
.breadcrumb-nav,
.contact-hero {
    contain: layout;
}
