/* Main Container Styles */
.apus-calculator-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Progress Bar */
.apus-calculator-progress {
    margin-bottom: 2rem;
    background: #f0f0f0;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease-in-out;
}

/* Two Column Layout */
.apus-calculator-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .apus-calculator-container {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.calculator-form-column {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.calculator-step {
    animation: fadeIn 0.3s ease-in-out;
}

.calculator-step h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-prev {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: #2563eb;
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: #1d4ed8;
}

/* Summary Column */
.calculator-summary-column {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.calculator-summary h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Price Display */
.price-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.monthly-budget {
    text-align: center;
    margin-bottom: 1.5rem;
}

.monthly-budget .label {
    display: block;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.monthly-budget .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

/* Price Breakdown */
.price-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.price-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-breakdown li:last-child {
    border-bottom: none;
}

/* Contract Options */
.contract-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.contract-options .option {
    margin: 0.75rem 0;
}

/* Tips Section */
.calculator-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f7ff;
    border-radius: 8px;
}

.calculator-tips h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Modal Styles */
.calculator-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4b5563;
}

/* Educational Section */
.calculator-education {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.education-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation Styles */
.form-group.has-error .form-control {
    border-color: #ef4444;
}

.form-group.has-error .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
}

/* Currency Selector */
.currency-selector {
    text-align: right;
    margin-bottom: 1rem;
}

.currency-selector select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}