/* Make Payment Great Again Section */
.make-payment-great-section {
    padding: 0 0 90px 0;
    position: relative;
}

@media (min-width: 1024px) {
    .make-payment-great-section {
        padding: 50px 0 50px 0;
    }
}

.make-payment-great-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

@media (min-width: 1280px) {
    .make-payment-great-section .container {
        padding: 0 16px;
    }
}

/* Wrapper */
.make-payment-great-wrapper {
    position: relative;
    background: #F4F3FF;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
    z-index: 2;
    min-height: 300px;
}

@media (min-width: 1024px) {
    .make-payment-great-wrapper {
        height: 374px;
        padding: 64px;
        display: flex;
        align-items: center;
    }
}

/* Content */
.make-payment-great-content {
    position: relative;
    z-index: 10;
    max-width: 630px;
}

@media (min-width: 1024px) {
    .make-payment-great-content {
        max-width: 450px;
    }
}

@media (min-width: 1280px) {
    .make-payment-great-content {
        max-width: 630px;
    }
}

.make-payment-great-subtitle {
    font-family: 'Gilroy-semibold';
    font-weight: 700;
    font-size: 20px;
    color: #635BFE;
    margin-bottom: 6px;
}

.make-payment-great-title {
    font-family: 'Gilroy-semibold';
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    color: #3F405B;
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}

@media (min-width: 1280px) {
    .make-payment-great-title {
        font-size: 48px;
        line-height: 57.6px;
    }
}

.make-payment-great-title .accent-dot {
    color: #635BFE;
}

.make-payment-great-description {
    font-family: 'Gilroy-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 25.6px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 36px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.make-payment-great-description .text-highlight {
    color: #3F405B;
    font-weight: 600;
}


/* SVG Background */
.make-payment-great-svg {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 587px;
    height: 374px;
}

@media (min-width: 1024px) {
    .make-payment-great-svg {
        top: 0;
        bottom: auto;
    }
}

@media (max-width: 1023px) {
    .make-payment-great-svg {
        width: 100%;
        height: auto;
        right: -50px;
    }
}

/* Animated Path */
.animated-path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawMakePaymentPath 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawMakePaymentPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Mobile Image */
.make-payment-great-image {
    position: relative;
    z-index: 5;
    margin-top: 56px;
}

@media (min-width: 1024px) {
    .make-payment-great-image {
        position: absolute;
        bottom: -20px;
        right: 144px;
        margin-top: 0;
    }
}

.make-payment-great-image img {
    width: 294px;
    height: 353px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .make-payment-great-image img {
        width: 250px;
        height: auto;
        margin-bottom: -20px;
    }
    .make-payment-great-svg {
        width: 920px;
        height: auto;
        right: -10px;
        top: -150px;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .make-payment-great-wrapper {
        padding: 20px;
        text-align: center;
    }

    .make-payment-great-title {
        font-size: 28px;
        line-height: 34px;
    }

    .make-payment-great-description {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 32px;
    }


    .make-payment-great-image {
        margin-top: 40px;
    }

    .make-payment-great-image img {
        width: 250px;
        height: auto;
        margin-bottom: -20px;
    }
    .make-payment-great-svg {
        width: 820px;
        height: auto;
        right: -30px;
        top: 70px;
    }
}

@media (max-width: 480px) {
    .make-payment-great-wrapper {
        padding: 16px;
    }

    .make-payment-great-title {
        font-size: 24px;
        line-height: 30px;
    }

    .make-payment-great-description {
        font-size: 14px;
        line-height: 22px;
    }

    .make-payment-great-image img {
        width: 220px;
        margin-bottom: -15px;
    }
    .make-payment-great-svg {
        width: 650px;
        height: auto;
        right: -50px;
    }
}

@media (max-width: 430px) {
    .make-payment-great-svg {
        width: 465px;
        height: auto;
        right: -30px;
        top: 130px;
    }
}

/* Dark Theme Support */
body.dark .make-payment-great-wrapper {
    background: linear-gradient(145deg, #374151 0%, #4b5563 100%);
}

body.dark .make-payment-great-title {
    color: #f9fafb;
}

body.dark .make-payment-great-description {
    color: #d1d5db;
}

body.dark .make-payment-great-description .text-highlight {
    color: #f3f4f6;
}


/* Animation for content */
.make-payment-great-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpContent 0.6s ease-out forwards;
}

.make-payment-great-subtitle {
    animation-delay: 0.1s;
}

.make-payment-great-title {
    animation-delay: 0.2s;
}

.make-payment-great-description {
    animation-delay: 0.3s;
}

@keyframes fadeInUpContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Animation */
.make-payment-great-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}