/* Partner With Us Page Styles */

.partner-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: url('/solar/assets/images/partner/partner-banner.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay to match screenshot */
    z-index: 1;
}

.partner-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.partner-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-transform: none;
}

.partner-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-join-us {
    display: inline-block;
    background-color: #3b82f6; /* EcoFlow Blue / Join Us Button Blue */
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-join-us:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .partner-hero {
        height: 60vh;
    }
    
    .partner-hero-title {
        font-size: 2.8rem;
    }
    
    .partner-hero-subtitle {
        font-size: 1.1rem;
    }
}

.stats-section {
    position: relative;
    padding: 100px 0;
    background-image: url('/solar/assets/images/partner/glance-bg-pc.jpg'); /* Night city view */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    overflow: hidden;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glance-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.glance-desc {
    font-size: 1.1rem;
    max-width: 900px;
    line-height: 1.6;
    opacity: 0.9;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-row {
    align-items: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 200px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Endorsements Section */
.endorsements-section {
    background: #000;
    padding: 60px 0;
    color: #fff;
}

.endorsements-section .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.endorsements-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.endorsements-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 115px;
}

.endorsement-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 150px;
}

.endorsement-item img {
    max-width: 100%;
    height: 70px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.endorsement-item img:hover {
    filter: brightness(1.1);
}

/* Custom CSS Logos for Verge and CNN if images are missing */
.verge-logo {
    background: #6214ff;
    padding: 5px 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-align: left;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
}

.verge-text {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
}

.verge-sub {
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1;
}

.verge-date {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 2px;
}

.cnn-logo {
    background: #4a148c;
    padding: 5px 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    text-align: left;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
}

.cnn-text {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.cnn-sub {
    font-size: 0.6rem;
    font-weight: 400;
    line-height: 1;
}

.cnn-best {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.cnn-date {
    font-size: 0.6rem;
    font-weight: 700;
}

@media (max-width: 992px) {
    .endorsements-grid {
        gap: 30px;
    }
    
    .endorsement-item {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .endorsements-title {
        font-size: 2rem;
    }
    
    .endorsements-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 10px;
        justify-items: center;
    }
    
    .endorsement-item {
        max-width: 90px;
    }
}

/* Market Entry Section */
.market-entry-section {
    position: relative;
    padding: 120px 0;
    background-image: url('/solar/assets/images/partner/residential-pc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.market-entry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%); */
    z-index: 1;
}

.market-entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.market-entry-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 50px;
    opacity: 0.9;
}

.market-stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 20px;
    margin: 0 auto 40px;
    max-width: 1000px;
}

.market-stat-item {
    padding: 10px;
}

.market-stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.market-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    opacity: 0.8;
}

.market-entry-footer {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    opacity: 0.9;
}

/* Borders for stats */
.border-end-desktop {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .market-entry-section {
        padding: 80px 0;
    }

    .market-entry-title {
        font-size: 2rem;
    }

    .market-stats-card {
        padding: 30px 10px;
    }

    .market-stat-number {
        font-size: 2rem;
    }

    .border-end-desktop {
        border-right: none;
    }

    .border-end-mobile {
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* What We Offer Section */
.offer-section {
    padding: 100px 0;
    background: #000;
}

.offer-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.offer-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0.8;
}

.offer-content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.offer-display-card {
    position: relative;
    height: 500px;
    background-image: url('/solar/assets/images/home/OfferNew1-pc.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: background-image 0.5s ease-in-out;
}

.offer-display-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.offer-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    text-align: left;
    z-index: 2;
}

.offer-overlay-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.offer-overlay-text p {
    font-size: 1rem;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.6;
}

.offer-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.offer-tab-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.5;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.offer-tab-btn.active {
    opacity: 1;
}

.offer-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

/* 4 Steps Section */
.steps-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #000 0%, #1a1a1a 100%);
}

.steps-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: #fff;
    color: #000;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-header {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-content p {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.training-link {
    color: #007bff;
    text-decoration: underline;
}

.step-icon-bg {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 5rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .offer-title {
        font-size: 2.2rem;
    }
    
    .offer-display-card {
        height: 400px;
    }
    
    .offer-overlay-text {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .offer-overlay-text h3 {
        font-size: 1.4rem;
    }
    
    .offer-tabs {
        gap: 20px;
    }
    
    .offer-tab-btn {
        font-size: 0.9rem;
    }
    
    .steps-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        background: #fff9f2; /* Light cream background */
        min-height: auto;
        padding: 25px;
        border-radius: 15px;
    }

    .step-header {
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .step-content p {
        font-size: 1rem;
        font-weight: 600;
        color: #000;
        max-width: 80%;
    }

    .step-icon-bg {
        font-size: 8rem;
        opacity: 1;
        color: #fdeedb; /* Light peach/orange for the icon */
        bottom: -20px;
        right: -10px;
        transform: rotate(0deg);
        z-index: 1;
    }

    .step-content, .step-header {
        position: relative;
        z-index: 2;
    }
}

/* Partners Feedback Section */
.partners-feedback-section {
    padding: 100px 0;
    background: #000;
}

.feedback-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.feedback-intro {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.video-container {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 500px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-card {
    background: #f8f9fa;
    color: #000;
    padding: 40px;
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partner-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}
.partner-brand img {
    height: 85px;
    width: 160px;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.brand-sub {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .feedback-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .video-container {
        height: 300px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        border-radius: 0;
    }
    
    .testimonial-card {
        padding: 30px;
    }
}

/* Europe Users Section */
.europe-users-section {
    padding: 100px 0;
    background: #000;
}

.europe-users-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.europeUsersSwiper {
    padding-bottom: 80px !important;
}

.europeUsersSwiper .swiper-wrapper {
    display: flex;
}

.europeUsersSwiper .swiper-slide {
    height: auto !important;
    display: flex;
}

.user-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #000;
    width: 100%;
}

.user-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.user-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 1.5rem;
    color: #eee;
    margin-bottom: 15px;
}

.user-quote {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 30px;
    flex-grow: 1;
    color: #333;
}

.user-info {
    margin-top: auto;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.user-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Swiper Navigation */
.swiper-nav-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-right: 15px;
    position: relative;
    z-index: 10;
}

.europe-prev, .europe-next {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.europe-prev::after, .europe-next::after {
    display: none !important;
}

.europe-prev i, .europe-next i {
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
}

.europe-prev:hover, .europe-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: default !important;
}

@media (max-width: 768px) {
    .europe-users-title {
        font-size: 2.2rem;
    }
    
    .user-card-content {
        padding: 20px;
    }
    
    .user-img {
        height: 200px;
    }
}

/* Partner Form Section */
.partner-form-section {
    padding: 100px 0;
    background-color: #ffffff;
    color: #000;
}

.partner-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.partner-form-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    text-align: center;
}

.partner-form {
    max-width: 900px;
    margin: 0 auto;
}

.partner-form .form-control, 
.partner-form .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.2s;
}

.partner-form .form-control:focus, 
.partner-form .form-select:focus {
    border-color: #3b82f6;
}

.partner-form .form-control::placeholder {
    color: #a0a0a0;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-code-select {
    width: 100px !important;
}

.partner-form textarea {
    min-height: 120px;
}

.newsletter-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.newsletter-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-check label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.recaptcha-placeholder {
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    padding: 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    width: 300px;
}

.btn-partner-submit {
    background-color: #a0c4ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-partner-submit:hover {
    background-color: #3b82f6;
}

@media (max-width: 768px) {
    .partner-form-section {
        padding: 60px 0;
    }
    
    .partner-form-title {
        font-size: 1.8rem;
    }
}

/* Video Modal Styles */
#videoModal .modal-xl {
    max-width: 1000px;
}

#videoModal .btn-close {
    background-color: #fff;
    opacity: 0.8;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 10px;
}

#videoModal .btn-close:hover {
    opacity: 1;
}

#videoModal .modal-body {
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 12px;
    overflow: hidden;
}

#videoIframe {
    width: 100%;
    height: 100%;
    border: none;
}
