/*
 * BigAff Calculator Styles
 * Loan Calculator Component
 */

/* Calculator Container */
.sol-calc {
    background: #e2e8f0;
}

.sol-calc__fill,
.sol-calc__handle {
    background: #0f172a;
}

.sol-calc-slider-label {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Credit Score Grid */
.sol-creditscore {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.sol-creditscore .excellent {
    color: #fff;
    background-color: rgba(11, 83, 69, 0.5);
}

.sol-creditscore .verygood {
    color: #fff;
    background-color: rgba(57, 181, 74, 0.5);
}

.sol-creditscore .good {
    color: #fff;
    background-color: rgba(252, 161, 64, 0.5);
}

.sol-creditscore .fair {
    color: #fff;
    background-color: rgba(241, 89, 42, 0.5);
}

.sol-creditscore .poor {
    color: #fff;
    background-color: rgba(231, 76, 60, 0.5);
}

.sol-creditscore .excellent:hover,
.sol-creditscore input[type="radio"]:checked + .excellent {
    background-color: rgba(11, 83, 69, 1);
}

.sol-creditscore .verygood:hover,
.sol-creditscore input[type="radio"]:checked + .verygood {
    background-color: rgba(57, 181, 74, 1);
}

.sol-creditscore .good:hover,
.sol-creditscore input[type="radio"]:checked + .good {
    background-color: rgba(252, 161, 64, 1);
}

.sol-creditscore .fair:hover,
.sol-creditscore input[type="radio"]:checked + .fair {
    background-color: rgba(241, 89, 42, 1);
}

.sol-creditscore .poor:hover,
.sol-creditscore input[type="radio"]:checked + .poor {
    background-color: rgba(231, 76, 60, 1);
}

/* Output Values */
.sol-output-values output {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Input/Output Sections */
.sol-calc-inputs {
    border: 2px solid #22d3ee;
    background: #fff;
    padding: 24px;
    border-radius: 12px 12px 0 0;
}

.sol-calc-outputs {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 24px;
    border-radius: 0 0 12px 12px;
}

@media (min-width: 790px) {
    .sol-calc-inputs {
        border-radius: 12px 0 0 12px;
    }
    
    .sol-calc-outputs {
        border-radius: 0 12px 12px 0;
    }
}

/* Control Buttons */
.sol-calc-down:after,
.sol-calc-up:after,
.sol-calc-up:before {
    background-color: #0f172a;
}

table td.sol-table-label,
table td.sol-table-output {
    color: #ffffff;
    padding: 8px 0;
}

.sol-calc-down,
.sol-calc-up {
    border: 2px solid #0f172a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sol-calc-up:hover,
.sol-calc-down:hover {
    background-color: #e2e8f0;
}

/* Submit Button */
.sol-calc-register .sol-submit {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.sol-calc-register .sol-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: none;
}

.sol-calc-register .sol-submit:hover::before {
    animation: btn-shine 1s ease-out;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.sol-calc-register .sol-submit:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

/* Range Slider */
.sol-calc-range {
    margin-bottom: 20px;
}

.sol-calc-range input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #0ea5e9 0%, #e2e8f0 0%);
    border-radius: 5px;
    outline: none;
    margin: 12px 0;
}

.sol-calc-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sol-calc-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.sol-calc-range input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Slider Output */
.sol-calc_slider_output {
    margin-bottom: 8px;
}

.sol-calc-output-pad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Control Circles */
.sol-circle-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid #0f172a;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.sol-circle-control:hover {
    background: #f1f5f9;
}

.sol-circle-control.sol-calc-down::after {
    content: '';
    width: 10px;
    height: 2px;
    background: #0f172a;
}

.sol-circle-control.sol-calc-up::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #0f172a;
}

.sol-circle-control.sol-calc-up::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 10px;
    background: #0f172a;
}

/* Output Table */
.sol-output-table {
    width: 100%;
    border-collapse: collapse;
}

.sol-output-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sol-output-table tr:last-child {
    border-bottom: none;
}

.sol-output-table td {
    padding: 12px 0;
    color: #fff;
}

.sol-output-table td:first-child {
    opacity: 0.9;
}

.sol-output-table td:last-child {
    text-align: right;
    font-weight: 700;
}

/* Calculator Float Layout */
.sol-calc-sections.sol-calc-float {
    display: flex;
    flex-direction: column;
}

@media (min-width: 790px) {
    .sol-calc-sections.sol-calc-float {
        flex-direction: row;
    }
    
    .sol-calc-sections.sol-calc-float > div {
        flex: 1;
    }
}

/* Principal Slider */
.sol-calc-slider-principal {
    margin-bottom: 24px;
}

/* Term Slider */
.sol-calc-slider-term {
    margin-bottom: 0;
}

/* Values Display */
.sol-values-colour {
    color: #fff;
}

/* Disclaimer Text */
.sol-calc-disclaimer {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 16px;
    line-height: 1.6;
}

/* Animation */
@keyframes sol-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.sol-calc-register .sol-submit:focus {
    animation: sol-pulse 0.5s ease;
}
