/* Calculator Page Styles */

.calculator-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.calculator-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.calculator-main {
    padding: 60px 0 100px;
    background: #fff;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Steps Section */
.calculator-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.step-card.active {
    background: #fff;
    border: 2px solid #e9ecef;
    opacity: 1;
    pointer-events: all;
}

.step-card.completed {
    opacity: 1;
    background: #f8f9fa;
}

.step-header {
    margin-bottom: 24px;
}

.step-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.calc-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #000;
    background: #fff;
}

.calc-input:focus {
    outline: none;
    border-color: #000;
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-currency .calc-input {
    padding-right: 80px;
}

.currency-badge {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
}

.currency-badge .currency-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.crypto-select-wrapper .currency-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.collateral-input-group {
    position: relative;
}

.collateral-input-group .calc-input {
    padding-right: 100px;
}

.usd-equivalent {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #666;
    pointer-events: none;
}

.crypto-select-wrapper {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
}

.crypto-select-dropdown {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.crypto-select-dropdown:focus {
    outline: none;
}

.btn-next {
    width: 100%;
    padding: 14px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-next:hover:not(:disabled) {
    background: #333;
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

/* LTV Slider */
.ltv-slider-container {
    margin-top: 24px;
}

.ltv-slider-container .input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: #666;
    cursor: help;
}

.ltv-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ltv-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ltv-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ltv-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

/* Duration Slider */
.duration-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.duration-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

/* Term Options */
.term-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.term-btn {
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-btn:hover {
    border-color: #000;
    background: #f8f9fa;
}

.term-btn.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Loan Summary Panel */
.loan-summary-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.loan-summary-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
}

.payment-type-toggle {
    margin-bottom: 32px;
}

.toggle-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.toggle-buttons {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #000;
    color: #fff;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row.highlight {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #000;
    border-bottom: 2px solid #000;
}

.summary-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.summary-row.highlight .summary-value {
    font-size: 1.25rem;
}

.btn-apply {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-apply:hover:not(:disabled) {
    background: #333;
    transform: translateY(-1px);
}

.btn-apply:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.disclaimer {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .loan-summary-panel {
        position: static;
        order: -1;
    }

    .calculator-hero h1 {
        font-size: 2rem;
    }

    .term-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .calculator-hero {
        padding: 60px 0 40px;
    }

    .calculator-hero h1 {
        font-size: 1.75rem;
    }

    .calculator-hero .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-main {
        padding: 40px 0 60px;
    }

    .step-card {
        padding: 24px;
    }

    .loan-summary-panel {
        padding: 24px;
    }

    .term-options {
        grid-template-columns: 1fr;
    }
}
