/* Inherit base calculator styles */
@import '../cac-calculator/styles.css';

/* Custom styles for SEO ROI calculator */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.reset-button {
    background: white;
    color: #0066FF;
    border: 1px solid #0066FF;
    padding: 14px 24px;
    border-radius: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.reset-button:hover {
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.reset-button:active, 
.reset-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.calculate-button {
    flex: 2;
    margin-top: 0;
}

/* Highlight positive ROI values */
.result-value.positive {
    color: #2ecc71;
}

/* Highlight negative ROI values */
.result-value.negative {
    color: #e74c3c;
}

@media screen and (max-width: 767px) {
    .button-group {
        flex-direction: column;
    }
    
    .calculate-button,
    .reset-button {
        width: 100%;
    }
}

/* Add to existing styles */

.form-group input:invalid {
    border-color: var(--pinstripe);
    background-color: transparent;
}

.form-group input:focus:invalid {
    box-shadow: 0 0 0 3px rgba(44, 69, 125, 0.1);
    border-color: var(--blue-fisagency);
}

/* Input hint styling */
.input-hint {
    font-size: 12px;
    color: var(--body-display);
    margin-top: 4px;
    display: block;
}

.form-group.error .input-hint {
    color: var(--orange-red);
}

/* Loading state for calculate button */
.calculate-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.calculate-button.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-loading 0.8s ease infinite;
}

@keyframes button-loading {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip styles */
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label .tooltip {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--grey);
    border-radius: 50%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    cursor: help;
}

.form-group label .tooltip::before {
    content: "?";
    color: var(--body-display);
}

.form-group label .tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--black);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    margin-bottom: 8px;
    z-index: 1;
}

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

.results-visualization {
    margin-top: 32px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--pinstripe);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-visualization h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--black);
}

.visualization-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.chart-container {
    background: var(--white);
    border: 1px solid var(--pinstripe);
    border-radius: 4px;
    padding: 16px;
    transition: all 0.3s ease;
    height: 300px;
    position: relative;
}

.chart-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.chart-container h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--body-display);
    text-align: center;
}

/* Responsive adjustments for visualizations */
@media screen and (max-width: 1024px) {
    .visualization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .visualization-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
} 