*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body,
html {
    margin: 0;
    padding: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;

    background: transparent;

    /* inherit font & color from ancestor */
    color: inherit;
    font: inherit;

    /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
    line-height: normal;

    /* Corrects font smoothing for webkit */
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;

    /* Corrects inability to style clickable `input` types in iOS */
    -webkit-appearance: none;
}

/* Remove excess padding and border in Firefox 4+ */
&::-moz-focus-inner {
    border: 0;
    padding: 0;
}

:root {
    --color-text-dark: #212529;
    --color-primary: #ff7995;
    --color-secondary: #1e1e4b;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.color-primary {
    color: var(--color-primary) !important;
}

.color-text-black {
    color: var(--color-text-dark);
}

.font-kanit {
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
}

.font-jakarta {
    font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
}

.font-300 {
    font-weight: 300;
}

.font-400 {
    font-weight: 400;
}

.font-500 {
    font-weight: 500;
}

.font-600 {
    font-weight: 600;
}

.font-700 {
    font-weight: 700;
}

.font-size-18 {
    font-size: 18px;
}

.font-size-22 {
    font-size: 22px;
}

.font-size-26 {
    font-size: 26px;
}

.font-size-28 {
    font-size: 28px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: end;
}

.justify-around {
    justify-content: space-around;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.secure-small-logo {
    height: 2.5rem;
    width: auto;
}

.mp-small-logo {
    height: 2rem;
    width: auto;
}

.backgroun-chalk {
    background-color: #fafafa;
}

.background-gray-transparent {
    background-color: #51505080;
}

.blur {
    backdrop-filter: blur(16px);
}

.pointer-events-none {
    pointer-events: none !important;
}

body>section {
    background-color: #fff;
    width: 464px;
    margin: 0 auto;
}

.main-width {
    width: 464px;
}

.color-gray {
    color: gray;
}

.color-opaque {
    color: #595959;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.px-2 {
    padding-right: .5rem;
    padding-left: .5rem;
}

.px-4 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.py-1 {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.pb-1 {
    padding-bottom: .25rem;
}

.pb-40 {
    padding-bottom: 10rem;
}

.pt-2 {
    padding-top: .5rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.bottom-0 {
    bottom: 0;
}

input,
select,
.container {
    outline-color: #353593;
    height: 2.8em;
    padding-left: 1em;
    background-color: #fff
}

input,
select,
.container {
    width: 100%;
    border: 1px solid #cccfed;
    background-color: #d8dbf2;
    border-radius: 8px
}

div.container:has(iframe) :focus-within {
    border: 2px solid #353593;
}

.container:focus-visible,
.container:focus-within,
input:focus-visible,
select:focus-visible,
input:focus,
select:focus {
    border: 2px solid #353593;
}

.display-none {
    display: none !important;
}

.btn-container {
    background-color: #f4f5fb;
    padding: .5rem 1rem;
}

.btn-filled-primary,
.btn-unfilled-primary {
    text-decoration: none;
    border-radius: 8px;
    padding: .75rem;
    font-size: 12px;
}

.btn-unfilled-primary {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

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

.pointer {
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #51505090;
    z-index: 999;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn .5s;
}

.opacity-30 {
    opacity: .3;
}

.loader {
    border: 10px solid #fafafa;
    border-top: 10px solid #505d65;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-modal {
    border-radius: 5px;
    width: 78%;
}

.alert-icon {
    color: #f8bb86;
    border-color: #facea8;
    border: 4px solid;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    width: 80px;
    height: 80px;
    font-size: 54px;
    font-family: 'Plus Jakarta Sans';
}

.aler-modal-button {
    color: white;
    background-color: #2778c4;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin: 1rem;
}

@media (max-width: 500px) {
    .btn-container {
        width: 100%;
        background-color: var(--color-secondary);
    }

    .btn-filled-primary,
    .btn-unfilled-primary {
        color: var(--color-primary);
        border: none;
        background-color: transparent;
    }

    body>section {
        width: 100%;
    }

    h1,
    p,
    div,
    h3,
    label {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    input,
    select,
    form>div,
    form>div.container {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .error-modal {
        width: 100%;
    }
}