/* Lump Sum Calculator Specific Styles */

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    color: #204080;
}

.card-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.calculator-form-inner {
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-of-type {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section h3 i {
    color: #204080;
}

.input-group {
    margin-bottom: 25px;
}

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

.input-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-field:focus {
    outline: none;
    border-color: #204080;
    background: white;
    box-shadow: 0 0 0 3px rgba(32, 64, 128, 0.1);
}

.currency-symbol,
.percentage-symbol,
.unit-symbol {
    position: absolute;
    font-weight: 600;
    color: #666;
    pointer-events: none;
}

.currency-symbol {
    left: 16px;
}

.percentage-symbol,
.unit-symbol {
    right: 16px;
}

.input-with-symbol .currency-symbol + .input-field {
    padding-left: 40px;
}

.input-with-symbol .input-field + .percentage-symbol,
.input-with-symbol .input-field + .unit-symbol {
    right: 16px;
}

.help-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-text i {
    color: #204080;
}

/* Suggestion Chips */
.suggestion-chips {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.chip {
    background: #f8f9ff;
    border: 2px solid #204080;
    color: #204080;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: #204080;
    color: white;
    transform: translateY(-1px);
}

.chip.active {
    background: #204080;
    color: white;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #204080 0%, #1a3366 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    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(32, 64, 128, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(32, 64, 128, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Results Section */
.results-section {
    animation: fadeInUp 0.6s ease-out;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.result-item.highlight {
    background: linear-gradient(135deg, #204080 0%, #1a3366 100%);
    color: white;
    grid-column: 1 / -1;
}

.result-item.highlight:hover {
    background: linear-gradient(135deg, #1a3366 0%, #142a5c 100%);
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 64, 128, 0.1);
    flex-shrink: 0;
}

.result-item.highlight .result-icon {
    background: rgba(255, 255, 255, 0.2);
}

.result-icon i {
    font-size: 20px;
    color: #204080;
}

.result-item.highlight .result-icon i {
    color: white;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.result-item.highlight .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.result-item.highlight .result-value {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .card-header {
        padding: 20px;
    }

    .calculator-form-inner {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .input-field {
        padding: 14px 16px;
        font-size: 16px;
    }

    .currency-symbol {
        left: 12px;
    }

    .percentage-symbol,
    .unit-symbol {
        right: 12px;
    }

    .input-with-symbol .currency-symbol + .input-field {
        padding-left: 32px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .result-item.highlight {
        grid-column: 1;
    }

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

    .suggestion-chips {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .chip {
        font-size: 12px;
        padding: 6px 12px;
    }

    .calculate-btn {
        font-size: 16px;
        padding: 16px 20px;
    }

    .result-item {
        padding: 15px;
    }

    .result-icon {
        width: 40px;
        height: 40px;
    }

    .result-icon i {
        font-size: 16px;
    }

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

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.calculate-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.calculate-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Section Styles */
.info-section {
    margin: 60px 0;
    padding: 50px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-section h2 i {
    color: #204080;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.info-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(32, 64, 128, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(32, 64, 128, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #204080;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Usage Guide Styles */
.usage-guide {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 20px;
}

.usage-guide h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.usage-guide h2 i {
    color: #204080;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #204080, #1a3366);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Related Calculators */
.related-calculators {
    margin: 60px 0;
}

.related-calculators h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.related-calculators h2 i {
    color: #204080;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #204080, #1a3366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.related-icon i {
    font-size: 24px;
    color: white;
}

.related-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.related-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 50px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faq-section h2 i {
    color: #204080;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.faq-item {
    background: #f8f9ff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(32, 64, 128, 0.1);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(32, 64, 128, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.faq-question i {
    color: #204080;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 25px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}
