/* ===========================
   Modern Pricing Calculator Styles
   =========================== */

/* Calculator container - improved layout */
/* Override direct-debits.css grid on pricing-calculator itself */
.pricing-calculator {
    display: block !important;  /* Override any grid on the container */
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

.calculator-header h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.calculator-header p {
    color: var(--white);
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Slider controls - improved spacing */
.calculator-controls {
    padding: 3rem 3rem 2rem 3rem;
    background: var(--bg-light);
}

/* Two-column pricing layout with specific selector to override conflicts */
.pricing-calculator .pricing-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
    padding: 3rem !important;
    background: var(--white) !important;
}

.pricing-calculator .pricing-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-calculator .pricing-right {
    display: flex;
    align-items: flex-start;
}

.slider-group {
    width: 100%;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.slider-label span {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Fixed width container to prevent jumping */
.slider-label strong {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    min-width: 140px;
    text-align: right;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* Modern Slider styling with gradient fill */
.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
}

#volumeSlider,
#obVolumeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 12px;
    background: #e8e8e8;
    outline: none;
    position: relative;
    cursor: pointer;
}

/* Webkit browsers (Chrome, Safari, Edge) */
#volumeSlider::-webkit-slider-track,
#obVolumeSlider::-webkit-slider-track {
    width: 100%;
    height: 12px;
    background: transparent;
    border-radius: 12px;
}

#volumeSlider::-webkit-slider-thumb,
#obVolumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: 4px solid var(--white);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

#volumeSlider::-webkit-slider-thumb:hover,
#obVolumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.5), 0 3px 10px rgba(0, 0, 0, 0.15);
}

#volumeSlider::-webkit-slider-thumb:active,
#obVolumeSlider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.4), 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Firefox */
#volumeSlider::-moz-range-track,
#obVolumeSlider::-moz-range-track {
    width: 100%;
    height: 12px;
    background: #e8e8e8;
    border-radius: 12px;
    border: none;
}

#volumeSlider::-moz-range-progress,
#obVolumeSlider::-moz-range-progress {
    height: 12px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 12px 0 0 12px;
}

#volumeSlider::-moz-range-thumb,
#obVolumeSlider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: 4px solid var(--white);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#volumeSlider::-moz-range-thumb:hover,
#obVolumeSlider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.5), 0 3px 10px rgba(0, 0, 0, 0.15);
}

#volumeSlider::-moz-range-thumb:active,
#obVolumeSlider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

/* IE/Edge */
#volumeSlider::-ms-track,
#obVolumeSlider::-ms-track {
    width: 100%;
    height: 12px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

#volumeSlider::-ms-fill-lower,
#obVolumeSlider::-ms-fill-lower {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
}

#volumeSlider::-ms-fill-upper,
#obVolumeSlider::-ms-fill-upper {
    background: #e8e8e8;
    border-radius: 12px;
}

#volumeSlider::-ms-thumb,
#obVolumeSlider::-ms-thumb {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: 4px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.slider-range span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Pricing result cards - vertical stack layout */
.pricing-result {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.result-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
}

.result-card.highlighted {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.35);
    padding: 2.5rem 3rem;
}

.result-card.highlighted::before {
    opacity: 1;
    width: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.result-card.highlighted:hover {
    transform: translateX(12px);
    box-shadow: 0 14px 50px rgba(233, 30, 99, 0.45);
}

.result-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 700;
}

.result-card.highlighted .result-label {
    opacity: 0.95;
}

.result-note {
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
    font-weight: 500;
}

.result-card.highlighted .result-note {
    opacity: 0.9;
}

/* Fixed width containers for values to prevent jumping */
.result-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    min-width: 150px;
    text-align: right;
    white-space: nowrap;
}

.result-card.highlighted .result-value {
    color: var(--white);
}

.result-value.large {
    font-size: 3.2rem;
    min-width: 180px;
}

/* Credit Expiry Notice - Subtle Design */
.credit-expiry-notice {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.75rem 2rem;
    background: rgba(233, 30, 99, 0.04);
    border-top: 1px solid rgba(233, 30, 99, 0.1);
    margin-top: 1.5rem;
    border-radius: 0 0 20px 20px;
}

