@font-face {
    font-family: 'Be Vietnam Pro';
    src: url(../fonts/be-vietnam-pro/BeVietnamPro-400.woff2) format('woff2'), url(../fonts/be-vietnam-pro/BeVietnamPro-400.woff) format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url(../fonts/be-vietnam-pro/BeVietnamPro-500.woff2) format('woff2'), url(../fonts/be-vietnam-pro/BeVietnamPro-500.woff) format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Be Vietnam Pro';
    src: url(../fonts/be-vietnam-pro/BeVietnamPro-700.woff2) format('woff2'), url(../fonts/be-vietnam-pro/BeVietnamPro-700.woff) format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --mgp-primary: #4a7660;
}

/* Icons: files are twice the displayed size */
.mgp-hero-icon {
    width: 100px;
    height: auto;
}

.mgp-icon {
    height: auto;
}

/* Footer legal links */
.mgp-footer-links {
    column-gap: 20px;
    row-gap: 4px;
}

/* Legal notice */
.mgp-legal-label {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    padding-right: 20px;
}

/* Cookie policy */
.mgp-cookie-manage {
    padding: 30px;
    border-radius: 10px;
    background: rgba(74, 118, 96, 0.08);
}

/* Cookie consent */
body.mgp-cc-locked {
    overflow: hidden;
}

.mgp-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.mgp-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.mgp-cookie-btn--primary {
    background-color: var(--mgp-primary);
    color: #fff;
}

.mgp-cookie-btn--primary:hover,
.mgp-cookie-btn--primary:focus-visible {
    background-color: #3b5f4d;
    color: #fff;
}

.mgp-cookie-btn--ghost {
    background-color: transparent;
    border-color: #d3d3d3;
    color: #1a1a1a;
}

.mgp-cookie-btn--ghost:hover,
.mgp-cookie-btn--ghost:focus-visible {
    border-color: var(--mgp-primary);
    color: var(--mgp-primary);
}

.mgp-cookie-btn--text {
    background-color: transparent;
    border: none;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.mgp-cookie-btn--text:hover,
.mgp-cookie-btn--text:focus-visible {
    color: var(--mgp-primary);
}

.mgp-cc-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 372px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mgp-cc-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mgp-cc-banner-inner {
    padding: 22px 24px 20px;
}

.mgp-cc-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px;
}

.mgp-cc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bs-soft-primary);
    color: var(--mgp-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.mgp-cc-title {
    font-size: 16px;
    font-weight: 700;
    color: #141414;
    margin: 0;
    line-height: 1.2;
}

.mgp-cc-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #5a5a5a;
    margin: 0 0 16px;
}

.mgp-cc-banner .mgp-cookie-btn {
    padding: 10px 18px;
    font-size: 13px;
}

.mgp-cc-banner .mgp-cookie-btn--text {
    padding-top: 6px;
    padding-bottom: 6px;
}

.mgp-cc-policy-link {
    display: block;
    width: fit-content;
    margin-top: 6px;
    color: var(--mgp-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.mgp-cc-policy-link:hover {
    color: #3b5f4d;
}

.mgp-cc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mgp-cc-actions .mgp-cookie-btn--primary,
.mgp-cc-actions .mgp-cookie-btn--ghost {
    flex: 1 1 auto;
}

.mgp-cc-actions .mgp-cookie-btn--text {
    flex: 1 1 100%;
    margin-top: 4px;
}

.mgp-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mgp-cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mgp-cc-modal.is-visible .mgp-cc-modal-backdrop {
    opacity: 1;
}

.mgp-cc-modal-card {
    position: relative;
    width: 600px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px 40px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mgp-cc-modal.is-visible .mgp-cc-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mgp-cc-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f3f3f1;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mgp-cc-modal-close:hover {
    background: var(--mgp-primary);
    color: #fff;
}

.mgp-cc-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #141414;
    margin: 0 0 14px;
    padding-right: 40px;
}

.mgp-cc-modal-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 26px;
}

.mgp-cc-cat {
    padding: 22px 0;
    border-top: 1px solid #ededed;
}

.mgp-cc-cat:last-of-type {
    border-bottom: 1px solid #ededed;
}

.mgp-cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.mgp-cc-cat-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.mgp-cc-cat-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.mgp-cc-badge {
    font-size: 12px;
    font-weight: 600;
    color: #343f52;
    background: var(--bs-soft-primary);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Liquid only ships .sr-only; the shared markup uses Bootstrap 5's .visually-hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mgp-cc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.mgp-cc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.mgp-cc-slider {
    position: absolute;
    inset: 0;
    background: #cfcfcf;
    border-radius: 50px;
    transition: background 0.25s ease;
}

.mgp-cc-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.mgp-cc-switch input:checked + .mgp-cc-slider {
    background: var(--mgp-primary);
}

.mgp-cc-switch input:checked + .mgp-cc-slider::before {
    transform: translateX(22px);
}

.mgp-cc-switch input:focus-visible + .mgp-cc-slider {
    outline: 2px solid #3b5f4d;
    outline-offset: 2px;
}

.mgp-cc-modal-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.mgp-cc-modal-actions .mgp-cookie-btn {
    padding: 12px 18px;
    font-size: 13.5px;
}

.mgp-cookie-table-wrap {
    overflow-x: auto;
    border: 1px solid #ececec;
    border-radius: 14px;
}

.mgp-cookie-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 15px;
}

