:root {
    --hopper-blue: #2F71E4;
    --hopper-blue-dark: hsl(218 77% 45% / 1);
    --hopper-muted-blue: #edf3fd;
    --hopper-instagram-primary: #DB2777;
    --hopper-facebook-primary: #2563EB;
    --hopper-twitter-primary: #14171A;
    --hopper-linkedin-primary: #0369A1;
    --hopper-tiktok-primary: #18181B;
    --hopper-pinterest-primary: #DC2626;
    --hopper-youtube-primary: #EF4444;
    --hopper-bluesky-primary: #3585fe;
    --hopper-muted-text: #989898;
    --hopper-coupon-text-success: #14873e;
    --hopper-coupon-text-error: #850000;
    --hopper-coupon-bg-success: #9ff7c0;
    --hopper-coupon-bg-error: #ff9f9f;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
    height: 100vh;
    overflow-x: hidden;
    line-height: normal;
}

.loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--hopper-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.pricing-container {
    display: flex;
    min-height: 100vh;
}

/* Left side - Blue gradient with logo */
.left-side {
    background-color: var(--hopper-blue);
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            to right,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 80px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.02) 0,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 80px
        );
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 4em;
    padding-bottom: 4em;
    gap: 2em;
    height: 100vh;
}

/** Left side elements **/
/* Product rating */
.product-rating {
    width:200px;
    --color: white;
    --product-rating-font-size: 1rem;
    --product-rating-star-font-size: calc( var(--product-rating-font-size) * .9 );
    --product-rating-text-font-size: calc( var(--product-rating-font-size) * .85 );
    --last-star-size: calc( ( var(--star-rate)*10 - 40 ) / 10 );
    --last-star-font-size: calc( var(--last-star-size) * var(--product-rating-star-font-size) );
    --space-between-stars: .4rem;
    --logo-size: calc( (var(--product-rating-star-font-size) * 4 + var(--last-star-font-size)) + (var(--space-between-stars) * 4) );
}

.display-rating-stars-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.product-rating .display-rating-stars {
    font-size: var(--product-rating-star-font-size);
    color: var(--yellow);
    margin-right: .4em;
}
.product-rating .display-rating-stars > .rating-star {
    overflow: hidden;
    margin-right: var(--space-between-stars);
    width: var(--product-rating-star-font-size);
}
.product-rating .display-rating-stars > .rating-star:last-child {
    width: var(--last-star-font-size);
}
.product-rating .rating-text {
    font-size: var(--product-rating-text-font-size);
    font-weight: 500;
    color: var(--color);
}
.product-rating .capterra-logo {
    width: var(--logo-size);
}
.product-rating .g2crowd-logo {
    width: calc( var(--logo-size) * .9);
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 13px;
}

.social-icons .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: white;
}
.social-icons .social-icon.instagram { background: var(--hopper-instagram-primary); }
.social-icons .social-icon.tiktok { background: var(--hopper-tiktok-primary); }
.social-icons .social-icon.twitter { background: var(--hopper-twitter-primary); }
.social-icons .social-icon.pinterest { background: var(--hopper-pinterest-primary); }
.social-icons .social-icon.facebook { background: var(--hopper-facebook-primary); }
.social-icons .social-icon.x { background: var(--hopper-twitter-primary); }
.social-icons .social-icon.reddit { background: var(--hopper-reddit-primary); }
.social-icons .social-icon.linkedin { background: var(--hopper-linkedin-primary); }
.social-icons .social-icon.youtube { background: var(--hopper-youtube-primary); }
.social-icons .social-icon.bluesky { background: var(--hopper-bluesky-primary); }

.hopper-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.hopper-logo img {
    width: 500px;
    max-width: 40%;
}

.company-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}
.company-logos .plus {
    color: #fff;
}
.capterra-logo {
    height: 24px;
}
.g2crowd-logo {
    height: 24px;
}


