/* Layout - Wrapper */
.my-calcs-wrapper {
    display: flex;
    flex-direction: row; /* در دسکتاپ کنار هم */
    gap: 30px; /* فاصله بین دو باکس */
    align-items: stretch;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.my-calcs-wrapper * {
    box-sizing: border-box;
}

/* Left Box: Controls */
.mc-ui {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20); /* سایه نرم و زیبا */
}

/* Right Box: Results */
.mc-card {
    flex: 1;
    background: linear-gradient(135deg, #5b6270, #737885);
    color: #fff;
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20); /* سایه باکس تیره */
}

/* Responsive - Tablet & Mobile */
@media (max-width: 850px) {
    .my-calcs-wrapper {
        flex-direction: column; /* در تبلت و موبایل زیر هم */
        gap: 20px;
    }
    
    .mc-ui, .mc-card {
        width: 100%;
        padding: 30px 20px;
    }
}


/* ------------------------------------- */
/* Inner Elements Styles                 */
/* ------------------------------------- */

.mc-row { margin-bottom: 30px; }
.mc-row:last-child { margin-bottom: 0; }
.mc-ui label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #122132;
    margin-bottom: 15px;
}

.mc-val-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -38px;
    margin-bottom: 10px;
}
.mc-val {
    font-weight: 800;
    font-size: 24px;
    color: #0f1b2b;
    text-align: right;
    min-width: 100px;
}
.mc-edit-btn {
    background: none !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    color: #5475BE !important;
}
.mc-edit-btn:hover {
    background: rgba(84, 117, 190, 0.1) !important;
}

.mc-inline-input {
    font-size: 24px !important;
    font-weight: 700 !important;
    width: 150px !important;
    padding: 5px 10px !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 6px !important;
    text-align: right !important;
    margin: 0 !important;
}

/* Range Sliders */
.mc-ui input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: #e8edf4;
    outline: none;
    margin: 10px 0;
}
.mc-ui input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5475BE;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    margin-top: -7px;
}
.mc-ui input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5475BE;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Rate Input */
.mc-rate-input {
    width: 100%;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #e8edf4 !important;
    outline: none;
    text-align: center;
}

/* Result Card Texts */
.mc-icon { margin-bottom: 20px; }
.mc-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
}
.mc-amount {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
}
.mc-note {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 90%;
}


/* یکدست سازی کلی ماشین‌حساب‌ها */
.my-calcs-wrapper.remc {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 20px 0;
}

/* ------------------------------------- */
/* Remortgage Calculator Specific CSS    */
/* ------------------------------------- */

/* Dropdown Container Fix */
.remc-select-container {
    position: relative;
    width: 100%;
}

.remc-select-container::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-60%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #5475BE;
    border-bottom: 2px solid #5475BE;
    pointer-events: none;
}

.remc-select {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #122132 !important;
    background-color: #fff !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 8px !important;
    padding: 10px 40px 10px 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    box-sizing: border-box !important;
}

.remc-select:focus {
    border-color: #5475BE !important;
    outline: none;
}

/* Right Result Card Layout & Typography */
.remc-card-result {
    padding: 40px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.remc-result-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.remc-result-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 30px !important;
    color: #ffffff !important;
    text-align: center;
}

.remc-result-group {
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
}

.remc-result-label {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 6px !important;
}

