/* ============================================================
   Regional Tax Guide component (scoped under .lac-tax-guide)
   Faithful port of the prototype's lac.css
   ============================================================ */

/* Intro info panel (circular) */
.lac-tax-guide .country-info-panel {
    display: flex;
    column-gap: 2rem;
    row-gap: 2rem;
    justify-content: center;
}

.lac-tax-guide .country-info-panel > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 110px;
}

.lac-tax-guide .country-info-panel > div strong { display: block; font-size: 20px; }
.lac-tax-guide .country-info-panel > div i { font-size: 50px; line-height: 50px; }

@media (min-width: 420px) {
    .lac-tax-guide .country-info-panel > div { max-width: 140px; }
}

@media (min-width: 520px) {
    .lac-tax-guide .country-info-panel > div { max-width: unset; }
    .lac-tax-guide .country-info-panel { column-gap: 4rem; }
    .lac-tax-guide .country-info-panel > div i { font-size: 80px; line-height: 80px; }
}

/* Intro info grid panel (4 boxes) */
.lac-tax-guide .country-info-grid-panel {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0.5rem;
}

.lac-tax-guide .country-info-grid-panel > div { background: #c4cbd5; padding: 1rem; }
.lac-tax-guide .country-info-grid-panel > div strong { font-size: 30px; display: block; }

/* Country Nav Bar */
.lac-tax-guide .country-navbar {
    margin-bottom: 2rem;
    margin-right: -3px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 30;
}

.lac-tax-guide .country-navbar-inner { display: flex; flex-wrap: wrap; }

.lac-tax-guide .country-navbar-inner .country-tab {
    font-family: "GT Bold";
    font-size: 0.95rem;
    border: 0;
    display: flex;
    align-items: center;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.75rem;
    transition: background-color .3s ease-out;
    border-right: 3px solid #fff;
    margin-bottom: 3px;
    text-align: left;
}

.lac-tax-guide .country-navbar-inner .country-tab .country-flag {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.35rem;
    flex: 0 0 20px;
    border-width: 1px;
}

.lac-tax-guide .country-navbar-inner > .country-tab {
    flex: 0 0 50%;
    background-color: #eff2f1;
    color: #122e59;
}

.lac-tax-guide .country-navbar-inner > .country-tab:hover,
.lac-tax-guide .country-navbar-inner > .country-tab.active {
    background-color: #122e59;
    color: #fff;
}

.lac-tax-guide .country-navbar-ctas {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.lac-tax-guide .country-navbar-ctas .country-tab {
    flex: 0 0 100%;
    background-color: #122e59;
    color: #fff;
}

.lac-tax-guide .country-navbar-ctas .country-tab:hover,
.lac-tax-guide .country-navbar-ctas .country-tab.active {
    background-color: #f24d54;
}

.lac-tax-guide .country-navbar-ctas .country-tab i { margin-right: 1rem; }

@media (min-width: 520px) {
    .lac-tax-guide .country-navbar-inner > .country-tab { flex: 0 0 33.333%; }
}

@media (min-width: 768px) {
    .lac-tax-guide .country-navbar-inner > .country-tab { flex: 0 0 25%; }
    .lac-tax-guide .country-navbar-ctas .country-tab { flex: 0 0 50%; }
}

@media (min-width: 992px) {
    .lac-tax-guide .country-navbar-inner > .country-tab { flex: 0 0 20%; font-size: 1rem; }
}

/* Country */
.lac-tax-guide .compare-anchor { scroll-margin-top: 80px; }
.lac-tax-guide .country-container .level3Title { font-size: 26px; line-height: 26px; margin-top: 3rem; }
.lac-tax-guide .contacts-grid .level3Title,
.lac-tax-guide .country-container .country-accordion .level3Title { margin-top: 0; }

/* Country Stats */
.lac-tax-guide .country-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 1.5rem 0;
}

.lac-tax-guide .country-stats-box { background-color: #ccd3d1; padding: 1rem; }
.lac-tax-guide .country-stats-box-value { font-size: 1.75rem; }
.lac-tax-guide .country-stats-box-detail { font-size: 0.85rem; }

@media (min-width: 480px) {
    .lac-tax-guide .country-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .lac-tax-guide .country-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Country Features */
.lac-tax-guide .country-features-wrapper {
    background: #c4cbd5;
    padding: 3rem 1rem 2rem 1rem;
    margin: 0 0 1.5rem 0;
}

.lac-tax-guide .country-features {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 4rem;
    row-gap: 1.5rem;
    counter-reset: card-counter;
}

.lac-tax-guide .country-features-card { position: relative; padding-left: 40px; }

.lac-tax-guide .country-features-card::before {
    counter-increment: card-counter;
    content: counter(card-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    color: #fff;
    font-family: "GT Bold";
    font-size: 22px;
    background-color: #122e59;
    border-radius: 50%;
}

.lac-tax-guide .country-features-card strong { font-size: 20px; }

@media (min-width: 768px) {
    .lac-tax-guide .country-features { grid-template-columns: repeat(2, 1fr); }
}

/* Country Accordion */
.lac-tax-guide .country-accordion .card-header { padding: 0; background: #ccd3d1; }

.lac-tax-guide .country-accordion .card a.btn {
    color: #122e59;
    font-size: 20px;
    position: relative;
}

.lac-tax-guide .country-accordion .card a.btn:hover { color: #f24d54; }

.lac-tax-guide .country-accordion .card a.btn::before {
    background-image: url(https://www.alliottglobal.com/assets/aga/images/arrow-down-blue.svg);
    transition: all .3s ease-out;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
}

.lac-tax-guide .country-accordion .card a.btn:hover::before { transform: translateY(-20%); }
.lac-tax-guide .country-accordion .card-header.active .btn::before { transform: translateY(-50%) rotate(180deg) !important; }
.lac-tax-guide .country-accordion .text-muted { font-family: "GT Regular"; font-size: 1rem; }

/* Country Title + Flag Icon */
.lac-tax-guide .country-head {
    display: flex;
    column-gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.lac-tax-guide .country-flag {
    flex: 0 0 48px;
    border-radius: 50%;
    background-color: #ccd3d1;
    width: 48px;
    height: 48px;
    border: 3px solid #ccd3d1;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

@media (min-width: 480px) {
    .lac-tax-guide .country-flag { flex: 0 0 60px; width: 60px; height: 60px; }
}

/* Country Contact */
.lac-tax-guide .country-contact-card { background-color: #eff2f1; }
.lac-tax-guide .country-contact-card .country-flag { border: 0; }
.lac-tax-guide .country-contact-card-header { display: flex; align-items: center; column-gap: 1rem; margin-bottom: 1rem; }
.lac-tax-guide .country-contact-card-header h3,
.lac-tax-guide .country-contact-card-header p { margin: 0; }
.lac-tax-guide .country-contact-list { display: flex; column-gap: 2rem; flex-wrap: wrap; }
.lac-tax-guide .country-contact-card .btn { max-width: 200px; }

/* Country Comparison Table */
.lac-tax-guide td .country-flag {
    display: flex;
    width: 30px;
    height: 30px;
    border-width: 1px;
}
