/* AB Detailing Pricing Widget Styles */

.abpr-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.abpr-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout */
.abpr-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.abpr-content-col {
    flex: 1.2;
}

.abpr-card-col {
    flex: 0.8;
}

/* Typography */
.abpr-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.abpr-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #2563EB;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.abpr-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #2563EB;
    margin: 30px 0 20px 0;
    line-height: 1.4;
}

.abpr-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

.abpr-desc p {
    margin-bottom: 20px;
}

.abpr-intro {
    font-weight: 700;
    color: #0f172a;
    font-size: 18px;
}

/* Pricing Card (Right Side) */
.abpr-price-card {
    background-color: #2563EB;
    background-image: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.abpr-price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.28);
}

/* Decorative circles in background */
.abpr-price-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.abpr-price-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.abpr-card-inner {
    position: relative;
    z-index: 2;
}

.abpr-starting-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.abpr-price-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
    line-height: 1;
}

.abpr-currency {
    font-size: 32px;
    font-weight: 600;
    margin-top: 10px;
    margin-right: 8px;
    opacity: 0.9;
}

.abpr-amount {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -2px;
}

.abpr-period {
    display: block;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Button inside card */
.abpr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 30px;
    background-color: #ffffff;
    color: #2563EB !important;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.abpr-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background-color: #f8fafc;
}

.abpr-btn:active {
    transform: translateY(-1px);
    transition-duration: 0.12s;
}

.abpr-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.abpr-btn-arrow {
    display: inline-block;
    margin-left: 0.35em;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.abpr-btn:hover .abpr-btn-arrow {
    transform: translateX(5px);
}

/* ==========================================================
   Smooth, lightweight animations
   (transform + opacity only, so they stay GPU-friendly)
   ========================================================== */

/* Hidden only while JS is waiting for the section to scroll into view.
   Failsafe animation reveals everything after 3s if JS never runs. */
.abpr-animate:not(.abpr-visible) .abpr-title,
.abpr-animate:not(.abpr-visible) .abpr-subtitle,
.abpr-animate:not(.abpr-visible) .abpr-desc > *,
.abpr-animate:not(.abpr-visible) .abpr-price-card {
    opacity: 0;
    animation: abpr-failsafe 0.01s linear 3s forwards;
}

.abpr-animate:not(.abpr-visible) .abpr-title::after {
    transform: var(--abpr-tx, none) scaleX(0);
    animation: abpr-failsafe-line 0.01s linear 3s forwards;
}

.abpr-animate.abpr-visible .abpr-title,
.abpr-animate.abpr-visible .abpr-subtitle,
.abpr-animate.abpr-visible .abpr-desc > * {
    animation: abpr-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.abpr-animate.abpr-visible .abpr-title            { animation-delay: 0.05s; }
.abpr-animate.abpr-visible .abpr-subtitle         { animation-delay: 0.18s; }
.abpr-animate.abpr-visible .abpr-desc > *:nth-child(1) { animation-delay: 0.30s; }
.abpr-animate.abpr-visible .abpr-desc > *:nth-child(2) { animation-delay: 0.40s; }
.abpr-animate.abpr-visible .abpr-desc > *:nth-child(3) { animation-delay: 0.50s; }

.abpr-animate.abpr-visible .abpr-title::after {
    transform-origin: var(--abpr-origin, left center);
    animation: abpr-line 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s backwards;
}

.abpr-animate.abpr-visible .abpr-price-card {
    animation: abpr-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

/* Gentle floating of the decorative circles */
.abpr-animate.abpr-visible .abpr-price-card::before {
    animation: abpr-float-a 9s ease-in-out 1s infinite alternate;
}
.abpr-animate.abpr-visible .abpr-price-card::after {
    animation: abpr-float-b 11s ease-in-out 1s infinite alternate;
}

@keyframes abpr-fade-up {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes abpr-card-in {
    from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes abpr-line {
    from { transform: var(--abpr-tx, none) scaleX(0); }
    to   { transform: var(--abpr-tx, none) scaleX(1); }
}

@keyframes abpr-float-a {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-14px, 12px, 0); }
}

@keyframes abpr-float-b {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(16px, -12px, 0); }
}

@keyframes abpr-failsafe {
    to { opacity: 1; transform: none; }
}

@keyframes abpr-failsafe-line {
    to { transform: var(--abpr-tx, none) scaleX(1); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .abpr-animate .abpr-title,
    .abpr-animate .abpr-subtitle,
    .abpr-animate .abpr-desc > *,
    .abpr-animate .abpr-price-card,
    .abpr-animate .abpr-price-card::before,
    .abpr-animate .abpr-price-card::after,
    .abpr-animate .abpr-title::after {
        opacity: 1 !important;
        animation: none !important;
    }
    .abpr-animate .abpr-title::after {
        transform: var(--abpr-tx, none) !important;
    }
    .abpr-price-card,
    .abpr-btn,
    .abpr-btn-arrow {
        transition: none;
    }
    .abpr-price-card:hover,
    .abpr-btn:hover,
    .abpr-btn:hover .abpr-btn-arrow {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .abpr-grid {
        flex-direction: column;
        gap: 50px;
    }
    
    .abpr-title::after {
        left: 50%;
        --abpr-tx: translateX(-50%);
        --abpr-origin: center center;
        transform: translateX(-50%);
    }
    
    .abpr-content-col {
        text-align: center;
    }
    
    .abpr-desc {
        text-align: left;
    }
    
    .abpr-card-col {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .abpr-section {
        padding: 60px 15px;
    }
    .abpr-title {
        font-size: 32px;
    }
    .abpr-subtitle {
        font-size: 20px;
    }
    .abpr-amount {
        font-size: 60px;
    }
    .abpr-currency {
        font-size: 24px;
    }
}