/* Right side - Pricing form */
.right-side {
    flex: 1;
    padding: 64px 80px;
    background: #ffffff;
    overflow-y: auto;
    max-height: 100vh;
    flex-direction: column;
    display: flex;
    justify-content: center;
}
.trial-header {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trial-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #141414;
    letter-spacing: 1px;
    word-spacing: 2px;
    position: relative;
}
.trial-header h1 .yellow-underline {
    background-image: url('../img/yellow-underline.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /** background position bottom, and 10 px distance from text */
    background-position: bottom center;
    display: inline-block;
    height: 48px;
}
.trial-header .pay-nothing {
    --pay-nothing-size: 75px;
    position: absolute;
    width: var(--pay-nothing-size);
    right: calc(-1 * var(--pay-nothing-size));
    top: calc(-1 * var(--pay-nothing-size) / 2);
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 36px;
}
.billing-toggle span {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}
.billing-toggle span.active {
    color: #2f71e4;
    font-weight: 700;
}
.toggle-switch {
    --toggle-switch-size: 18px;
    
    position: relative;
    width: calc(var(--toggle-switch-size) * 2 + var(--toggle-switch-size) / 2);
    height: calc(var(--toggle-switch-size) + var(--toggle-switch-size) / 4);
    background: #2f71e4;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: calc(var(--toggle-switch-size) / 8);
    right: calc(var(--toggle-switch-size) / 8);
    width: var(--toggle-switch-size);
    height: var(--toggle-switch-size);
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.toggle-switch.monthly::after {
    right: calc(100% - var(--toggle-switch-size) - var(--toggle-switch-size) / 8);
}


/* Pricing cards */
.pricing-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.pricing-card {
    flex: 1;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card::after {
    content: "";
    background-image: url('../img/sparkle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -23px;
    right: -15px;
    width: 40px;
    aspect-ratio: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.pricing-card.selected {
    border-color: var(--hopper-blue);
    box-shadow: 0 4px 20px rgba(47, 113, 228, 0.2);
    transform: translateY(-2px);
}
.pricing-card.selected::after {
    opacity: 1;
}
.pricing-card h3 {
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    color: #141414;
}
.pricing-card h3 i {
    font-size: 15px;
}
.pricing-card .description {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 8px;
}
.pricing-card .billed-note {
    font-size: 11px;
    padding-top: 2px;
}
.pricing-card .price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.pricing-card .price {
    font-size: 21px;
    font-weight: 700;
    color: var(--hopper-blue);
}
.pricing-card .price-period {
    font-size: 14px;
    color: #666;
}

/* Account selector */
.account-selector {
    display: flex;
    background: var(--hopper-muted-blue);
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.account-selector label {
    font-size: 16px;
    font-weight: 600;
    color: #141414;
    margin-bottom: 0;
    display: block;
}
.account-selector input {
    width: 60px;
    padding: 8px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hopper-blue);
    background: white;
}

/* Payment icons */
.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.payment-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.payment-icon.mastercard { 
    background-image: url('../img/credit_cards/mastercard.png');
 }
.payment-icon.maestro { 
    background-image: url('../img/credit_cards/maestro.png');
 }
.payment-icon.visa { 
    background-image: url('../img/credit_cards/visa.png');
 }
.payment-icon.amex { 
    background-image: url('../img/credit_cards/american_express.png');
 }
.payment-icon.discover { 
    background-image: url('../img/credit_cards/discover.png');
 }

 /* Coupon section */
 .coupon-section {
 }
 .coupon-toggle {
     color: var(--hopper-muted-text);
     font-size: 14px;
     cursor: pointer;
     text-decoration: underline;
     transition: color 0.15s ease;
 }
 .coupon-toggle:hover {
     color: var(--hopper-blue);
 }
 .coupon-form {
     margin-top: 0;
     margin-bottom: 15px;
     height: 0;
     overflow: hidden;
     transition: all 0.3s ease;
 }
 .coupon-form.active {
     height: 46px;
 }
 .coupon-input {
     display: flex;
     gap: 10px;
 }
 .coupon-input input {
     flex: 1;
     padding: 12px;
     border: 2px solid #e5e5e5;
     border-radius: 6px;
     font-size: 14px;
 }
 .coupon-apply-btn {
     padding: 12px 20px;
     background: var(--hopper-blue);
     color: white;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s ease;
 }
 .coupon-apply-btn:hover {
     background: var(--hopper-blue-dark);
 }
 .coupon-apply-btn:active {
     background: var(--hopper-blue-dark);
 }
 .coupon-apply-btn:disabled {
     background: hsla(from var(--hopper-blue) h s l / 0.5);
 }

 /* Payment form */
 .payment-form {
     margin-bottom: 30px;
 }

 #card-element {
     padding: 15px;
     border: 2px solid #e5e5e5;
     border-radius: 8px;
     margin-bottom: 10px;
 }
 #card-errors {
     color: #e74c3c;
     font-size: 14px;
     margin-bottom: 20px;
 }

 .trial-button {
     width: 100%;
     padding: 18px;
     background: var(--hopper-blue);
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 21px;
     font-weight: 600;
     letter-spacing: 1.1px;
     word-spacing: 2px;
     cursor: pointer;
     transition: all 0.3s ease;
     text-transform: uppercase;
 }
 .trial-button:hover {
     background: var(--hopper-blue-dark);
 }
 .trial-button:active {
     background: var(--hopper-blue-dark);
 }
 .trial-button:disabled {
     background: hsla(from var(--hopper-blue) h s l / 0.5);
 }
 .trial-disclaimer {
     font-size: 12px;
     color: var(--hopper-muted-text);
     text-align: center;
     margin-top: 16px;
     margin-bottom: 16px;
 }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
    }

    .left-side {
        min-height: 200px;
        max-height: max-content;
        flex: none;
        padding-top: 1em;
        padding-bottom: 1em;
    }

    .social-icons {
        display: none;
    }

    .right-side {
        padding: 30px 20px;
        max-height: max-content;
    }

    .pricing-cards {
        flex-direction: column;
    }

    .testimonials {
        flex-direction: column;
        gap: 20px;
    }

    .trial-header {
        margin-top: 12px;
    }

    .trial-header .pay-nothing {
        /* right: calc(var(--pay-nothing-size) / 3); */
        right: 0;
        top: calc(var(--pay-nothing-size) / 3 * -1);
    }
}

@media (min-width: 768px) {
    .trial-header .pay-nothing {
        right: calc(var(--pay-nothing-size) * -1);
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .right-side {
        padding-top: 30px;
        padding-bottom: 0;
    }
}
    