/* APR Calculator - Axis Bank Exact Replica Styles */
.apr-calculator-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #f4f6f8;
    border-radius: 20px;
    padding: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Two Column Layout */
.apr-calculator-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
}

.apr-controls-column {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    padding: 0 20px;
}

.apr-display-column {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Control Row Structure */
.apr-control-row {
    margin-bottom: 35px;
}

.apr-control-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
}

.apr-control-label .unit {
    font-weight: 400;
    color: #7f8c8d;
}

.apr-slider-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
}

.apr-slider-container {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-right: 20px;
    position: relative;
}

/* Slider Styling */
.apr-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e4e8;
    border-radius: 5px;
    outline: none;
    margin: 15px 0;
}

/* Webkit Slider Thumb */
.apr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #97144d;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.apr-slider::-webkit-slider-thumb:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(151, 20, 77, 0.1);
}

/* Firefox Slider Thumb */
.apr-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #97144d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apr-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(151, 20, 77, 0.1);
}

/* IE Slider Thumb */
.apr-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #97144d;
    cursor: pointer;
}

/* Min/Max Labels */
.apr-slider-labels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Numeric Input Group */
.apr-input-group {
    background: #ffffff;
    border-radius: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 140px;
    height: 45px;
}

.apr-input-prefix,
.apr-input-suffix {
    padding: 0 12px;
    background: #f8f9fa;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    border-right: 1px solid #e9ecef;
}

.apr-input-suffix {
    border-right: none;
    border-left: 1px solid #e9ecef;
}

.apr-numeric-input {
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 100%;
    background: transparent;
    width: 100%;
}

.apr-numeric-input:focus {
    background: #f8f9fa;
}

/* Remove spinner arrows */
.apr-numeric-input::-webkit-inner-spin-button,
.apr-numeric-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.apr-numeric-input[type=number] {
    -moz-appearance: textfield;
}

/* CTA Button */
.apr-cta-button {
    width: 100%;
    padding: 16px 32px;
    background: #97144d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-transform: none;
}

.apr-cta-button:hover {
    background: #7d1040;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(151, 20, 77, 0.3);
}

.apr-cta-button:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* APR Display Card */
.apr-display-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
}

/* Circular Gauge */
.apr-gauge-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #97144d 0%, #97144d 100%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(58, 188, 218, 0.3);
    position: relative;
}

.apr-gauge-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: rgba(58, 188, 218, 0.1);
    z-index: -1;
}

.apr-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 500;
}

.apr-value {
    font-size: 42px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .apr-controls-column,
    .apr-display-column {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }
    
    .apr-display-column {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .apr-calculator-container {
        padding: 30px 20px;
    }
    
    .apr-slider-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .apr-slider-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .apr-input-group {
        width: 100%;
    }
    
    .apr-gauge-circle {
        width: 180px;
        height: 180px;
    }
    
    .apr-value {
        font-size: 36px;
    }
}

/* Animation */
@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

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

.apr-gauge-circle.updating {
    -webkit-animation: pulse 0.3s ease;
    animation: pulse 0.3s ease;
}