/* assets/frontend-style.css */

.academy-calc-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.calc-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calc-header {
    background: #287ff9 !important;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.calc-title {
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 10px 0;
	color:#fff !important;
}

.calc-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

.calc-form {
    padding: 40px 30px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.calc-field select,
.calc-field input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
    background: #ffffff;
}

.calc-field select:focus,
.calc-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calc-field input::placeholder {
    color: #9ca3af;
}

.calc-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    background: #fbbf24;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.calc-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

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

/* Results Section */
.calc-results {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 2px solid #c7d2fe;
}

.results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 25px 0;
}

.results-details {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.result-label {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.result-value {
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
}

.result-subtotal {
    background: #fef3c7;
    padding: 12px 15px;
    margin: 10px -10px;
    border-radius: 6px;
}

.discount-row {
    background: #d1fae5;
    padding: 12px 15px;
    margin: 10px -10px;
    border-radius: 6px;
}

.discount-row .result-label,
.discount-row .result-value {
    color: #065f46;
}

.result-total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 3px solid #3b82f6;
    background: #dbeafe;
    padding: 20px 15px;
    margin: 20px -10px 0;
    border-radius: 6px;
}

.result-total .result-label,
.result-total .result-value {
    font-size: 20px;
    color: #1e40af;
    font-weight: 700;
}

.calculation-formula {
    background: #dbeafe;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.calculation-formula > p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1e40af;
    font-weight: 700;
}

.formula-text {
    margin-top: 10px;
}

.formula-step {
    font-size: 14px;
    color: #1e3a8a;
    line-height: 1.8;
    padding: 8px 0;
    border-bottom: 1px dashed #bfdbfe;
}

.formula-step:last-child {
    border-bottom: none;
}

.formula-step span {
    font-weight: 600;
    color: #1e40af;
}

.formula-final {
    margin-top: 10px;
    padding: 15px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}

.formula-final span {
    color: #fbbf24;
    font-size: 18px;
}

/* Help Section */
.calc-help {
    padding: 40px 30px;
    text-align: center;
    background: #f9fafb;
    border-top: 2px dashed #d1d5db;
}

.calc-help h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.calc-help p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.help-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color:#fff !important;
    background: #287ff9 !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.help-button:hover {
    background: #fbbf24 !important;
    transform: translateY(-2px);
/*     box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); */
    color: #000 !important;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calc-header {
        padding: 30px 20px;
    }
    
    .calc-title {
        font-size: 24px;
    }
    
    .calc-subtitle {
        font-size: 16px;
    }
    
    .calc-form {
        padding: 30px 20px;
    }
    
    .calc-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calc-results {
        padding: 20px;
    }
    
    .results-details {
        padding: 20px;
    }
    
    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-total .result-label,
    .result-total .result-value {
        font-size: 18px;
    }
    
    .calc-help {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .academy-calc-frontend {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .calc-title {
        font-size: 20px;
    }
    
    .calc-button {
        font-size: 16px;
        padding: 14px 24px;
    }
}