@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');

html * {

    position: relative;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    color: white;
    font: normal 16px / 1.2 "TikTok Sans", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "slnt" 0, "wdth" 100;
    text-align: center;
    background: #000;
    padding: 0.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

header {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand {
    height: 3rem;
    aspect-ratio: 512/133;
    justify-self: flex-start;
}

h1 {
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
}

h1 small {
    color: #f1a400;
    display: block;
}

h1 small,
h2 {
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

h3, h4, td, tr {
    font-size: 0.8rem;
    font-weight: normal;
    padding: 0;
    margin: 0;
}

p {
    font-size: 0.6rem;
    padding: 0;
    margin: 0;
    text-align: left;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    background: #0008;
    backdrop-filter: blur(5px);
    --radius: 1rem;
    border-radius: var(--radius);
}

footer {
    font-size: 0.6rem;
    text-align: center;
}

footer a {
    text-decoration: underline;
    text-transform: uppercase;
}

footer * {
    display: inline!important;
}

button {
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    border: none;
    border-radius: 0.5rem;
    background: #f1a400;
    color: #fff;
    margin: 1rem auto;
    flex-shrink: 0;
    font-size: 1rem;
}

section button {
    width: 100%;
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#submit_btn {
    flex-shrink: 2;
}

#cancel_btn {
    flex-shrink: 2;
    background: #888;
    color: #222;
}

.phone-number,
.submit,
.otp {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 0.25rem;
    visibility: hidden;
}

label {
    font-size: 0.8rem;
}

input[type="tel"],
input[type="number"] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 3.5rem;
    border-radius: 0.5rem;
    outline: none;
    border: none;
    padding: 0 1rem;
    color: #10223e;
}

input[type="tel"]::placeholder,
input[type="number"]::placeholder {
    color: #bbb;
}

input[type="tel"],
input[type="tel"]::placeholder {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

input[type="tel"] {
    padding: 0 1rem;
}

input[type="tel"]::placeholder {
    color: #bbb;
}


input[type="number"],
input[type="number"]::placeholder {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 6px;
    text-align: center;
}

input[type="number"] {
    padding: 0 1.5rem;
    width: 9rem;
}

input[type="number"]::placeholder {
    color: #bbb;
}

.msisdn-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.msisdn-input label {
    font-size: 1.2rem;
}

.inactive,
button:disabled {
    opacity: 0.5;
    filter: grayscale(60%);
}

body:not(.guidelines-on) .guidelines {
    display: none;
}

body.guidelines-on section {
    gap: 0;
}

ol.guidelines {
    counter-reset: item;
    display: flex;
    flex-flow: column;
    list-style: none;
    margin: 0 auto;
    max-width: 90%;
    padding: 1rem;
    text-align: left;
}

ol.guidelines li {
    align-items: center;
    counter-increment: item;
    display: flex;
    margin: 0;
    filter: grayscale(1);
    opacity: .5;
}

ol.guidelines li + li {
    margin-top: 0.5rem;
}

ol.guidelines li::before {
    background-color: var(--highlight-color);
    align-items: center;
    border-radius: .5rem;
    content: counter(item);
    color: #000;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: bold;
    justify-content: center;
    height: 1.75rem;
    aspect-ratio: 1/1;
    margin-right: .5rem;
}

body:not(.step-two) ol.guidelines li:first-of-type,
body.step-two ol.guidelines li:last-of-type {
    filter: none;
    font-weight: 800;
    opacity: 1;
}

.links {
    display: flex!important;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

[name="sms"] {
    color: var(--highlight-color);
    font-size: 1.5rem;
}