/* Calculator styles — refreshed 1:1 from the live dedicated file
   (Avada-Child-Theme/css/calculator.css) 2026-07-08. The bare [type=radio]
   rule is scoped to .calc-tab-container (this file is loaded site-wide on the
   CV). Green pill button appended (live gets it from the shared .link-btn). */
/* ===================================================================
   Tax Calculator — consolidated styles (one rule per element).
   Used by all calculators (Dubai EN/DE/ES + Cyprus). The .calc-eur
   class is JS-only (currency: € vs AED) and is NOT styled here.
   Palette: slate #354649 · teal #2e828c · tan #bfa98a · gold #e5cda9→#ae9b7e
   · dark card #2f4c4c · light bg #f5f5f5 / #f4f6f7 · border #e7ebee
   =================================================================== */
.calc-tab-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 45px 0 0;
}

/* ===== Category tabs (top selector) ===== */
.calc-cats-wrap{
    background-color: #f5f5f5;
    border: none;
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
}
.section-block .calc-main-cats{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    background-color: #f8f8f8;
}
.calc-main-cats li{
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    position: relative;
}
.calc-main-cats li a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 14px 18px;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    color: #354649;
    border-bottom: 1px solid #ae9b7e;
}
.calc-main-cats li a .cat-name{ font-size: 18px; font-weight: 600; color: #354649; }
.calc-main-cats li a .cat-sub{ font-size: 13px; color: #bda98a; }
.calc-main-cats li.active{
    background: linear-gradient(to bottom, #e5cda9 0%, #ae9b7e 100%);
}
.calc-main-cats li.active a .cat-name,
.calc-main-cats li.active a .cat-sub{ color: #354649; }
.calc-main-cats li:not(.active):hover{ background-color: #ebebeb; }
.calc-main-cats li:not(.active):hover a{ color: #2e828c; }   /* plain-label tabs (Dubai) */
.calc-main-cats li:not(.active):hover a .cat-name,
.calc-main-cats li:not(.active):hover a .cat-sub{ color: #2e828c; }

.main-tab{ display: none; }
.main-tab.active{ display: block; }

/* ===== Sub-tab nav: dark cards in a 4-column grid ===== */
.calc-tab-container .tabs-nav{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 30px;
    margin: 0 auto;
}
.calc-tab-container .tabs-nav li{
    display: flex;
    padding: 0;
    margin: 0 !important;
    transition: all 0.5s ease-out;
}
.calc-tab-container .tabs-nav li a{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 130px;
    padding: 20px 12px;
    text-decoration: none;
    background: #2f4c4c;
    border-radius: 12px;
    transition: background .2s ease;
}
.calc-tab-container .tabs-nav li.active a,
.calc-tab-container .tabs-nav li:hover a{
    background: linear-gradient(to bottom, #e5cda9 0%, #ae9b7e 100%);
}
.calc-tab-container .tabs-nav li a .menu-icon{
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-tab-container .tabs-nav li a .menu-icon img{ width: 100%; }
.calc-tab-container .tabs-nav li a .menu-icon i{ font-size: 49px; color: #D0C2AE; }
/* icons are tan line-art on the dark card; recolor to dark teal on the gold active/hover card */
.calc-tab-container .tabs-nav li.active a .menu-icon img,
.calc-tab-container .tabs-nav li:hover a .menu-icon img{
    filter: brightness(0) saturate(100%) invert(24%) sepia(14%) saturate(670%) hue-rotate(141deg) brightness(93%) contrast(90%);
}
.calc-tab-container .tabs-nav li a .menu-name{
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.calc-tab-container .tabs-nav li a .menu-name .highlighted2{ color: #fff !important; }
.calc-tab-container .tabs-nav li.active a .menu-name,
.calc-tab-container .tabs-nav li:hover a .menu-name{ color: #354649; }
.calc-tab-container .tabs-nav li.active a .menu-name .highlighted2,
.calc-tab-container .tabs-nav li:hover a .menu-name .highlighted2{ color: #354649 !important; }

/* ===== Tab panels ===== */
.calc-tab-container .tabs{ display: flex; overflow-y: auto; flex-wrap: wrap; }
.calc-tab-container .tabs .tab-content{
    display: none;
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid #F6F7F9;
    border-radius: 12px;
    padding: 30px;
}
.calc-tab-container .tabs .tab-content.active{ display: block; }
/* Tab intro paragraph (the old .tab-text wrapper was dropped — it's now a bare <p> in the form).
   Spacing handled by the .form flex gap below (gap model), not margin. */
/* inline "learn more" pill link inside a tab intro paragraph */
.calc-tab-container .tabs .form .btn{
    background-color: #137749;
    border-radius: 8px;
    color: #fff;
    padding: 2px 10px;
    cursor: pointer;
    display: inline;
    font-weight: inherit;
    text-decoration: none;
    transition: background-color .2s ease;
    white-space: nowrap;
}
.calc-tab-container .tabs .form .btn:hover{
    background-color: #0e5a37;
    color: #fff;
}

/* ===== Forms ===== */
/* Gap model (same as basic content pages): vertical rhythm is owned by the
   flex-column gap using the shared --content-gap (20px; 14px ≤500px), inherited
   from the enclosing .section-block. No per-child margin-bottom anywhere. */
.calc-tab-container .tabs .form{ display: flex; flex-direction: column; gap: var(--content-gap); }
.calc-tab-container .tabs .form .form-wrap{ margin-bottom: 0; }
/* Label + text field is its own row: stack them with the shared gap too. */
.calc-tab-container .tabs .form .form-wrap:has(> .fields > input[type=text]){ display: flex; flex-direction: column; gap: var(--content-gap); }
/* Result panel is hidden until a calculation runs — live ships it with an inline
   display:none that the content extractor stripped. jQuery .show() (on calc) sets
   an inline display that overrides this default. */
.calc-tab-container .tabs .form > .result{ display: none; }
.calc-tab-container .tabs .form label{ font-weight: 500; display: inline-block; text-align: left; }
.calc-tab-container .tabs .form .form-wrap label span{ opacity: .3; }
.calc-tab-container .tabs .form .form-wrap.active label span{ opacity: 1; }
.calc-tab-container .tabs .form .form-wrap label span.price{ opacity: 1; }   /* price/amount spans stay full-strength */
.calc-tab-container .tabs .form .form-wrap input[type=text]{
    width: 100%;
    display: block;
    height: 45px;          /* uniform field height — matches live (was UA-default ~26px, made fields look inconsistent) */
    padding: 0 15px;       /* horizontal padding — matches live */
    box-sizing: border-box;
    border: 1px solid #bfa98a;
    border-radius: 10px;
    color: #2f828c;
    font-size: 20px;
    font-weight: 500;
}
.calc-tab-container .tabs .form .form-wrap input[type=radio]:checked,
.calc-tab-container [type="radio"]:not(:checked){ position: absolute; left: -9999px; }
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:checked + label,
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:not(:checked) + label{
    position: relative; padding-left: 28px; cursor: pointer; line-height: 20px;
    display: inline-block; margin: 10px 0; font-weight: 400;
}
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:checked + label:before,
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:not(:checked) + label:before{
    content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
    border: 1px solid #ddd; border-radius: 100%; background: #fff;
}
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:checked + label:after,
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:not(:checked) + label:after{
    content: ''; width: 12px; height: 12px; background: #BEA98A; position: absolute;
    top: 4px; left: 4px; border-radius: 100%; transition: all 0.2s ease;
}
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:not(:checked) + label:after{ opacity: 0; transform: scale(0); }
.calc-tab-container .tabs .form .form-wrap input[type="radio"]:checked + label:after{ opacity: 1; transform: scale(1); }
.calc-tab-container .tabs .form .form-wrap p{ font-size: 16px; }
.calc-tab-container .tabs .form button{ font-size: 20px; }   /* look (green pill + hover) comes from the shared .link-btn rule in style.css */
.calc-tab-container .tabs .form button .icon{
    display: inline-block; height: 30px; width: 30px; margin-right: 10px;
    background-image: url(/assets/img/icons/icon-calc.png);   /* local copy — live's /wp-content/ path 404s on the CV host */
    background-size: contain; background-repeat: no-repeat; background-position: center center;
}
/* on hover the button inverts to white/green — recolor the SAME icon to brand green via filter (no 2nd image) */
.calc-tab-container .tabs .form button:hover .icon{ filter: brightness(0) saturate(100%) invert(28%) sepia(83%) saturate(421%) hue-rotate(107deg) brightness(93%) contrast(91%); }
.calc-tab-container .tabs .form .btn-note{ font-size: 10px; padding-top: 5px; display: block; text-align: right; }
/* Right-align the submit button (and its note) — the button row is its own .form-wrap. */
.calc-tab-container .tabs .form .form-wrap:has(> button){ text-align: right; }

/* ===== Result block = clean summary: label left / teal value right, rows divided by thin lines (no value boxes) ===== */
.calc-tab-container .calc-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.calc-tab-container .calc-row .calc-col{ flex: 1 1 auto; }
.calc-tab-container .calc-row .calc-col:last-child{ flex: 0 0 auto; margin-left: auto; text-align: right; }
.calc-tab-container .tabs .result .form-wrap label{ font-weight: 600; font-size: 18px; line-height: 1.3; }
/* Result rhythm = same gap model. The result column and its rows-wrap are flex
   columns using the shared --content-gap; no per-child margins. */
.calc-tab-container .result{ display: flex; flex-direction: column; gap: var(--content-gap); }
.calc-tab-container .result .form-wrap{ display: flex; flex-direction: column; /* gap: var(--content-gap); */ margin: 0; }
.calc-tab-container .result .wrap-border > p{ margin: 0; }
/* one form-wrap holds all rows; the divider line sits on each row */
.calc-tab-container .result .calc-row{ padding: 10px 0; border-bottom: 1px solid #e7ebee; }
/* value: plain teal text, no box */
.calc-tab-container .tabs .calc-result{
    border: 0;
    background: none;
    border-radius: 0;
    padding: 0;
    height: auto;
    color: var(--awb-text-color);
    font-size: 20px;
    font-weight: 600;
}
.calc-tab-container .tabs .calc-result.tax{ color: #2E828C; }
/* Fine-print note inside a fee wrap-border (e.g. the 5% first-residence note) */

/* ===== VAT-rate info icon: opens a standard site modal (data-toggle="modal").
   The modals themselves live in pages/modals/en/ like every other modal — no custom modal CSS. ===== */
.calc-tab-container .calc-tooltip{ cursor: pointer; color: #2e828c; }

/* VAT option label row: radio label + info icon on one aligned line */
.calc-tab-container .vat-opt{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* ===== "Top" button (all calcs) ===== */
.calc-tab-container .tabs .btn-wrap{ width: 100%; }
.calc-tab-container .calc-top-btn{
    border: 1px solid #e9d1b1; background-color: #e8d1b1; border-radius: 8px; color: #2E828C;
    padding: 10px 25px; font-size: 20px; display: inline-block; float: right; cursor: pointer;
    font-weight: 600; margin: 16px 0 0;   /* gap above only (was margin:10px all-round) */
}
.calc-tab-container .calc-top-btn:hover{ color: #000; border-color: #2f828c; }

/* ===== Flat "0% / no tax" panels ===== */
.notax{ text-align: center; margin: 20px auto; border: 1px solid #bfa98a; padding: 30px 0px; border-radius: 10px; }
.calc-result{ width: 100%; }

/* ===== Legacy (older calculator markup) — preserved ===== */
.vatformrow label{ font-weight: 600; text-align: center; padding: 0 0 15px 2px; display: block; }
.vatformrow .fields{ width: 100%; }
#taxamount, #tax01, #tax02, #tax03, #tax04, #taxpropertyamount, #taxsalesamount, #taxtouristamount, #taxtouristx{
    font-size: 15px; display: table; margin: 0 auto; padding: 3px 15px; border: 1px solid #cbec6d; border-radius: 20px;
}
#content .trformula p{ text-align: center; }
/* disabled per request — spacing handled by scoped rules above
#content p{ margin: 10px 0px 15px; } */
.vatformrow.cntr label.formula{ font-style: italic; font-weight: normal; }
.vatformrow .productradio label{ display: inline-block; padding: 0 0 0 2px; }

/* ===== Responsive ===== */
@media screen and (max-width: 600px){
    .calc-tab-container .tabs .tab-content{ padding: 20px 18px; }
    /* too many category tabs for one row → wrap into a 2-per-row grid */
    .section-block .calc-main-cats{ display: grid; grid-template-columns: repeat(2, 1fr); }
    /* odd count (3, 5, …): the lone last tab spans the row but stays half-width & centered */
    .calc-main-cats li:last-child:nth-child(odd){ grid-column: 1 / -1; justify-self: center; width: 50%; }
    /* grid gives each tab room, so restore a comfortable font (wins over the 601–930 single-row shrink) */
    .section-block .calc-main-cats li a{ padding: 12px 12px !important; }
    .section-block .calc-main-cats li a .cat-name{ font-size: 16px !important; }
    .section-block .calc-main-cats li a .cat-sub{ font-size: 13px !important; }
    .calc-tab-container .tabs-nav{ padding: 14px; grid-template-columns: repeat(2, 1fr); }
    /* smaller result summary on small screens */
    .calc-tab-container .tabs .result .form-wrap label{ font-size: 14px; }
    .calc-tab-container .tabs .calc-result{ font-size: 16px; }
}
/* Compact category tabs on tablet / medium screens so the labels fit */
@media screen and (min-width: 370px) and (max-width: 930px){
    .calc-main-cats li a{ padding: 15px 10px !important; }
    .calc-main-cats li a .cat-name{ font-size: 12px !important; }
    .calc-main-cats li a .cat-sub{ font-size: 10px !important; }
    .calc-tab-container .tabs-nav li a .menu-icon{ width: 40px !important; height: 40px !important; }
    .calc-tab-container .tabs-nav li a .menu-name{ font-size: 10px !important; }
    .calc-tab-container .tabs-nav{ padding-bottom: 10px !important; }
    .calc-tab-container .tabs .form label{ font-size: 11px !important; }
    .calc-cats-wrap{ margin-bottom: 20px !important; }
}


/* Green pill submit button — on live this look comes from the shared .link-btn
   rule in style.css; replicate it here so the CV calc button matches (was teal). */
.calc-tab-container .tabs .form button{
    position: relative;
    background-color: var(--brand-green);
    color: #fff !important;
    border: 1px solid var(--brand-green);
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.calc-tab-container .tabs .form button:hover{
    background-color: #fff;
    color: var(--brand-green) !important;
    border-color: var(--brand-green);
}
