:root {
    --colorBody: #fff;
    --colorBodyLightDim: #fafafa;
    --colorBorder: #d5d5d5;
    --colorBtnPrimary: #ffcc33;
    --colorBtnPrimaryDim: #ffc61a;
    --colorBtnPrimaryText: #000;
    --colorTextBody: #111;
    --colorError: #d9534f;
}

/* set base font to all elements roboto */
* {
    font-family: "Roboto", sans-serif;
}

body {
    background: var(--colorBody);
    color: var(--colorTextBody);
    font-family: sans-serif;
}

.registration-page {
    padding: 3rem 1rem;
    min-height: 100vh;
}

.registration-card {
    background: var(--colorBodyLightDim);
    max-width: 750px;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2.5rem 2.5rem;
}

.brand-header {
    text-align: center;
    margin: 0 auto;
    filter: brightness(0);
    padding-top: 50px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 50px;
    height: auto;
    margin-right: 1rem;
}

.brand-header h1 {
    color: var(--colorBtnPrimaryText);
    font-family: "Fjalla One", sans-serif;
    font-size: 2.0rem;
    margin: 0;
    padding: 0;
}

.section h2 {
    color: var(--colorBtnPrimaryText);
    border-bottom: 2px solid var(--colorBorder);
    padding-bottom: .5rem;
    font-family: "Fjalla One", sans-serif;
    font-size: 1.5rem;
}

.invoicing_address {
    padding-left: 2rem;
    display: none;
}

.form-field {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-field label {
    width: 33%;
    margin-right: 1rem;
    font-weight: 500;
    flex-shrink: 0;
}

.form-field input,
.form-field select {
    flex: 1 1 auto;
    padding: .75rem 1rem;
    font-size: .95rem;
    border: 1px solid var(--colorBorder);
    border-radius: .5rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--colorBtnPrimary);
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.3);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-right: .5rem;
    width: 1rem;
    height: 1rem;
}

.form-check label {
    margin: 0;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--colorBtnPrimary);
    color: var(--colorBtnPrimaryText);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary:hover {
    background: var(--colorBtnPrimaryDim);
}

.alert-danger {
    display: none;
    background: rgba(255, 204, 51, 0.1);
    border: 1px solid var(--colorBtnPrimary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: .5rem;
}

.errorlist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 .5rem;
}

.errorlist li {
    color: var(--colorError);
}

.help-text {
    display: block;
    margin-top: .25rem;
    margin-left: .25rem;
    font-size: .85rem;
    color: var(--colorTextBody);
    opacity: .7;
}

.language-switcher {
    width: 100%;
    margin: 0 auto;
    z-index: 100;
}

.language-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.language-item {
    position: relative;
    cursor: pointer;
}

.language-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.language-item .flag {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    padding: 0.5rem;
    transition: border-color .15s;
}

.language-item input:checked + .flag {
    border-color: var(--colorBtnPrimary);
}

.language-item .flag:hover {
    border-color: var(--colorBorder);
}

@media (max-width: 600px) {
    .language-switcher {
        top: .5rem;
        right: .5rem;
    }

    .registration-page {
        margin: 0 auto;
        padding: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {

    .registration-card {
        box-shadow: none;
        border-radius: 0;
        border: none;
    }

    .brand-header h1 {
        font-size: 1.75rem;
    }

    .form-field {
        flex-direction: column;
        align-items: stretch;
    }

    .form-field label {
        width: auto;
        margin-bottom: .5rem;

    }
}

input::placeholder,
textarea::placeholder {
    color: #999999;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #999999;
}

::-moz-placeholder {
    color: #999999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999999;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #999999;
    opacity: 1;
}


.spinner {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #111;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5em;
}

.lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25)
}

.lightbox__content {
    position: relative;
    overflow: scroll;
    overflow-x: hidden;

    width: fit-content;
    max-height: 95vh;

    border-radius: .5rem;

    /* margin: 0 auto; */
}

.payment_content {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 4rem;
    height: 80%;
    font-size: 1.2rem;
    max-width: 1000px;
}

.payment_content > form {
    padding-top: 1rem;
}

.payment_content > p {
    font-size: 1.2rem;
}

.card-checkout-container {
    background: var(--colorBodyLightDim);
}

.payment_option {
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--colorBorder);
}

.invoicing_info {
    font-size: .9em;
    padding-left: 2.5rem;
    margin-top: -.5rem;
    color: rgb(45,45,45);
}

.payment_terms_and_conditions {
    font-weight: 600;
    font-size: .8em;
    justify-self: end;
    margin: 0;

}

.payment_selection {
    padding-bottom: 2rem;
}

.payment_price {
    font-size: 1.5rem;
}

.payment_price > span:first-of-type {
    font-size: 1.2em;
}

.payment_price > span:last-of-type {
    font-size: 1.1rem;
    font-weight: 200;
}

.payment_product {
    font-size: 1.4rem;
}

.payment_product > span {
    font-weight: 300;    
}

.payment-option-div {
    padding-bottom: 2rem;
}

.payment_return_btn {
    position: absolute;
    width: 200px;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}