/* ================================
   Container & Heading
   ================================ */
#roi-calculator.roi-container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 1.9rem 1.6rem 2rem;
    border-radius: 20px;

    /* Updated to warm ivory – matches reference card */
    background: linear-gradient(
        180deg,
        #FAF9F6 0%,
        #FFFFFF 45%,
        #F7F5F0 100%
    );

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.18);
    border-top: 4px solid #D4AF37;
    position: relative;
}

#roi-calculator h2 {
    margin: 0 0 0.25rem;
    text-align: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: #0D1B2A;
    letter-spacing: 0.03em;
}

#roi-calculator .roi-subtitle {
    text-align: center;
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0 0 0.9rem;
}

/* ================================
   Currency Dropdown
   ================================ */
.roi-currency-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.1rem;
}

.roi-currency-top select {
    width: 190px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #D4AF37;
    background: #ffffff;
    font-size: 0.9rem;
    color: #0D1B2A;
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15);
    transition: 150ms ease;
}

.roi-currency-top select:hover,
.roi-currency-top select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    outline: none;
}

/* ================================
   Input Form Section
   ================================ */
.roi-form {
    margin: 0 auto 1.8rem;
    padding: 1.4rem 1.6rem 1.3rem;
    border-radius: 18px;
    background: #F8F5F0;
    border: 1px solid #E8E2D6;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
    box-sizing: border-box;
}

.roi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.roi-field {
    flex: 1;
    min-width: 220px;
}

.roi-field label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #1B263B;
}

.roi-field input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1.0rem;
    background: #ffffff;
    color: #0D1B2A;
    transition: 150ms ease;
}

.roi-field input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    outline: none;
}

/* ================================
   Calculate ROI Button
   ================================ */
.roi-button-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

#roi-calculate {
    padding: 0.85rem 2.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    /* Brand gold gradient */
    background: linear-gradient(135deg, #D4AF37, #b8922c);
    color: #0D1B2A;

    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 14px 28px rgba(13, 27, 42, 0.3);
    text-transform: uppercase;
    transition: all 0.25s ease-in-out;

    animation: roi-btn-pulse 2.6s ease-in-out infinite;
}

/* NEW — Requested Hover Effect */
#roi-calculate:hover {
    background: #000000 !important;  /* black */
    color: #ffffff !important;       /* white */
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.35);
}

#roi-calculate:active {
    background: #111111 !important;
    color: #ffffff !important;
    transform: translateY(0);
}

/* Soft breathing pulse */
@keyframes roi-btn-pulse {
    0%, 100% {
        box-shadow: 0 12px 26px rgba(212, 175, 55, 0.35);
    }
    50% {
        box-shadow: 0 18px 38px rgba(212, 175, 55, 0.55);
    }
}

/* ================================
   Error Message
   ================================ */
.roi-error {
    font-size: 0.9rem;
    color: #b91c1c;
    min-height: 1em;
}

/* Wrapper for results area */
.roi-results-wrapper {
    margin-top: 1.5rem;
}

.roi-hidden {
    display: none;
}

/* ================================
   Results Panel (navy theme)
   ================================ */
.roi-results {
    padding: 1.3rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #1B263B 0%, #0D1B2A 60%, #0D1B2A 100%);
    border: 1px solid #0D1B2A;
    position: relative;
    box-shadow: 0 14px 35px rgba(13, 27, 42, 0.55);
}

.roi-results-section h3 {
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ================================
   Result Cards
   ================================ */
.roi-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.roi-card {
    border-radius: 20px;
    background: #0D1B2A;
    border: 1px solid #1B263B;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.8);
    transition: 150ms ease;
}

.roi-card:hover {
    transform: translateY(-3px);
    border-color: #D4AF37;
}

.roi-card-label {
    font-size: 1rem;
    color: #E5E7EB;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    text-align: center;
}

.roi-card-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #D4AF37;
    text-align: center;
}

/* ================================
   Summary Text
   ================================ */
.roi-summary {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    color: #E5E7EB;
}

/* ================================
   Chart Section
   ================================ */
.roi-chart-section {
    margin-top: 1.3rem;
    background: #F8F5F0;
    border-radius: 16px;
    padding: 1rem 1.1rem 1.2rem;
    border: 1px solid #E8E2D6;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.1);
}

.roi-chart-section h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0D1B2A;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 640px) {
    .roi-currency-top {
        justify-content: center;
    }

    .roi-cards {
        grid-template-columns: 1fr;
    }

    .roi-card-value {
        font-size: 2.1rem;
    }

    .roi-button-row {
        justify-content: center;
    }
}
