/* 1. FONT DEFINITIONS */
@font-face {
    font-family: 'DigiFONT';
    src: url('../fonts/DS-DIGI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PTMonoFONT';
    src: url('../fonts/PTM55FT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SteelfishFONT';
    src: url('../fonts/steelfish rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SteelfishFONT';
    src: url('../fonts/steelfish bd.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 2. VARIABLES & GLOBAL STYLES */
:root {
    --madri-red: #e31a22;
    --madri-gold: #b88d32;
    --madri-gold-light: #d8bc83;
    --madri-dark: #1a1a1a;
}

body {
    margin: 0;
}

a {
    letter-spacing: 0.5px;
    text-decoration: none;
}

::placeholder {
    color: #BBBCBF;
    opacity: 1;
}

/* 3. LAYOUT & UTILITIES */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.madri-pattern-bg {
    background-color: var(--madri-red);
    background-image: url('/images/HT-Red 3.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    text-align: center;
}

.screen {
    display: none;
    width: 100%;
}

    .screen.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
        position: relative;
    }

.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

/* 4. TYPOGRAPHY */
.condensed-title {
    text-transform: uppercase;
    line-height: 0.9;
    margin: 15px 0;
    letter-spacing: -1px;
    font-weight: 700;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    font-size: 5.5rem;
}

.fs35 {
    font-size: 3.5rem;
}

.betterluck {
    margin-top: 0;
    font-size: 2.3rem;
    letter-spacing: normal;
    font-weight: normal;
}

/* 5. COMPONENTS */
.drinkaware {
    width: 60%;
    margin: 20px 0;
    max-width: 250px;
}

.posabs_btm0 {
    position: absolute;
    bottom: 0;
}

.madri-logo-main {
    width: 280px;
    margin-top: 40px;
}

.madri-logo-small {
    width: 140px;
    margin-top: 40px;
}

/* Age Gate Styles */
.age-gate-wrapper {
    /*margin-top: auto;*/
    margin-bottom: 60px;
}

.dob-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.dob-display {
    display: block;
    font-size: 1.7rem;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    font-weight: bold;
}

.tc-link-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

    .tc-link-wrapper a {
        color: var(--madri-gold-light);
    }

/* Form Elements */
.madri-input {
    width: 100%;
    background: white;
    border: 2px solid var(--madri-gold);
    padding: 8px;
    margin-bottom: 8px;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #333;
    box-sizing: border-box;
    border-radius: 0;
    letter-spacing: 1px;
}

.input-small {
    width: 75px;
    text-align: center;
}

.input-medium {
    width: 100px;
    text-align: center;
}

.checkbox-container {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    margin-left: 40px;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    text-transform: uppercase;
}

.checkbox-indent {
    margin-top: 5px;
}

.checkbox-indent-bottom {
    margin-top: 5px;
    margin-bottom: 15px;
}

.madri-checkbox {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-top: -1px;
}

.gold-link {
    color: var(--madri-gold-light);
}

/* Error Handling */
.error-summary-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--madri-gold);
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    color: #ffffff;
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .error-summary-box ul {
        margin: 0;
        padding-left: 20px;
        list-style-type: none;
    }

    .error-summary-box li {
        margin-bottom: 5px;
        font-size: 0.9rem;
        margin-left: -24px;
    }

/* Buttons */
.btn-gold-submit {
    background: linear-gradient(to right, var(--madri-gold-light), var(--madri-gold), var(--madri-gold-light), var(--madri-gold), var(--madri-gold-light));
    border: 1px solid white;
    color: white;
    padding: 5px 30px;
    font-size: 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    font-family: 'SteelfishFONT', 'Oswald', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
}

    .btn-gold-submit:disabled {
        cursor: not-allowed;
        opacity: 0.6;
        box-shadow: none;
    }

.btn-width-40 {
    width: 40%;
}

.btn-width-60-mt {
    width: 60%;
    margin-top: 40px;
}

.button-margin-top {
    margin-top: 40px;
}

/* 6. SCREEN SPECIFIC STYLES */

/* Hero Header (Screen 2) */
.hero-header {
    width: 100%;
    height: 25vh;
    background: url('/images/Handbeer.jpg') center/cover;
    position: relative;
}

.logo-overlay {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 85px;
}

.form-container {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Winner/Clock (Screen 3) */
.main-congrats {
    margin-top: 50px;
    font-size: 4.5rem;
}

.prize-text {
    margin-top: 0;
    font-size: 2.3rem;
    letter-spacing: normal;
}

.present-to-staff {
    margin-top: 40px;
    font-size: 2rem;
    letter-spacing: normal;
    line-height: 2rem;
}

.digital-clock-container {
    width: 100%;
    height: 25vh;
    background: url('/images/Clock_Background.jpg') center/cover;
    position: relative;
    margin-top: 40px;
}

.timer-instruction {
    margin-top: 20px;
    font-size: 2rem;
    letter-spacing: normal;
    line-height: 2.5rem;
}

.digital-clock {
    font-size: 7rem;
    line-height: 1;
    margin-top: -20px;
    font-family: 'DigiFONT', 'Oswald', sans-serif;
}

.unique-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.code-label {
    text-transform: uppercase;
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.unique-code-display {
    background-color: #1a1714;
    color: var(--madri-gold);
    font-family: 'PTMonoFONT', 'Oswald', sans-serif;
    font-size: 1.5rem;
    min-width: 150px;
    text-align: center;
    margin: 0;
}

/* Redeem Success UI */
.redeem-result {
    margin-top: 40px;
    width: 100%;
}

.redeemed-title {
    font-size: 4rem;
    color: var(--madri-gold-light);
}

.redeem-status-msg {
    text-transform: uppercase;
    font-size: 1.5rem;
    color: white;
    padding: 0 20px;
}

/* Loss Screen (Screen 4) */
.wdth40vw {
    width: 40vw;
}

.mxwdth160 {
    max-width: 160px;
}

/* Specific font size for the interest message */
.fs17 {
    font-size: 1.7rem !important;
}

/* Styling for the promotional footer text */
.footer-info {
    margin-top: 0px;
    font-size: 1.5rem;
    letter-spacing: normal;
    font-weight: normal;
    line-height: 30px;
    text-transform: uppercase;
}


/* If you use JavaScript to show this later, you can either 
   remove the class or add a '.show' class like this: 
*/
.redeem-result.show {
    display: block;
}


/* Ensure the result UI is hidden by default when page loads */
#redeem-result-ui {
    display: none;
    margin-top: 40px;
    width: 100%;
}

    /* When the .hidden class is removed, this ensures it displays correctly */
    #redeem-result-ui:not(.hidden) {
        display: block;
    }