/* RAVAS Branding Colors */
:root {
    --ravas-red: #E30613;
    --ravas-black: #000000;
    --ravas-dark-grey: #333333;
    --ravas-light-grey: #f4f4f4;
    --ravas-border: #dddddd;
}

.ravas-roi-wrapper {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--ravas-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.ravas-roi-header {
    background: var(--ravas-black);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid var(--ravas-red);
}

.ravas-roi-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #fff;
}

.ravas-roi-container {
    display: flex;
    flex-wrap: wrap;
}

/* Inputs Section */
.ravas-roi-inputs {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #fff;
    border-right: 1px solid var(--ravas-border);
}

.ravas-roi-inputs h3, .ravas-roi-results h3 {
    color: var(--ravas-red);
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 18px;
    border-bottom: 1px solid var(--ravas-border);
    padding-bottom: 10px;
}

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

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

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

.input-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 12px; /* Extra padding on the right to accommodate the unit */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

/* Styles the placeholder text to appear grey */
.input-wrapper input::placeholder {
    color: #a0aab2;
    opacity: 1;
}

.input-wrapper input:focus {
    border-color: var(--ravas-red);
    outline: none;
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.highlight-input {
    background: var(--ravas-light-grey);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--ravas-red);
}

/* Results Section */
.ravas-roi-results {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #fdfdfd;
}

.result-block {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid var(--ravas-border);
    padding: 15px;
    border-radius: 4px;
}

.result-block h4 {
    margin-top: 0;
    font-size: 16px;
    color: var(--ravas-dark-grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.result-row.total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    border-bottom: none;
    padding-top: 10px;
    margin-top: 5px;
    font-size: 16px;
    color: var(--ravas-black);
}

.val.highlight {
    color: var(--ravas-red);
    font-weight: bold;
}

/* ROI Grid */
.roi-highlight {
    background: var(--ravas-red);
    color: white;
    border: none;
}

.roi-highlight h4 {
    color: white;
}

.roi-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.roi-item {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 4px;
}

.roi-val {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.roi-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* CTA Button */
.ravas-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-ravas {
    display: inline-block;
    background: var(--ravas-black);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-ravas:hover {
    background: #333;
}

@media (max-width: 768px) {
    .ravas-roi-container {
        flex-direction: column;
    }
    .ravas-roi-inputs {
        border-right: none;
        border-bottom: 1px solid var(--ravas-border);
    }
}
