/**
 * Fee Structure Calculator Styles
 */

/* Main container */
.fee-calculator-container {
    position: relative;
    padding: 0 0 40px;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Header Banner Style */
.calculator-header-banner {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 30px auto 40px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

.calculator-header-banner .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    margin-bottom: 15px;
}

.calculator-header-banner .page-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculator-header-banner .page-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Instructions Section */
.fee-calculator-instructions {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.05);
}

.fee-calculator-instructions .instructions-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2E7D32;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.fee-calculator-instructions .instructions-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #4CAF50;
}

.fee-calculator-instructions .instructions-content p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
}

.fee-calculator-instructions .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fee-calculator-instructions .step {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.fee-calculator-instructions .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fee-calculator-instructions .step h3 {
    color: #2E7D32;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.fee-calculator-instructions .step p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* Background decoration - now only for subtle texture */
.calculator-bg-shape {
    position: absolute;
    top: 50%;
    right: 0;
    width: 70%;
    height: 60%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(56, 142, 60, 0.07) 100%);
    clip-path: circle(60% at 80% 50%);
    z-index: -1;
}

.fee-calculator-container::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 40%;
    background: rgba(76, 175, 80, 0.03);
    clip-path: circle(40% at 10% 100%);
    z-index: -1;
}

.fee-calculator-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 193, 7, 0.03);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

/* Main calculator tool */
.fee-calculator-tool {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 35px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .fee-calculator-tool {
        flex-direction: row;
    }
    
    .calculator-form,
    .fee-results {
        flex: 1;
    }
    
    .calculator-form {
        border-right: 1px solid #f0f0f0;
        padding-right: 30px;
    }
    
    .fee-results {
        padding-left: 30px;
    }
}

/* Form and results section headers */
.calculator-form h2,
.fee-results h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #2E7D32;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    position: relative;
}

.calculator-form h2::after,
.fee-results h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #4CAF50;
}

/* Form groups and inputs */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

select, 
input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

select:focus, 
input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: #fff;
}

/* Toggle switch styles */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    margin: 0;
}

.custom-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: linear-gradient(to right, #4CAF50, #2E7D32);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-status {
    font-weight: 600;
    min-width: 30px;
    font-size: 16px;
    color: #555;
}

/* Button styles */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    width: 100%;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Results section */
.fee-results {
    padding: 30px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 12px;
}

/* University logo and info */
.university-logo {
    text-align: center;
    margin-bottom: 25px;
}

.university-logo img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background-color: white;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.university-info {
    text-align: center;
    margin-bottom: 30px;
}

.university-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2E7D32;
    font-weight: 700;
}

.university-info p {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

/* Fee breakdown section */
.fee-breakdown {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-label {
    font-weight: 600;
    color: #444;
    font-size: 16px;
}

.fee-amount {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.total-fee {
    margin-top: 15px;
    padding-top: 18px;
    border-top: 2px solid #e0e0e0;
    font-size: 20px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.total-fee .fee-label,
.total-fee .fee-amount {
    font-weight: 700;
    color: #2E7D32;
    font-size: 22px;
}

/* Disclaimer */
.fee-disclaimer {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffd700;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Action buttons */
.fee-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .calculator-header-banner .page-title {
        font-size: 28px;
    }
    
    .calculator-header-banner .page-description {
        font-size: 16px;
    }
    
    .calculator-header-banner {
        padding: 40px 20px;
    }
    
    .calculator-header-banner .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .fee-calculator-instructions {
        padding: 20px;
    }
    
    .fee-calculator-instructions .step {
        padding: 15px;
    }
    
    .fee-calculator-instructions .step h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .calculator-header-banner .page-title {
        font-size: 24px;
    }
    
    .calculator-header-banner {
        padding: 30px 15px;
        margin: 20px auto 30px;
    }
    
    .calculator-header-banner .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .fee-calculator-tool {
        padding: 20px;
    }
    
    .fee-calculator-instructions {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .fee-calculator-instructions .steps-container {
        grid-template-columns: 1fr;
    }
    
    .fee-calculator-instructions .instructions-title {
        font-size: 22px;
    }
    
    .fee-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .university-logo img {
        max-width: 100px;
        max-height: 100px;
    }
} 