@font-face {
    font-family: 'Gilroy';
    src: url('Gilroy-SemiBold.otf') format('truetype');
}

@font-face {
    font-family: 'PrudentialModern';
    src: url('PrudentialModern-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'PrudentialModernSemCon';
    src: url('PrudentialModern-BoldSemCon.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --bg-dark: #001a3d;
    --cyan: #00ffff;
    --yellow: #ffd700;
    --white: #ffffff;
    --font-main: 'Gilroy', sans-serif;
    --font-heading: 'PrudentialModernSemCon', sans-serif;
    --font-email: 'PrudentialModernSemCon', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    height: 100dvh;
    max-height: 600px;
    position: relative;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screen Transitions */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border: 3px solid var(--cyan);
    border-radius: 30px;
    background: rgba(0, 31, 63, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Box Styles */
.content-box {
    width: 100%;
    max-width: 700px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Logo Styles */
.logo-container {
    margin-bottom: 30px;
}

.main-logo {
    height: 140px;
    width: auto;
}

.bottom-logo-container {
    position: absolute;
    bottom: 30px;
    right: 40px;
}

.side-logo {
    height: 100px;
    width: auto;
}

/* Buttons */
.btn-primary {
    background-color: var(--yellow);
    color: #000;
    border: none;
    padding: 18px 50px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: var(--font-main);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #ffde42;
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--bg-dark);
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font-main);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
}

.option-btn.selected {
    border-color: var(--cyan);
    background: rgba(0, 242, 255, 0.1);
}

/* Progress Dots */
.progress-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--white);
}

.dot.active {
    background: var(--white);
}

/* Input Styles */
.input-container {
    margin-bottom: 25px;
    width: 100%;
}

input[type="email"] {
    width: 100%;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50px;
    padding: 15px 30px;
    color: var(--white);
    font-size: 1.2rem;
    font-family: var(--font-email);
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    border-color: var(--cyan);
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#email-screen h1 {
    font-family: var(--font-email);
}

/* Result Elements */
.qr-container {
    background: var(--white);
    width: 180px;
    height: 180px;
    margin: 30px auto;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#qr-code {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-img {
    object-fit: contain;
}

.qr-placeholder {
    color: #444;
    font-weight: 800;
    font-size: 0.8rem;
}

.qr-note {
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-note {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
    .app-container {
        padding: 15px;
        padding-top: calc(15px + env(safe-area-inset-top));
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
        height: 100vh;
        height: 100dvh;
        max-height: none;
    }

    .screen {
        padding: 30px 20px;
        border-radius: 20px;
        height: 100%;
        width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .main-logo {
        height: 100px;
    }

    .side-logo {
        height: 60px;
    }

    .bottom-logo-container {
        bottom: 20px;
        right: 20px;
    }

    .footer-note {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: auto;
        padding-top: 20px;
        text-align: center;
        width: 100%;
        font-size: 0.65rem;
    }
}