.sipp-calculator-wrapper * {
    box-sizing: border-box;
}

.sipp-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    margin: 20px auto;
}

.sipp-calculator-wrapper .calculator-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sipp-calculator-wrapper .calculator-header {
    background: linear-gradient(135deg, #25293C 0%, #1589BC 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 15px rgba(21, 137, 188, 0.2);
}

.sipp-calculator-wrapper .calculator-header h1 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: white !important;
    margin-top: 0;
}

.sipp-calculator-wrapper .calculator-header p {
    font-size: 1.1em;
    opacity: 0.95;
    color: white !important;
    margin: 0;
}

.sipp-calculator-wrapper .calculator-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sipp-calculator-wrapper .input-panel {
    padding: 40px;
    background: #fafbfc;
    border-right: 1px solid #e5e7eb;
}

.sipp-calculator-wrapper .input-panel h2 {
    color: #1a365d;
    font-size: 1.4em;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 600;
}

.sipp-calculator-wrapper .input-group {
    margin-bottom: 30px;
}

.sipp-calculator-wrapper .input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sipp-calculator-wrapper .input-label span:first-child {
    color: #4a5568;
    font-size: 0.95em;
    font-weight: 500;
}

.sipp-calculator-wrapper .input-value {
    color: #1589BC;
    font-weight: 600;
    font-size: 1.1em;
}

.sipp-calculator-wrapper .slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sipp-calculator-wrapper .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25293C 0%, #1589BC 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(21, 137, 188, 0.3);
    transition: all 0.2s ease;
}

.sipp-calculator-wrapper .slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(21, 137, 188, 0.4);
}

.sipp-calculator-wrapper .slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25293C 0%, #1589BC 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(21, 137, 188, 0.3);
    transition: all 0.2s ease;
}

.sipp-calculator-wrapper .slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(21, 137, 188, 0.4);
}

.sipp-calculator-wrapper .results-panel {
    padding: 40px;
    background: white;
}

.sipp-calculator-wrapper .results-panel h2 {
    color: #1a365d;
    font-size: 1.4em;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 600;
}

.sipp-calculator-wrapper .chart-container {
    height: 300px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
}

.sipp-calculator-wrapper .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sipp-calculator-wrapper .metric {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.sipp-calculator-wrapper .metric:hover {
    transform: translateY(-2px);
}

.sipp-calculator-wrapper .metric-icon {
    font-size: 2em;
}

.sipp-calculator-wrapper .metric-details {
    flex: 1;
}

.sipp-calculator-wrapper .metric-label {
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 5px;
    display: block;
}

.sipp-calculator-wrapper .metric-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a365d;
    display: block;
}

.sipp-calculator-wrapper .status-alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.sipp-calculator-wrapper .alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.sipp-calculator-wrapper .alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
}

.sipp-calculator-wrapper .alert-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sipp-calculator-wrapper .alert-icon {
    font-size: 1.5em;
    line-height: 1;
}

.sipp-calculator-wrapper .alert-title {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.sipp-calculator-wrapper .alert-message {
    color: #4a5568;
}

.sipp-calculator-wrapper #shortfallAmount {
    font-weight: 700;
    color: #1a365d;
    font-size: 1.1em;
}

.sipp-calculator-wrapper .export-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #25293C 0%, #1589BC 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(21, 137, 188, 0.2);
}

.sipp-calculator-wrapper .export-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 137, 188, 0.35);
    background: linear-gradient(135deg, #1589BC 0%, #25293C 100%);
}

.sipp-calculator-wrapper .modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes sippFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sipp-calculator-wrapper .modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: sippSlideDown 0.3s ease;
    left: 0;
    right: 0;
}

@keyframes sippSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sipp-calculator-wrapper .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
}

.sipp-calculator-wrapper .close:hover {
    color: #333;
}

.sipp-calculator-wrapper .modal-content h2 {
    color: #1a365d;
    margin-bottom: 10px;
    margin-top: 0;
}

.sipp-calculator-wrapper .modal-content > p {
    color: #6b7280;
    margin-bottom: 25px;
}

.sipp-calculator-wrapper .form-group {
    margin-bottom: 20px;
}

.sipp-calculator-wrapper .form-group label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.sipp-calculator-wrapper .form-group input[type="text"],
.sipp-calculator-wrapper .form-group input[type="email"],
.sipp-calculator-wrapper .form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.sipp-calculator-wrapper .form-group input:focus {
    outline: none;
    border-color: #1589BC;
    box-shadow: 0 0 0 3px rgba(21, 137, 188, 0.15);
}

.sipp-calculator-wrapper .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sipp-calculator-wrapper .checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sipp-calculator-wrapper .checkbox-group label {
    margin-bottom: 0;
    flex: 1;
    cursor: pointer;
}

.sipp-calculator-wrapper .btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25293C 0%, #1589BC 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 137, 188, 0.2);
}

.sipp-calculator-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 137, 188, 0.35);
    background: linear-gradient(135deg, #1589BC 0%, #25293C 100%);
}

@media (max-width: 968px) {
    .sipp-calculator-wrapper .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .sipp-calculator-wrapper .input-panel {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sipp-calculator-wrapper .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sipp-calculator-wrapper .calculator-header {
        padding: 20px;
    }
    
    .sipp-calculator-wrapper .calculator-header h1 {
        font-size: 1.5em;
    }
    
    .sipp-calculator-wrapper .input-panel,
    .sipp-calculator-wrapper .results-panel {
        padding: 25px;
    }
    
    .sipp-calculator-wrapper .metric {
        padding: 15px;
    }
    
    .sipp-calculator-wrapper .metric-value {
        font-size: 1.2em;
    }
    
    .sipp-calculator-wrapper .chart-container {
        height: 250px;
    }
}