/* =====================================================
   A1 CASH & CARRY
   CUSTOMER REVIEWS, NEWSLETTER AND SUPPORT
===================================================== */

.customer-extras {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #172033;
}

/* CUSTOMER REVIEWS */

.customer-reviews-section {
    padding: 42px 0 35px;
    overflow: hidden;
}

.customer-extras-heading {
    padding: 0 20px;
    margin: 0 auto 28px;
    text-align: center;
}

.customer-extras-heading > span,
.newsletter-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #087f23;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.customer-extras-heading h2,
.newsletter-section h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
}

.customer-extras-heading p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
}

/* Slider viewport */

.review-slider {
    width: min(86%, 1280px);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Moving track */

.review-track {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    max-width: none;
    animation: customerReviewScroll 32s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Pause when the user hovers */

.review-slider:hover .review-track {
    animation-play-state: paused;
}

/* Individual review */

.review-card {
    box-sizing: border-box;
    flex: 0 0 415px;
    width: 415px;
    min-width: 415px;
    min-height: 190px;
    padding: 20px;
    border: 1px solid #ededed;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.045);
}

.review-customer {
    display: flex;
    align-items: center;
    gap: 11px;
}

.review-avatar {
    display: flex;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2c8138;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.review-customer-info h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.review-customer-info span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}

.review-stars {
    margin: 14px 0 9px;
    color: #f5a000;
    font-size: 17px;
    letter-spacing: 2px;
}

.review-text {
    margin: 0;
    color: #526176;
    font-size: 12px;
    line-height: 1.8;
}

/* Continuous right-to-left scrolling */

@keyframes customerReviewScroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* NEWSLETTER */

.newsletter-section {
    width: min(86%, 1280px);
    box-sizing: border-box;
    margin: 35px auto 30px;
    padding: 42px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #edf6ff, #f7fbff);
    text-align: center;
}

.newsletter-section h2 {
    color: #172033;
}

.newsletter-section > p {
    margin: 12px 0 20px;
    color: #667085;
    font-size: 13px;
}

.newsletter-form {
    display: flex;
    width: min(525px, 100%);
    box-sizing: border-box;
    min-height: 52px;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #d9e2ed;
    border-radius: 35px;
    background: #ffffff;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 15px;
    border: 0;
    outline: none;
    background: transparent;
    color: #172033;
    font-family: inherit;
    font-size: 12px;
}

.newsletter-form button {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 25px;
    background: #2c8138;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

.newsletter-form button:hover {
    background: #155d24;
}

.newsletter-message {
    min-height: 18px;
    margin: 10px 0 0 !important;
    font-size: 12px !important;
}

/* CONTACT SUPPORT */

.customer-support-section {
    padding: 48px 20px 45px;
    background: linear-gradient(110deg, #0b376c, #0874c8);
    color: #ffffff;
    text-align: center;
}

.customer-support-section > span {
    display: block;
    margin-bottom: 15px;
    color: #ffdf35;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.customer-support-section h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 3.5vw, 38px);
    font-weight: 800;
}

.customer-support-section p {
    margin: 15px 0 21px;
    color: #e7f1ff;
    font-size: 13px;
}

.customer-contact-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    border-radius: 9px;
    background: #ffcf28;
    color: #082c58;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.customer-contact-button:hover {
    transform: translateY(-3px);
    background: #ffe16a;
}

/* DARK MODE */

body.dark-mode .customer-extras {
    background: #091522;
    color: #f5f7fa;
}

body.dark-mode .review-card {
    background: #122235;
    border-color: #26384a;
}

body.dark-mode .review-customer-info h3 {
    color: #f5f7fa;
}

body.dark-mode .review-text,
body.dark-mode .review-customer-info span {
    color: #bdc8d5;
}

body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #13283e, #182d42);
}

body.dark-mode .newsletter-section h2 {
    color: #f5f7fa;
}

body.dark-mode .newsletter-form {
    background: #ffffff;
}

/* TABLET */

@media (max-width: 768px) {
    .customer-reviews-section {
        padding: 32px 0 22px;
    }

    .review-slider {
        width: 92%;
    }

    .review-track {
        gap: 14px;
        animation-duration: 27s;
    }

    .review-card {
        flex-basis: 300px;
        width: 300px;
        min-width: 300px;
        min-height: 170px;
        padding: 16px;
    }

    .newsletter-section {
        width: 92%;
        margin: 25px auto;
        padding: 30px 15px;
        border-radius: 16px;
    }

    .newsletter-section > p {
        line-height: 1.7;
    }

    .newsletter-form {
        gap: 3px;
    }

    .newsletter-form input {
        padding: 0 8px;
        font-size: 11px;
    }

    .newsletter-form button {
        padding: 0 14px;
        font-size: 11px;
    }

    .customer-support-section {
        padding: 38px 18px;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .customer-extras-heading h2 {
        font-size: 25px;
    }

    .review-track {
        gap: 12px;
        animation-duration: 23s;
    }

    .review-card {
        flex-basis: 270px;
        width: 270px;
        min-width: 270px;
        padding: 15px;
    }

    .newsletter-form button {
        padding: 0 12px;
    }
}

/* Respect reduced-motion preference */

@media (prefers-reduced-motion: reduce) {
    .review-track {
        animation: none !important;
    }
}
