/* ROI Calculator Card CSS - Compact Version */

.roi-calculator-card {
    width: 100%;
    max-width: 400px; /* Further reduced from 440px */
    background: white;
    border-radius: 12px;
    padding: 16px 20px; /* Further reduced padding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.roi-calculator-card * {
    box-sizing: border-box;
}

.roi-price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px; /* Further reduced padding */
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 10px 10px 0 0;
    margin: -16px -20px 0 -20px; /* Adjusted for new padding */
    border: 1px solid #10b981;
    border-bottom: none;
}

.roi-price-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.roi-price-label {
    font-size: 13px;
    color: #065f46;
    font-weight: 600;
}

.roi-price-current {
    font-size: 26px; /* Reduced from 32px */
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.roi-price-original {
    font-size: 13px; /* Reduced from 14px */
    color: #059669;
    text-decoration: line-through;
    opacity: 0.7;
}

.roi-price-badge {
    padding: 3px 8px; /* Reduced padding */
    background: #dc2626;
    color: white;
    border-radius: 4px; /* Reduced radius */
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.roi-card-header {
    margin-bottom: 12px; /* Further reduced margin */
    margin-top: 12px; /* Further reduced margin */
}

.roi-card-title {
    font-size: 15px; /* Reduced from 16px */
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.roi-card-body {
    display: grid;
    grid-template-columns: 130px 1fr; /* Further reduced left column width */
    gap: 12px;
    margin-bottom: 12px; /* Further reduced margin */
}

.roi-inputs-column {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced from 14px */
}

.roi-input-field {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 6px */
}

.roi-field-label {
    font-size: 11px; /* Reduced from 12px */
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
}

.roi-field-input {
    width: 100%;
    padding: 8px 10px; /* Reduced padding */
    border: 1px solid #e2e8f0; /* Reduced border width */
    border-radius: 6px; /* Reduced radius */
    font-size: 12px; /* Reduced from 13px */
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.roi-field-input:hover {
    border-color: #cbd5e1;
    background: white;
}

.roi-field-input:focus {
    border-color: #667eea;
    background: white;
}

.roi-results-column {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981; /* Reduced border width */
    border-radius: 10px; /* Reduced radius */
    padding: 12px 16px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.roi-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0; /* Reduced padding */
}

.roi-result-label {
    font-size: 11px; /* Reduced from 12px */
    color: #065f46;
    font-weight: 500;
    white-space: nowrap; /* Prevent wrapping */
}

.roi-result-value {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 800;
    color: #059669;
    text-align: right;
    width: 110px; /* Reduced from 140px */
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roi-result-value.primary {
    font-size: 18px; /* Reduced from 20px */
    color: #16a34a;
}

.roi-card-footer {
    margin-top: 16px; /* Reduced from 20px */
}

.roi-card-cta-button {
    width: 100%;
    padding: 12px; /* Reduced from 16px */
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px; /* Reduced from 10px */
    font-size: 15px; /* Reduced from 17px */
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.roi-button-arrow {
    font-size: 16px; /* Reduced from 18px */
    transition: transform 0.2s;
}

.roi-card-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.roi-card-cta-button:hover .roi-button-arrow {
    transform: translateX(4px);
}

.roi-card-cta-button:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .roi-card-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
