/* ===================================================================
   BONUS CALCULATOR
   =================================================================== */

.calculator-page {
    padding: 0 0 60px;
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: 48px;
}

.calculator-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #ffffff;
    animation: iconFloat 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.calculator-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.calculator-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Card */
.calculator-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

/* Form Section */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #60a5fa;
}

/* Input Styles */
.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

/* Select Dropdown */
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="%23fbbf24"><path d="M8 11L3 6h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: #60a5fa;
    background-color: rgba(15, 23, 42, 0.8);
}

.form-select option {
    background: #1e293b;
    color: #ffffff;
    padding: 12px;
}

/* Range Slider */
.range-container {
    position: relative;
    padding-top: 40px;
}

.form-range {
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.range-value {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #8b5cf6 100%);
    box-shadow: 0 8px 35px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
}

.calculate-btn:active {
    transform: scale(0.98);
}

/* Results */
.calculator-results {
    display: none;
    padding: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    margin-top: 32px;
}

.calculator-results.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

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

.results-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-title i {
    color: #60a5fa;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: border-color 0.3s, transform 0.3s;
}

.result-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.result-label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.result-value {
    font-size: 28px;
    font-weight: 900;
    color: #60a5fa;
    margin: 0;
}

.result-value small {
    font-size: 16px;
    color: #64748b;
}

/* CTA Section */
.calculator-cta {
    text-align: center;
    padding: 32px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    margin-top: 32px;
}

.cta-text {
    font-size: 18px;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #8b5cf6 100%);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
}

/* Mobile */
@media (max-width: 768px) {
    .calculator-card {
        padding: 24px 18px;
    }

    .calculator-title {
        font-size: 28px;
    }

    .calculator-subtitle {
        font-size: 16px;
    }

    .calculator-icon {
        width: 80px;
        height: 80px;
        font-size: 38px;
        border-radius: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .result-value {
        font-size: 22px;
    }

    .calculator-cta {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 20px 14px;
    }
}
