/**
 * Modern Service Page Styles
 * Beautiful, contemporary design with beige/brown color scheme
 */

/* === SERVICE PAGE CONTAINER === */
.fslp-service-page-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #ffffff;
}

/* === SERVICE HERO === */
.service-hero-modern {
    background: var(--primary-beige);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-hero-modern::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.service-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 24, 16, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 24, 16, 0.1);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.service-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.service-subheading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.service-benefits-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 24, 16, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 24, 16, 0.1);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.benefit-pill svg {
    flex-shrink: 0;
}

/* === TOP OFFERS SECTION === */
.service-offers-section {
    padding: 5rem 0;
    background: #ffffff;
}

.offers-list-modern {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.offer-card-modern {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 1.25rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.offer-card-modern:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-beige);
    transform: translateY(-2px);
}

.offer-card-modern.featured {
    border: 2px solid var(--primary-beige);
    background: linear-gradient(to bottom, rgba(247, 229, 218, 0.15), #ffffff);
    box-shadow: 0 8px 24px rgba(247, 229, 218, 0.2);
}

.offer-badge-featured {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.offer-rank {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--text-muted), var(--text-dark));
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
}

.offer-company {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offer-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #832B00, #5a1e00);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(131, 43, 0, 0.2);
}

.offer-company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.offer-nmls {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.offer-details {
    flex: 1;
}

.offer-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: rgba(247, 229, 218, 0.2);
    border-radius: 12px;
    width: fit-content;
}

.offer-rating-score {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

.offer-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 2px;
}

.offer-rating-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.offer-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.offer-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.offer-features li svg {
    color: #10b981;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.offer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.offer-btn {
    background: #832B00;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 12px rgba(131, 43, 0, 0.3);
    min-width: 180px;
}

.offer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(131, 43, 0, 0.4);
    color: #ffffff;
    background: #5a1e00;
}

.offer-btn svg {
    transition: transform 0.3s ease;
}

.offer-btn:hover svg {
    transform: translateX(4px);
}

.offer-disclosure {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
}

.offers-cta-banner {
    background: var(--primary-beige);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.offers-cta-banner p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* === SERVICE FEATURES === */
.service-features-section {
    padding: 5rem 0;
    background: #ffffff;
}

.features-grid-service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card-service {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(131, 43, 0, 0.12);
    border-color: var(--primary-brown);
}

.feature-icon-service {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #832B00, #5a1e00);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(131, 43, 0, 0.2);
}

.feature-title-service {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.feature-desc-service {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* === SERVICE CONTENT === */
.service-content-section {
    padding: 5rem 0;
    background: #ffffff;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-content-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
}

.service-content-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-content-image {
    position: relative;
}

.service-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(131, 43, 0, 0.15);
}

/* === HOW IT WORKS === */
.service-how-it-works {
    padding: 5rem 0;
    background: #ffffff;
}

.steps-grid-service {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card-service {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.step-card-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(131, 43, 0, 0.12);
}

.step-number-service {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #832B00, #5a1e00);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(131, 43, 0, 0.2);
}

.step-title-service {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.step-desc-service {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* === FAQ SECTION === */
.service-faq-section {
    padding: 5rem 0;
    background: #ffffff;
}

.faq-grid-service {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item-service {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-service:hover {
    border-color: var(--primary-brown);
    box-shadow: 0 10px 30px rgba(131, 43, 0, 0.08);
}

.faq-question-service {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question-service:hover {
    color: var(--primary-brown);
}

.faq-icon-service {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-brown);
}

.faq-question-service.active .faq-icon-service {
    transform: rotate(180deg);
}

.faq-answer-service {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-service.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer-service p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* === SERVICE CTA === */
.service-cta-section {
    padding: 5rem 0;
    background: var(--primary-beige);
}

.service-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.service-cta-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.service-cta-subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem 0;
}

.service-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-cta {
        align-items: stretch;
        margin-top: 1rem;
    }
    
    .offer-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-hero-modern {
        padding: 4rem 0;
    }
    
    .service-heading {
        font-size: 2rem;
    }
    
    .service-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-primary,
    .cta-secondary {
        justify-content: center;
    }
    
    .service-benefits-pills {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid-service,
    .steps-grid-service {
        grid-template-columns: 1fr;
    }
    
    .offer-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .offer-badge-featured {
        position: static;
        margin-bottom: 1.5rem;
        width: fit-content;
    }
    
    .offer-rank {
        position: static;
        margin-bottom: 1rem;
        width: fit-content;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        height: auto;
    }
    
    .offer-company {
        flex-direction: row;
        align-items: center;
    }
    
    .offer-logo {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    .offer-company-name {
        font-size: 1.25rem;
    }
    
    .offer-rating-wrapper {
        padding: 0.5rem 1rem;
    }
    
    .offer-rating-score {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-hero-modern {
        padding: 3rem 0;
    }
    
    .modern-container {
        padding: 0 1rem;
    }
    
    .feature-card-service,
    .step-card-service,
    .faq-item-service {
        padding: 1.5rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card-service,
.step-card-service,
.faq-item-service {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card-service:nth-child(1) { animation-delay: 0.1s; }
.feature-card-service:nth-child(2) { animation-delay: 0.2s; }
.feature-card-service:nth-child(3) { animation-delay: 0.3s; }
.feature-card-service:nth-child(4) { animation-delay: 0.4s; }

.step-card-service:nth-child(1) { animation-delay: 0.1s; }
.step-card-service:nth-child(2) { animation-delay: 0.2s; }
.step-card-service:nth-child(3) { animation-delay: 0.3s; }

