/**
 * Elkfort Calculator Styles
 * Professional, conversion-optimized calculator UI
 */

.elkfort-calculator {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.elkfort-calculator h4 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

.elkfort-calculator > p {
    margin: 0 0 24px 0;
    color: #4a5568;
    font-size: 16px;
}

/* Form Styling */
.calculator-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    color: #1a202c;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
}

/* Button Styling */
.calculator-btn {
    width: 100%;
    padding: 16px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.calculator-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

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

/* Results Preview */
.results-preview {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
}

.results-preview h4 {
    color: #ffffff;
    margin-bottom: 16px;
}

.results-preview p {
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0 0 0;
}

.results-preview .subtitle {
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.9;
}

.savings-amount {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin: 16px 0;
}

.savings-amount .currency {
    font-size: 40px;
    opacity: 0.8;
}

/* Risk Score Display */
.risk-score {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin: 16px 0;
    color: #ffffff;
}

.risk-score .score-label {
    font-size: 32px;
    opacity: 0.7;
    margin-left: 4px;
}

#risk-level-text {
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
}

/* Full Results */
.results-full {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
}

.result-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
}

.result-card.primary h5 {
    color: #ffffff;
    margin-bottom: 16px;
}

.result-card h5 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.result-card p {
    margin: 8px 0 0 0;
    color: #4a5568;
}

.result-card.primary p {
    color: rgba(255, 255, 255, 0.9);
}

.big-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin: 12px 0;
}

.big-number .currency {
    font-size: 36px;
    opacity: 0.8;
}

.result-section {
    margin-bottom: 32px;
}

.result-section h5 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.result-section p {
    color: #4a5568;
    line-height: 1.6;
}

.result-section ol,
.result-section ul {
    margin: 0;
    padding-left: 24px;
}

.result-section li {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

/* Opportunities List */
#opportunities-list .opportunity-item {
    background: #f7fafc;
    border-left: 4px solid #2563eb;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.opportunity-item h6 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.opportunity-item p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
}

.opportunity-item .opportunity-value {
    font-weight: 600;
    color: #2563eb;
    font-size: 16px;
    margin-top: 8px;
}

/* CTA Section */
.cta-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 32px;
}

.cta-section h5 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

.cta-section p {
    margin: 0 0 24px 0;
    color: #4a5568;
    font-size: 16px;
}

/* Privacy Note */
.privacy-note {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

.privacy-note a {
    color: #2563eb;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Loading State */
.calculator-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.calculator-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Risk Level Colors */
.risk-low {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.risk-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.risk-high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .elkfort-calculator {
        padding: 24px 20px;
    }

    .elkfort-calculator h4 {
        font-size: 20px;
    }

    .savings-amount {
        font-size: 42px;
    }

    .savings-amount .currency {
        font-size: 32px;
    }

    .big-number {
        font-size: 36px;
    }

    .big-number .currency {
        font-size: 28px;
    }

    .risk-score {
        font-size: 48px;
    }

    .cta-section {
        padding: 24px 20px;
    }
}

/* Input validation states */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-group .error-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
}
