@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');
@import url(css/all.min.css);

@font-face {
    font-family: 'Bariol';
    src: url('https://cdn.catglobe.com/Bariol/Bariol_Regular.ttf');
    font-weight: 400; /* Normal weight */
    font-style: normal;
}

@font-face {
    font-family: 'Bariol';
    src: url('https://cdn.catglobe.com/Bariol/Bariol_Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base typography ──────────────────────── */
html, body {
    font-family: 'Bariol', 'Nunito', 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background-color: #faf9f4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bariol', 'Nunito', 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #54595F;
}

h3{
    font-weight: 400;
}

p {
    font-size: 10pt;
    color: #A7A7A7;
    line-height: 1.6;
    margin-bottom: 0.85rem;
    font-family: 'Nunito', sans-serif;
}

    p.bold {
        font-weight: 700;
        color: #54595F;
    }

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #c8972a;
}

/* ── Buttons ────────────────────────────── */
.btn-cta {
    display: inline-block;
    margin-top: 1.25rem;
    background-color: #E7AF19;
    color: #fff;
    font-family: 'Bariol', 'Nunito', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 12pt;
    letter-spacing: 0.05em;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.btn-cta:hover {
    background-color: #b07e1e;
}

.btn-cta:disabled,
.btn-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #c8972a;
    font-family: 'Bariol', 'Nunito', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 12pt;
    letter-spacing: 0.05em;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: 2px solid #c8972a;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: #c8972a;
    color: #fff;
}

/* ── Shared Dialog (popup/modal) ─────────────── */
/* All dialogs use .dialog-overlay (fixed backdrop) + .dialog-content (scrollable panel).
   On mobile landscape, dvh units prevent cut-off from browser toolbars. */

.dialog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.45);
    z-index: 9999;
    overscroll-behavior: contain;
}

.dialog-content {
    position: relative;
    width: min(100%, 760px);
    overflow: visible;
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.dialog-content--narrow {
    width: min(100%, 420px);
}

.dialog-content--message {
    width: min(100%, 560px);
}

.dialog-body {
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    overscroll-behavior: contain;
}

.dialog-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #6d6d6d;
    color: #fff;
    font-size: 16pt;
    cursor: pointer;
    line-height: 1;
}

/* ── Dialog action buttons ─────────────────── */
/* Standardized popup action row: submit (yellow) on right, cancel (outline) on left.
   On mobile, min-width is removed so buttons stay side by side. */

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.75rem;
}

.dialog-actions--split {
    gap: 0.75rem;
}

.dialog-action--primary {
    margin-top: 0;
    min-width: 150px;
}

.dialog-action--secondary {
    margin-top: 0;
    min-width: 150px;
}

.dialog-action--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Full-width CTA variant — used across donation/lottery/webshop dialogs */
.btn-cta--full {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

.step-num {
    flex-shrink: 0;
    font-size: 42pt;
    font-weight: 700;
    color: #E7AF19;
    line-height: 1;
}

/* ── Layout ───────────────────────────────── */
.main-content {
    padding: 0;
    margin: 0;
}

    .main-content .page {
        max-width: 960px;
        margin: 0 auto;
        padding-top: 2rem;
    }


    .main-content.bg-register {
        background: url('images/some-bg.png') center center / cover no-repeat;
        max-width: unset;
    }

.main-content-wide {
    padding: 0;
    margin: 0;
}
    .main-content-wide .page {
        max-width: 1440px;
        margin: 0 auto;
        padding-top: 2rem;
    }

@media (max-width: 768px) {
    .main-content-wide .page {
        padding-top: 1rem;
    }

    .main-content .page{
        padding-top: 1rem;
    }

    .page {
        padding: 0rem 1rem;
    }

    h1 {
        font-size: 20pt;
    }

    .step-num {
        font-size: 32pt;
    }

    .btn-cta, .btn-outline {
        font-size: 11pt;
    }

    .dialog-action--primary,
    .dialog-action--secondary {
        min-width: unset;
    }

    .dialog-overlay {
        padding: 1rem;
    }

    .dialog-content {
        padding: 1.25rem;
    }

    .dialog-body {
        max-height: calc(100dvh - 3rem);
    }
}

