/* Web font for the UI */
@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600&family=Bungee&display=swap");

/* Theme tokens */
:root {
    --bg-1: #1c1d20;
    --bg-2: #25262b;
    --card: #3a3b40;
    --card-2: #2f3035;
    --text: #f0f1f5;
    --muted: #b2b4bd;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #e60000;
    --accent-2: #b00000;
    --shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}

/* Base page styling */
body {
    font-family: "Oxanium", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #2b2d33, var(--bg-1));
    color: var(--text);
    margin: 0;
    padding: 0 0 96px;
    min-height: 100vh;
    box-sizing: border-box;
}

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

.corner-brand {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e60000;
    z-index: 55;
    pointer-events: none;
}

/* Main card container */
.container {
    max-width: 760px;
    margin: 24px 16px 40px;
    background: linear-gradient(180deg, var(--card), var(--card-2));
    padding: 22px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Title and subtitle */
.logo {
    display: block;
    max-width: 160px;
    width: 100%;
    height: auto;
    margin: 4px auto 6px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.tagline {
    text-align: center;
    color: #ffffff;
    margin: 6px 0 20px;
    font-size: 18px;
}

.subtag {
    text-align: center;
    color: var(--muted);
    margin: -12px 0 22px;
    font-size: 11px;
}

/* Top navigation and slide-down menu */
/* Bottom navigation */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 16px 18px;
    background: rgba(24, 25, 29, 0.92);
    border-top: 1px solid var(--border);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    z-index: 50;
    font-family: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}

.bottom-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bottom-nav__item:hover,
.bottom-nav__item:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.bottom-nav__item.active,
.bottom-nav__item[aria-current="page"] {
    color: #e60000;
    background: rgba(230, 0, 0, 0.14);
    border-color: rgba(230, 0, 0, 0.4);
}

/* About page content cards */
.info-card {
    background: rgba(31, 32, 36, 0.5);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.info-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

/* Success modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 30;
}

.modal.open {
    display: flex;
}

.modal-card {
    width: min(440px, 90vw);
    background: #2a2b30;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.modal-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

/* Segmented toggle control */
.toggle {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    margin: 0 auto 24px;
    background: rgba(24, 25, 29, 0.92);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
    font-family: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}

.container .toggle {
    width: 100%;
}

.toggle-option {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    z-index: 1;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 50px;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    font-size: 16px;
    transform: translateY(4px);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc((100% - 12px - 4px) / 2);
    height: calc(100% - 12px);
    background: rgba(230, 0, 0, 0.18);
    border: 1px solid rgba(230, 0, 0, 0.35);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease;
    z-index: 0;
}

.toggle[data-active="delivery"] .toggle-pill {
    transform: translateX(calc(100% + 4px));
}

.toggle-option input:checked + span {
    color: #ffffff;
}

form {
    display: none;
    font-family: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}

form.active {
    display: block;
}

/* Form field spacing */
.form-group {
    margin-bottom: 18px;
}

.help-text {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* Form labels and inputs */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 26px;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #2b2c32;
    color: var(--text);
    font-size: 16px;
    box-shadow: inset 0 0 0 1px var(--border);
}

input::placeholder,
textarea::placeholder {
    color: rgba(240, 241, 245, 0.5);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.35);
}

.error-text {
    color: #ff8a8a;
    font-size: 13px;
    margin-top: 6px;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* Primary action button */
button {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 10px 20px rgba(123, 109, 255, 0.25);
}

button:hover {
    filter: brightness(1.05);
}

.cta-button {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 10px 20px rgba(79, 195, 199, 0.25);
}

.cta-button:hover {
    filter: brightness(1.05);
}

/* Active form panel styling */
form.active {
    background: rgba(31, 32, 36, 0.5);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    width: 100%;
}

form.active + form {
    margin-top: 18px;
}

/* Desktop enhancements */
@media (min-width: 720px) {
    .container {
        margin: 60px auto;
        padding: 36px;
        border-radius: 22px;
    }

    .logo {
        max-width: 200px;
        margin-bottom: 8px;
    }

    .tagline {
        margin: 8px 0 26px;
        font-size: 20px;
    }

    .toggle {
        width: fit-content;
        margin: 0 auto 28px;
        padding: 6px;
    }

    .toggle-option {
        flex: initial;
    }

    .toggle-option span {
        padding: 12px 26px;
        font-size: 17px;
    }

    button {
        max-width: 420px;
        margin: 0 auto;
        display: block;
    }

    .cta-button {
        max-width: 420px;
        margin: 0 auto;
    }

    .bottom-nav {
        max-width: 520px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 22px 22px 0 0;
    }
}

@media (max-width: 719px) {
    .container {
        margin: 0;
        padding: 16px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    form.active {
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    input, textarea, select {
        padding: 16px 16px;
        font-size: 16px;
        border-radius: 14px;
    }

    textarea {
        min-height: 120px;
    }

    button {
        padding: 16px 22px;
        font-size: 17px;
    }
}
