/* Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Transitions & Utility Classes */
.page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: none;
}

.error-msg {
    color: #E31837;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Header Elements */
.beans-header img {
    width: 100%;
    max-width: 337px;
    display: block;
    margin: 0 auto;
}

.main-target-header {
    width: 200px;
    align-items: center;
}

/* --- Page 1: Registration --- */
#page-register, #page-1 {
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 15px;
    background-color: #F4A4A8;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.form-group input::placeholder {
    color: #fff;
    opacity: 0.8;
}

.form-group input:focus {
    outline: 2px solid #E31837;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group input {
    width: 24px;
    height: 24px;
    accent-color: #000;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    text-transform: none;
}

.btn-submit {
    width: 100%;
    background-color: #E31837;
    color: white;
    font-size: 30px;
    font-weight: 800;
    border: none;
    padding: 11px;
    width: 70%;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

.btn-submit:active {
    transform: scale(0.98);
}

.legal-footer {
    margin-top: 30px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}

.legal-footer a {
    color: #000;
    text-decoration: underline;
}

#page-1{
    padding: 0 2em;
    margin-bottom: 4em;
}

.optInLabel{
    text-transform: uppercase !important;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.4;
}

/* --- Page 2: Red Slide-Up Loader --- */
/* --- Page 2: Red Slide-Up Loader --- */
#page-2 {
    background-color: #E31837;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; /* High Z-Index to sit on top */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* DEFAULT STATE: Hidden below the screen */
    transform: translateY(100%); 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* STATE 1: ACTIVE (Slide Up to Center) */
#page-2.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* STATE 2: EXIT (Slide Down back to bottom) */
#page-2.slide-down-exit {
    transform: translateY(100%) !important;
}

/* --- Typewriter Styles --- */
.loader-content h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    min-height: 120px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: white;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Orbit System --- */
.loader-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.orbit-system {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-center-wrapper {
    position: absolute;
    z-index: 10;
    width: 160px;
}

.mascot-static {
    width: 100%;
    height: auto;
    display: block;
}

.beans-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0; 
    animation: fadeInRing 0.5s ease-out 0.5s forwards, spinRing 4s linear infinite;
}

.orbit-bean {
    position: absolute;
    width: 50px;
    height: auto;
}

.pos-1 { top: 0; left: 50%; transform: translateX(-50%); }
.pos-2 { top: 30%; right: 0; }
.pos-3 { bottom: 10%; right: 15%; }
.pos-4 { bottom: 10%; left: 15%; }
.pos-5 { top: 30%; left: 0; }

@keyframes fadeInRing {
    from { opacity: 0; transform: scale(0.8) rotate(0deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Page 3: Email View --- */
#page-3 {
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.email-icon {
    margin: 20px auto;
}

.email-icon img {
    width: 80px;
}

.email-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px auto;
    font-weight: 500;
    text-align: left;
    padding: 0 2em;
    gap: 1em;
    display: flex;
    flex-direction: column;
}

.mascot-email-page img {
    width: 300px;
    height: auto;
    margin-bottom: 2em;
}

.red-footer {
    background-color: #E31837;
    margin-top: auto; 
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px;
}

.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* --- Terms Modal --- */
.modal {
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    width: 90%;
    height: 80%;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.terms-text {
    overflow-y: auto;
    flex-grow: 1;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
}

.terms-text h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.beans-header{
    display: flex;
    justify-content: center;
}

