/* Calculators Page Styles */
.calc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.calc-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.calc-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Calculators Section */
.calculators-section {
    padding: 60px 0;
    background: #f8fafc;
}

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

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Calculator Header */
.calc-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.calc-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.calc-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark);
}

.calc-header p {
    color: var(--gray);
    font-size: 16px;
}

/* Calculator Body */
.calc-body {
    padding: 30px;
}

.calc-inputs {
    margin-bottom: 25px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

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

.input-wrapper input {
    width: 100%;
    padding: 12px;
    padding-left: 35px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.currency-symbol {
    position: absolute;
    left: 15px;
    color: var(--gray);
    font-weight: 600;
}

.input-suffix {
    position: absolute;
    right: 15px;
    color: var(--gray);
    font-weight: 600;
    pointer-events: none;
}

.input-wrapper:has(.input-suffix) input {
    padding-right: 35px;
}

/* Single input without wrapper */
.input-group > input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group > input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Calculate Button */
.calc-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

/* Results */
.calc-results {
    margin-top: 25px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.calc-results h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.result-item.highlight {
    background: #eff6ff;
    margin: 15px -15px -15px;
    padding: 20px 15px;
    border-radius: 0 0 8px 8px;
    border: none;
}

.result-label {
    color: var(--gray);
    font-weight: 500;
}

.result-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.result-item.highlight .result-value {
    color: var(--primary);
    font-size: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculators-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .calc-hero h1 {
        font-size: 32px;
    }
    
    .calc-hero p {
        font-size: 18px;
    }
    
    .calculators-section {
        padding: 40px 0;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calc-header {
        padding: 25px;
    }
    
    .calc-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .calc-header h2 {
        font-size: 20px;
    }
    
    .calc-header p {
        font-size: 14px;
    }
    
    .calc-body {
        padding: 25px;
    }
    
    .input-wrapper input,
    .input-group > input {
        padding: 10px;
        padding-left: 35px;
        font-size: 14px;
    }
    
    .calc-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .calc-results {
        padding: 20px;
    }
    
    .result-value {
        font-size: 18px;
    }
    
    .result-item.highlight .result-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calc-hero {
        padding: 40px 0;
    }
    
    .calc-header {
        padding: 20px;
    }
    
    .calc-body {
        padding: 20px;
    }
    
    .calc-results {
        padding: 15px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-label {
        font-size: 14px;
    }
}