/* Base Styles */
.pylon-loan-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    * {
        box-sizing: border-box;
    }
}

/* Common Styles */
.pylon-slider-group {
    margin-bottom: 25px;
}

.pylon-slider-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.pylon-slider {
    margin: 15px 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
}

.pylon-slider .ui-slider-range {
    background: #4CAF50;
    height: 100%;
    border-radius: 3px;
}

.pylon-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    top: -7px;
    margin-left: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.pylon-slider .ui-slider-handle.ui-state-active {
    transform: scale(1.2);
}

.pylon-slider-value {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pylon-slider-value .pylon-value {
    margin: 0 5px;
}

.pylon-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.pylon-result-label {
    color: #666;
}

.pylon-result-value {
    font-weight: 600;
    color: #333;
}

.pylon-loan-button {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pylon-loan-button:hover {
    background: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pylon-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* Style 1 Specific */
.pylon-loan-calculator.style-1 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pylon-loan-calculator.style-1 .pylon-loan-form {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}

.pylon-loan-calculator.style-1 .pylon-slider-container {
    flex: 1 1 60%;
    padding-right: 30px;
}

.pylon-loan-calculator.style-1 .pylon-results-container {
    flex: 1 1 40%;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

/* Style 2 Specific */
.pylon-loan-calculator.style-2 {
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pylon-loan-calculator.style-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.pylon-loan-calculator.style-2 .pylon-loan-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.pylon-loan-calculator.style-2 .pylon-loan-controls {
    flex: 1 1 50%;
    padding: 40px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.pylon-loan-calculator.style-2 .pylon-loan-results {
    flex: 1 1 50%;
    padding: 40px;
    background: rgba(0,0,0,0.7);
}

.pylon-loan-calculator.style-2 .pylon-calc-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.pylon-loan-calculator.style-2 .pylon-calc-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.pylon-loan-calculator.style-2 .pylon-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pylon-loan-calculator.style-2 .pylon-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.pylon-loan-calculator.style-2 .pylon-results-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #fff;
}

.pylon-loan-calculator.style-2 .pylon-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pylon-loan-calculator.style-2 .pylon-result-item {
    border-bottom: none;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.pylon-loan-calculator.style-2 .pylon-result-label {
    color: #ccc;
}

.pylon-loan-calculator.style-2 .pylon-result-value {
    color: #fff;
}

.pylon-loan-calculator.style-2 .pylon-loan-button {
    background: #4CAF50;
    color: white;
    width: 100%;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pylon-loan-calculator.style-1 .pylon-loan-form,
    .pylon-loan-calculator.style-2 .pylon-loan-wrapper {
        flex-direction: column;
    }
    
    .pylon-loan-calculator.style-1 .pylon-slider-container,
    .pylon-loan-calculator.style-1 .pylon-results-container {
        padding: 20px;
        flex: 1 1 100%;
    }
    
    .pylon-loan-calculator.style-1 .pylon-results-container {
        border-left: none;
        border-top: 1px solid #eee;
    }
    
    .pylon-loan-calculator.style-2 .pylon-loan-controls,
    .pylon-loan-calculator.style-2 .pylon-loan-results {
        flex: 1 1 100%;
    }
    
    .pylon-loan-calculator.style-2 .pylon-result-grid {
        grid-template-columns: 1fr;
    }
}