.mgp-cookie-table th {
    text-align: left;
    background: #f6f6f3;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 18px;
    white-space: nowrap;
}

.mgp-cookie-table td:nth-child(4) {
    white-space: nowrap;
}

.mgp-cookie-table td {
    padding: 16px 18px;
    border-top: 1px solid #efefef;
    color: #444;
    line-height: 1.5;
    vertical-align: top;
}

.mgp-cookie-table code {
    background: #f3f3f1;
    color: var(--mgp-primary);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.mgp-cookie-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.mgp-cookie-tag--necessary {
    background: var(--bs-pale-primary);
    color: #343f52;
}

.mgp-cookie-tag--analytics {
    background: rgba(74, 118, 96, 0.12);
    color: var(--mgp-primary);
}

@media (max-width: 575px) {
    .mgp-cc-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .mgp-cc-banner-inner {
        padding: 26px 24px 24px;
    }

    .mgp-cc-actions .mgp-cookie-btn--primary,
    .mgp-cc-actions .mgp-cookie-btn--ghost {
        flex: 1 1 100%;
    }

    .mgp-cc-modal-card {
        padding: 32px 24px 26px;
    }

    .mgp-cc-modal-actions {
        flex-wrap: wrap;
    }

    .mgp-cc-modal-actions .mgp-cookie-btn {
        flex: 1 1 100%;
        font-size: 14px;
        padding: 13px 24px;
    }
}

/* FAQ (shared include/faq.blade.php) */
.faq .row {
    justify-content: center;
}

.faq .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.faq-list {
    border-top: 1px solid #e1e3e6;
}

.faq-item {
    border-bottom: 1px solid #e1e3e6;
}

.faq-question {
    position: relative;
    display: block;
    padding: 22px 48px 22px 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1d;
    list-style: none;
    cursor: pointer;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: var(--mgp-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover,
.faq-item[open] .faq-question {
    color: var(--mgp-primary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--mgp-primary);
    outline-offset: 4px;
}

.faq-answer {
    padding: 0 48px 24px 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
}

/* Opening animation: height transition where ::details-content is supported, fade/slide everywhere */
.faq-item {
    interpolate-size: allow-keywords;
}

.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
    block-size: auto;
}

.faq-question {
    transition: color 0.2s ease;
}

.faq-item[open] .faq-answer {
    animation: faq-answer-in 0.35s ease;
}

@keyframes faq-answer-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item::details-content,
    .faq-question,
    .faq-question::after {
        transition: none;
    }

    .faq-item[open] .faq-answer {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgp-cookie-btn,
    .mgp-cc-banner,
    .mgp-cc-modal-backdrop,
    .mgp-cc-modal-card,
    .mgp-cc-modal-close,
    .mgp-cc-slider,
    .mgp-cc-slider::before {
        transition: none;
    }

    .mgp-cc-banner,
    .mgp-cc-modal-card {
        transform: none;
    }
}