.remc-result-value {
    font-size: 42px !important; /* عدد فعلی */
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.remc-result-value.highlight {
    font-size: 58px !important; /* عدد جدید (بزرگتر) */
    color: #38bdf8 !important;
}
.remc-diff-container {
    width: 100%;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.remc-diff-label {
    font-size: 22px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.remc-diff-value {
    font-size: 78px !important; /* عدد اختلاف (بسیار بزرگ) */
    font-weight: 900 !important;
    letter-spacing: -2px;
    margin-top: 30px;
}

.remc-disclaimer {
    font-size: 13px !important;
    margin-top: 30px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.4 !important;
    text-align: center;
}

@media (max-width: 850px) {
    .remc-result-title { font-size: 24px !important; }
    .remc-result-value { font-size: 32px !important; }
    .remc-diff-value { font-size: 46px !important; }
}


@media (max-width: 850px) {
    .my-calcs-wrapper.remc {
        flex-direction: column !important;
    }

    .my-calcs-wrapper.remc .mc-ui,
    .my-calcs-wrapper.remc .mc-card {
        width: 100% !important;
    }

    .remc-result-title { font-size: 24px !important; }
    .remc-result-value { font-size: 32px !important; }
    .remc-result-value.highlight { font-size: 40px !important; }
    .remc-diff-value { font-size: 46px !important; }
}

/* یکسان‌سازی رنگ عدد در باکس سمت راست مشابه تصویر */
.mc-card .mc-amount {
    color: #38bdf8 !important; /* رنگ آبی روشن مشابه تصویر ارسالی */
    font-size: 64px;
    font-weight: 800;
}

/* فاصله دهی به چک‌باکس‌ها در بخش منطقه‌ای */
.sdc-region-fields .sdc-check {
    margin-bottom: 15px;
    cursor: pointer;
}



/*
 * Rental Coverage Calculator
 *
 * استایل‌های اصلی مانند باکس، سایه، رنگ پس‌زمینه،
 * ریسپانسیو و اسلایدر از کلاس‌های یونیورسال دریافت می‌شوند.
 */

.rental-calc-wrapper {
    margin: 20px 0;
}

.rental-calc-wrapper .rental-calc-left,
.rental-calc-wrapper .rental-calc-right {
    min-width: 0;
}

/*
 * Introduction
 */
.rental-calc-wrapper .rental-calc-intro {
    margin: 0 0 30px;
    color: #5b6270;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

/*
 * Input labels
 *
 * چون در این ماشین‌حساب به‌جای label از RowDescr استفاده شده،
 * استایل یونیورسال label روی این کلاس نیز اعمال می‌شود.
 */
.rental-calc-wrapper .RowDescr {
    display: block;
    margin-bottom: 15px;
    color: #122132;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

/*
 * جلوگیری از باقی‌ماندن margin روی بخش دکمه
 */
.rental-calc-wrapper .rental-submit-row .RowDescr {
    margin-bottom: 0;
}

/*
 * Inputs
 *
 * پایه ظاهری از mc-rate-input گرفته می‌شود.
 */
.rental-calc-wrapper .rental-calc-input {
    width: 100% !important;
    max-width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    color: #122132 !important;
    background: #ffffff !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    outline: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.rental-calc-wrapper .rental-calc-input:hover {
    border-color: #cfd7e3 !important;
}

.rental-calc-wrapper .rental-calc-input:focus {
    border-color: #5475BE !important;
    box-shadow: 0 0 0 3px rgba(84, 117, 190, 0.12) !important;
}

.rental-calc-wrapper .rental-calc-input::placeholder {
    color: #8c96a5;
    opacity: 1;
}

/*
 * Range sliders
 *
 * رنگ track و اهرم از استایل یونیورسال:
 * .mc-ui input[type="range"]
 * دریافت می‌شود.
 */
.rental-calc-wrapper .RowDetail input[type="range"] {
    display: block;
    width: 100%;
    margin: 18px 0 0;
}

/*
 * Select
 */
.rental-calc-wrapper .remc-select-container {
    width: 100%;
}

.rental-calc-wrapper .remc-select {
    margin: 0 !important;
}

/*
 * Calculate Button
 */
.rental-calc-wrapper .rental-calc-submit {
    display: none;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 14px 24px;
    color: #ffffff;
    background: #5475BE;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(84, 117, 190, 0.24);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rental-calc-wrapper .rental-calc-submit:hover {
    color: #ffffff;
    background: #4666ab;
    box-shadow: 0 10px 24px rgba(84, 117, 190, 0.32);
    transform: translateY(-1px);
}

.rental-calc-wrapper .rental-calc-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(84, 117, 190, 0.22);
}

.rental-calc-wrapper .rental-calc-submit:focus {
    outline: 3px solid rgba(84, 117, 190, 0.25);
    outline-offset: 3px;
}

.rental-calc-wrapper .rental-calc-submit:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

/*
 * Result Card Content
 *
 * پس‌زمینه، گرادیان، radius، padding و shadow
 * مستقیماً از کلاس یونیورسال mc-card دریافت می‌شود.
 */
.rental-calc-wrapper .rental-calc-right {
    justify-content: center;
    align-items: stretch;
}

.rental-calc-wrapper .rental-result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.rental-calc-wrapper .rental-result-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.rental-calc-wrapper .rental-result-subtitle {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

/*
 * Report rows
 */
.rental-calc-wrapper .rental-report-block {
    width: 100%;
    gap: 16px;
}

.rental-calc-wrapper .rental-report-row {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
}

.rental-calc-wrapper .rental-report-highlight {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.38);
}

.rental-calc-wrapper .rental-report-label {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rental-calc-wrapper .rental-report-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/*
 * Calculated amounts
 *
 * همان رنگ آبی روشن یونیورسال نتایج
 */
.rental-calc-wrapper .rental-amount {
    display: block;
    margin: 8px 0 4px;
    color: #38bdf8;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

/*
 * Validation errors
 */
.rental-calc-wrapper .rental-error {
    color: #ffd0d0;
    font-weight: 700;
}

/*
 * Tablet and mobile
 *
 * تبدیل دو ستون به یک ستون توسط استایل یونیورسال
 * my-calcs-wrapper انجام می‌شود.
 */
@media (max-width: 850px) {
    .rental-calc-wrapper .rental-result-title {
        font-size: 24px;
    }

    .rental-calc-wrapper .rental-amount {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .rental-calc-wrapper .rental-calc-intro {
        font-size: 15px;
    }

    .rental-calc-wrapper .RowDescr {
        font-size: 14px;
    }

    .rental-calc-wrapper .rental-calc-input {
        height: 54px !important;
        min-height: 54px !important;
        font-size: 21px !important;
    }

    .rental-calc-wrapper .rental-result-title {
        font-size: 22px;
    }

    .rental-calc-wrapper .rental-result-subtitle {
        font-size: 13px;
    }

    .rental-calc-wrapper .rental-report-row {
        padding: 15px;
    }

    .rental-calc-wrapper .rental-report-text {
        font-size: 15px;
    }

    .rental-calc-wrapper .rental-amount {
        font-size: 30px;
        letter-spacing: -0.5px;
    }
}