.expiry-icon {
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.expiry-icon i {
    font-size: 1.1rem;
    color: rgba(233, 30, 99, 0.6);
}

.expiry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expiry-content h5 {
    display: none;
}

.expiry-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.expiry-content p i {
    margin-right: 0.5rem;
}

.expiry-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Pricing Features - improved layout */
.pricing-features {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 20px;
    width: 100%;
}

.pricing-features h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.pricing-features ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pricing-features li:hover {
    transform: translateX(5px);
    border-color: rgba(233, 30, 99, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-features li i {
    color: var(--white);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .pricing-calculator {
        margin-top: 3rem;
    }
    
    .calculator-header {
        padding: 2.5rem 2rem;
    }
    
    .calculator-header h3 {
        font-size: 1.8rem;
    }
    
    .calculator-controls {
        padding: 2.5rem 2rem;
    }
    
    .pricing-body {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }
    
    .pricing-result {
        gap: 1.25rem;
    }
    
    .result-card {
        padding: 1.75rem 2rem;
    }
    
    .result-card.highlighted {
        padding: 2rem 2.5rem;
    }
    
    .credit-expiry-notice {
        padding: 1.25rem 1.5rem;
        gap: 0.875rem;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .expiry-content {
        gap: 0.625rem;
    }
    
    .expiry-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .slider-label strong {
        font-size: 1.75rem;
        min-width: 120px;
    }
    
    .result-value {
        font-size: 2.5rem;
        min-width: 130px;
    }
    
    .result-value.large {
        font-size: 2.8rem;
        min-width: 160px;
    }
    
    .pricing-features {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .pricing-features ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-value {
        text-align: left;
        font-size: 2.5rem;
    }
    
    .result-value.large {
        font-size: 2.8rem;
    }
    
    .credit-expiry-notice {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
    
    .expiry-content {
        gap: 0.625rem;
    }
    
    .expiry-content p {
        font-size: 0.825rem;
        line-height: 1.55;
    }
}

/* ===========================
   Low Price Guarantee Section
   =========================== */

.low-price-guarantee {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.guarantee-badge i {
    font-size: 1.1rem;
}

.low-price-guarantee h2 {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 800px;
}

.guarantee-content {
    max-width: 1100px;
}

.guarantee-content .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.04), rgba(240, 98, 146, 0.02));
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.guarantee-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.guarantee-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.guarantee-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(233, 30, 99, 0.08);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.highlight-card:hover::before {
    transform: scaleX(1);
}

.highlight-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.3);
}

.highlight-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.highlight-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.highlight-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive for Low Price Guarantee */
@media (max-width: 968px) {
    .low-price-guarantee {
        padding: 80px 0;
    }
    
    .low-price-guarantee h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
    
    .guarantee-content .lead {
        font-size: 1.2rem;
        padding: 1.25rem;
    }
    
    .guarantee-content p {
        font-size: 1.05rem;
    }
    
    .guarantee-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
        margin-top: 3rem;
    }
    
    .highlight-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .low-price-guarantee {
        padding: 60px 0;
    }
    
    .low-price-guarantee h2 {
        font-size: 2rem;
    }
    
    .guarantee-content .lead {
        font-size: 1.15rem;
        padding: 1.25rem;
    }
    
    .guarantee-content p {
        font-size: 1rem;
    }
    
    .guarantee-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .highlight-card {
        padding: 2rem 1.5rem;
    }
    
    .highlight-card:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 480px) {
    .low-price-guarantee {
        padding: 50px 0;
    }
    
    .guarantee-badge {
        font-size: 0.8rem;
        padding: 0.75rem 1.5rem;
    }
    
    .low-price-guarantee h2 {
        font-size: 1.75rem;
    }
    
    .guarantee-content .lead {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .guarantee-content p {
        font-size: 0.95rem;
    }
    
    .highlight-card {
        padding: 1.75rem 1.25rem;
    }
    
    .highlight-card i {
        font-size: 2.5rem;
    }
    
    .highlight-card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .pricing-calculator {
        border-radius: 16px;
    }
    
    .calculator-header {
        padding: 2rem 1.5rem;
    }
    
    .calculator-header h3 {
        font-size: 1.5rem;
    }
    
    .calculator-header p {
        font-size: 0.95rem;
    }
    
    .calculator-controls {
        padding: 2rem 1.5rem;
    }
    
    .slider-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .slider-label strong {
        font-size: 1.6rem;
        min-width: auto;
        text-align: left;
    }
    
    .pricing-result {
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .result-card.highlighted {
        padding: 1.75rem;
    }
    
    .result-value {
        font-size: 2rem;
        min-width: auto;
    }
    
    .result-value.large {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .credit-expiry-notice {
        padding: 0.75rem 1.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .expiry-icon i {
        font-size: 0.9rem;
    }
    
    .expiry-content p {
        font-size: 0.75rem;
    }
    
    .pricing-features {
        padding: 2rem 1.5rem;
    }
    
    .pricing-features h4 {
        font-size: 1.4rem;
    }
    
    .pricing-features li {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
