:root {
    --bg: #060606;
    --white: #FAFAFA;
    --text-white: #ffffff;
    --btn-text: #060606;
    --content-max: 370px;
    --btn-max: 770px;
    --gap: 28px;
    --btn-height-desktop: 78px;
    --btn-height-mobile: 52px;
    --slant-left: 40px;
    --slant-right: 40px;
    --input-border: rgba(255, 255, 255, 0.7);
    --input-radius: 0px;
    --error-color: #FF5252;
}

body,
button,
input,
select,
textarea {
    font-family: "Alexandria", sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 32px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: var(--btn-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    z-index: 1;
}

.logo img {
    display: block;
    margin-bottom: 60px;
}

.content {
    max-width: var(--content-max);
    text-align: left;
    margin-right: auto;
    margin-top: 68px;
}

.lead {
    font-size: 26px;
    line-height: normal;
    font-weight: 300;
    color: var(--text-white);
    margin: 0 0 16px 0;
}

.lead b {
    font-weight: 600;
}

.sub {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 100%;
}

/* Slanted input style (taken from link button clip-path) */
.field {
    position: relative;
    width: 100%;
}

.input-slab {
    width: 100%;
    height: 79px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 14px 45px;
    background: var(--bg);
    color: var(--text-white);
    font-size: 22px;
    font-weight: 300;
    outline: none;
    position: relative;
    background-clip: padding-box;
    background-image: url("../images/input-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.input-slab input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-size: 22px;
    font-weight: 300;
    padding: 0;
    outline: none;
}

.input-slab input::placeholder {
    color: #ffffff;
}

/* Radio group (Attending / Not Attending) as slanted button toggles */
.radio-group {
    display: flex;
    align-items: center;
}

.radio-btn {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 79px;
    padding: 0 18px;
    background: var(--bg);
    color: var(--text-white);
    font-weight: 300;
    font-size: 22px;
    flex: 1;
    box-sizing: border-box;
    transition: all .12s ease;
    background-image: url("../images/radio-1.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.radio-btn.active {
    background-image: url("../images/radio-1-checked.png");
    color: var(--btn-text);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 18px;
    font-size: 20px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    color: var(--btn-text);
    background: var(--white);
    clip-path: polygon(0 calc(var(--slant-left)),
            calc(var(--slant-left)) -40%,
            100% 0,
            100% calc(100% - var(--slant-right)),
            calc(100% - var(--slant-right)) 140%,
            0 100%);
    min-width: 150px;
}

/* small helper/error text */
.hint {
    font-size: 12px;
    color: rgba(250, 250, 250, 0.5);
    margin-top: 6px;
}

.error {
    font-size: 12px;
    color: var(--error-color);
    margin-top: 6px;
    display: none;
}

.field.error .input-slab,
.field.error .input-slab::before,
.field.error .input-slab::after {
    border-color: var(--error-color);
}

.field.error,
.field.error .error {
    display: block;
}

.decor {
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decor.mobile {
    display: none;
    position: unset;
    margin-right: 0;
    margin-bottom: -40px;
    margin-left: auto;
    margin-top: 40px;
}
.formError {
    display: none;
    color: red;
    font-size: 14px;
}
.formError:not(:empty) {
    display: block;
}

.field.error .formError {
    display: block;
}
/* responsiveness */
@media (max-width:1199px) {
    .logo img {
        width: 120px;
        height: auto;
    }

    .lead,
    .input-slab,
    .input-slab input,
    .radio-btn,
    .submit-btn {
        font-size: 18px;
    }

    .decor {
        width: 280px;
        right: -10px;
        bottom: -8px;
        transform: none;
    }
}

@media (max-width:991px) {
    .decor.desktop {
        display: none;
    }

    .decor.mobile {
        display: block;
        width: auto;
    }

    .lead,
    .input-slab,
    .input-slab input,
    .radio-btn,
    .submit-btn {
        font-size: 17px;
    }

    :root {
        --slant-left: 18px;
        --slant-right: 36px;
    }

    .container {
        padding: 0 24px;
        max-width: 680px;
    }

    .input-slab,
    .radio-btn,
    .submit-btn {
        height: 65px;
        background-size: contain;
    }

    .submit-btn {
        clip-path: polygon(0 32px, 22px 0, 100% 0, 100% calc(100% - 33px), calc(100% - 26px) 100%, 0px 100%);
    }
}

@media (max-width:767px) {
    .form {
        gap: 22px;
    }

    .page {
        padding: 30px 18px;
        align-items: flex-start;
    }

    .content {
        margin-top: 20px;
    }

    .logo img {
        width: 84px;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .lead,
    .input-slab,
    .input-slab input,
    .radio-btn,
    .submit-btn {
        font-size: 14px;
    }

    .sub {
        font-size: 12px;
    }

    .input-slab {
        height: var(--btn-height-mobile);
        padding: 0 30px;
        --slant-left: 12px;
        --slant-right: 12px;
        background-image: url("../images/input-bg-mobile.png");
    }

    .radio-btn {
        height: var(--btn-height-mobile);
        background-image: url("../images/radio-1-mobile.png");
    }

    .radio-btn.active {
        background-image: url("../images/radio-1-mobile-checked.png");
    }

    .submit-btn {
        height: var(--btn-height-mobile);
        min-width: 110px;
        clip-path: polygon(0 24px,
                18px 0,
                100% 0,
                100% calc(100% - 24px),
                calc(100% - 12px) 100%,
                0px 100%);
    }

    .decor.mobile {
        margin-bottom: -30px;
        margin-right: 8px;
    }

    .container {
        width: 100%;
        padding: 0 6px;
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 57, 57, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Country code style */
.iti__country-list {
    background-color: #fff !important;
    color: #000 !important;
    margin-top: 10px;
}
.iti__country:hover,
.iti__country.iti__highlight {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}
.iti__flag {
    transform: scale(1.3); 
    transform-origin: center;
}
.iti__selected-flag {
    padding-left: 10px;
    padding-right: 10px;
}