* {
    box-sizing: border-box;
}

:root {
    --bg-1: #20163f;
    --bg-2: #472b73;
    --bg-3: #ff9cc9;
    --card: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.25);
    --text: #fef7ff;
    --muted: rgba(255, 255, 255, 0.75);
    --accent: #f8b4d9;
    --accent-strong: #ff7bbd;
    --button: linear-gradient(135deg, #ffb7d5, #d9a7ff 48%, #8ec5ff);
    --button-shadow: rgba(255, 123, 189, 0.4);
}

body {
    height: 100vh;
    height: 100dvh;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(32, 22, 63, 0.92), rgba(71, 43, 115, 0.9)),
        url(/assets/images/back.jpeg) center/cover no-repeat;
    background-blend-mode: overlay;
    font-size: 18px;
    font-family: shick, "Segoe UI", sans-serif;
    color: var(--text);
    transition: all 0.4s ease;
}

@font-face {
    font-family: "shick";
    src: url(/font/DekoBrett.ttf);
}

main {
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.formContainer {
    width: min(100%, 460px);
    padding: 20px 20px 16px;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(10, 8, 21, 0.35);
}

.formContainer h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: clamp(1.5rem, 1.3vw + 1rem, 2rem);
    color: var(--text);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

form input,
form select {
    width: 100%;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 11px 16px;
    border-radius: 999px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

form input::placeholder,
form select {
    color: var(--muted);
}

form input:focus,
form select:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(248, 180, 217, 0.2);
}

form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

option {
    background-color: #2f234c;
    color: #fff;
    cursor: pointer;
}

button {
    border: none;
    margin: 2px 0;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--button);
    color: #2a1d3b;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 12px 24px var(--button-shadow);
}

@media (max-height: 700px) {
    body {
        padding: 12px;
    }

    .formContainer {
        padding: 14px 18px 12px;
    }

    .formContainer h2 {
        margin-bottom: 8px;
    }

    form {
        gap: 6px;
    }

    form input,
    form select {
        height: 45px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    button {
        min-height: 38px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

button:active {
    transform: translateY(0);
}

button:nth-of-type(2),
button:nth-of-type(3),
button:nth-of-type(4),
button:nth-of-type(5) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.errorText {
    color: #ffd7e8;
    font-size: 15px;
}

.orderBox {
    width: min(100%, 400px);
    height: 250px;
    overflow: hidden;
    margin: 10px;
    padding: 10px;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-block;
}

#modal,
#overlay {
    display: none;
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(10, 8, 21, 0.7);
}

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 11;
    width: min(90vw, 460px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: #30234f;
    box-shadow: 0 24px 60px rgba(10, 8, 21, 0.5);
}

#modal h3 {
    margin-top: 0;
}

#modal ul {
    padding-right: 24px;
}

#modal li {
    margin-bottom: 16px;
    white-space: pre-line;
}