/***** Plugin Wrapper *****/
.roi-calculator-wrapper {
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 6px;
    max-width: 800px; /* keep it narrower to avoid stretching */
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.roi-calculator-wrapper h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/***** The Form *****/
.roi-calculator-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rc-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.rc-field label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #555;
}

.rc-field input,
.rc-field select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rc-check-group {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
}

.rc-check-group input[type="checkbox"] {
    margin-right: 0.4rem;
}

/***** Collapsible Advanced Options *****/
.rc-advanced-options {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    background: #fafafa;
    font-size: 0.9rem;
}

.rc-advanced-options summary {
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.rc-advanced-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/***** Buttons *****/
#rc-calculate,
#rc-export-csv {
    padding: 0.75rem 1.25rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    max-width: 220px;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

#rc-calculate:hover,
#rc-export-csv:hover {
    background-color: #005b8c;
}

/***** Result Text *****/
.rc-result {
    font-size: 1rem;
    color: #333;
}

.rc-result h3 {
    margin: 0.4rem 0;
    font-weight: normal;
}

.rc-disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/***** Chart Containers *****/
.roi-calculator-chart {
    width: 100%;
    max-width: 700px;
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/***** Ensuring the canvas doesn’t stretch *****/
.roi-calculator-chart canvas {
    display: block;
    width: 100% !important;
    height: 400px !important; /* fixed height to avoid vertical stretching */
}

/***** Chart Titles *****/
.roi-calculator-chart h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #444;
}