/*-- Affiliate & Partner Pages Enhanced Styling --*/

/* Navbar Styling */
.jm-homepage .navbar {
    background: #1a1c2e;
    box-shadow: none;
}

[data-bs-theme=light] .jm-homepage .navbar {
    background: var(--tblr-primary);
    box-shadow: none;
}

/* Hero Section Styling */
.jm-hero-section {
    padding: 4rem 0;
    position: relative;
}

[data-bs-theme=light] .jm-hero-section {
    background-color: var(--tblr-primary);
    color: var(--tblr-white);
}

[data-bs-theme=dark] .jm-hero-section {
    background-color: #25273c;
    color: var(--tblr-white);
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

[data-bs-theme=light] .hero-content h1 {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

[data-bs-theme=dark] .hero-content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
    display: block;
    margin-bottom: 1rem;
}

.hero-content p:not(.lead) {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
    display: block;
    margin-bottom: 1rem;
}

[data-bs-theme=light] .hero-content .lead,
[data-bs-theme=light] .hero-content p:not(.lead) {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

[data-bs-theme=dark] .hero-content .lead,
[data-bs-theme=dark] .hero-content p:not(.lead) {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--tblr-border-radius);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

[data-bs-theme=light] .stat-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme=dark] .stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-bs-theme=light] .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-bs-theme=dark] .stat-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

[data-bs-theme=light] .stat-number {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

[data-bs-theme=dark] .stat-number {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #ffffff;
}

[data-bs-theme=light] .stat-label {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-bs-theme=dark] .stat-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-illustration svg {
    filter: brightness(1.1) contrast(1.2);
}

[data-bs-theme=light] .hero-illustration svg {
    filter: brightness(1.2) contrast(1.1);
}

[data-bs-theme=dark] .hero-illustration svg {
    filter: brightness(1.1) contrast(1.3);
}

/* How It Works Section */
.jm-how-it-works {
    background-color: var(--tblr-bg-surface);
    padding: 5rem 0;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--tblr-card-bg);
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tblr-primary);
    margin-bottom: 1rem;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: 50%;
}

.step-icon {
    margin-bottom: 1rem;
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tblr-body-color);
}

.step-card p {
    color: var(--tblr-muted);
    line-height: 1.6;
}

/* Benefits Section */
.jm-benefits {
    background-color: var(--tblr-bg-surface-secondary);
    padding: 5rem 0;
}

.benefit-card {
    padding: 2rem;
    background: var(--tblr-card-bg);
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tblr-body-color);
}

.benefit-card p {
    color: var(--tblr-muted);
    line-height: 1.6;
}

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

.benefits-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    background: rgba(var(--tblr-primary-rgb), 0.05);
    border-radius: var(--tblr-border-radius);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: var(--tblr-primary);
    font-weight: bold;
}

/* Partnership Types Section */
.jm-partnership-types {
    background-color: var(--tblr-bg-surface);
    padding: 5rem 0;
}

.partnership-card {
    padding: 2rem;
    background: var(--tblr-card-bg);
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.partnership-icon {
    margin-bottom: 1.5rem;
}

.partnership-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tblr-body-color);
}

.partnership-card p {
    color: var(--tblr-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.jm-faq-section {
    background-color: var(--tblr-bg-surface-tertiary);
    padding: 4rem 0;
}

.jm-faq-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.jm-faq-section .accordion-button {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: var(--tblr-card-bg);
    border: 1px solid var(--tblr-border-color);
    color: var(--tblr-body-color);
    text-align: left;
}

.jm-faq-section .accordion-button:not(.collapsed) {
    background: var(--tblr-primary);
    color: var(--tblr-white);
}

.jm-faq-section .accordion-body {
    padding: 1.25rem;
    background: var(--tblr-bg-surface-secondary);
    border-radius: 0 0 var(--tblr-border-radius) var(--tblr-border-radius);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Registration Form Section */
.jm-registration-section {
    background-color: var(--tblr-bg-surface);
    padding: 5rem 0;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .step-card,
    .benefit-card,
    .partnership-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-illustration {
        margin-top: 2rem;
    }
    
    .step-card,
    .benefit-card,
    .partnership-card {
        text-align: center;
    }
}

/* Smooth Animations */
.step-card,
.benefit-card,
.partnership-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Consistency */
.jm-hero-section,
.jm-how-it-works,
.jm-benefits,
.jm-partnership-types,
.jm-faq-section,
.jm-registration-section {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
}

p, .lead, .text-muted {
    font-family: inherit;
    line-height: 1.6;
}

/* Scrollable Layout */
.page jm-homepage {
    overflow-x: hidden;
}

section {
    scroll-margin-top: 0;
    scroll-margin-bottom: 0;
}

/* Form Enhancement */
.jm-landing-form-card {
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.jm-landing-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced Form Styling */
.jm-registration-section .form-control,
.jm-registration-section .form-select {
    border: 2px solid var(--tblr-border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--tblr-card-bg);
    color: var(--tblr-body-color);
}

.jm-registration-section .form-control:focus,
.jm-registration-section .form-select:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--tblr-primary-rgb), 0.25);
    background-color: var(--tblr-card-bg);
}

.jm-registration-section .form-label {
    font-weight: 600;
    color: var(--tblr-body-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.jm-registration-section .form-control::placeholder {
    color: var(--tblr-muted);
    opacity: 0.7;
}

.jm-registration-section .form-check {
    padding: 0.75rem 0 0.75rem 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    background: rgba(var(--tblr-primary-rgb), 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--tblr-primary);
}

.jm-registration-section .form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--tblr-primary);
    margin-right: 0.5rem;
}

.jm-registration-section .form-check-input:checked {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.jm-registration-section .form-check-label {
    font-size: 0.9rem;
    color: var(--tblr-body-color);
    cursor: pointer;
}

.jm-registration-section .btn-primary {
    background: linear-gradient(135deg, var(--tblr-primary) 0%, rgba(var(--tblr-primary-rgb), 0.8) 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jm-registration-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--tblr-primary-rgb), 0.3);
}

.jm-registration-section .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--tblr-danger);
}

.jm-registration-section .is-invalid {
    border-color: var(--tblr-danger);
}

.jm-registration-section .is-invalid:focus {
    border-color: var(--tblr-danger);
    box-shadow: 0 0 0 0.2rem rgba(var(--tblr-danger-rgb), 0.25);
}

/* Form Group Styling */
.jm-registration-section .row > div {
    margin-bottom: 1rem;
}

/* Responsive Form Styling */
@media (max-width: 767px) {
    .jm-registration-section .form-control,
    .jm-registration-section .form-select {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
    
    .jm-registration-section .form-label {
        font-size: 0.85rem;
    }
    
    .jm-registration-section .btn-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .jm-registration-section .form-check {
        padding: 0.75rem;
    }
    
    .jm-registration-section .form-check-label {
        font-size: 0.85rem;
    }
}
