/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

/* ===== BACKGROUND ===== */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1b1b1b;
    z-index: -2;
}

/* ===== LOGO BAR ===== */
.logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1rem 2rem;
    z-index: 10;
}

.logo-bar img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===== SIDE PORTRAITS ===== */
.portrait {
    position: fixed;
    bottom: 0;
    max-height: 100%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

.portrait-left {
    left: 0;
}

.portrait-right {
    right: 0;
}

/* Scale portraits down as screen shrinks */
@media (max-width: 1300px) { .portrait { max-height: 95%; } }
@media (max-width: 1200px) { .portrait { max-height: 90%; } }
@media (max-width: 1100px) { .portrait { max-height: 85%; } }

/* Hide portraits on small screens */
@media (max-width: 812px) {
    .portrait {
        display: none;
    }
}

/* Scale logos on smaller screens */
@media (max-width: 900px) {
    .logo-bar {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
    }
    .logo-bar img {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .logo-bar {
        gap: 0.75rem;
        padding: 0.5rem 0.5rem;
        flex-wrap: wrap;
    }
    .logo-bar img {
        height: 30px;
    }
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

/* ===== HOME PAGE STYLES ===== */
.home-page .main-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Container for title + buttons */
.home-content {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 2rem;
}

/* ===== BUTTON GRID ===== */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 60px;
    z-index: 2;
}

.nav-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: linear-gradient(to right, #c00809, #000000);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-button, .button-text, .button-subtext {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.button-subtext {
    padding-top: 4px;
    font-size: 75%;
}

.nav-button:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(to right, #e00a0b, #1a1a1a);
    box-shadow: 0 10px 30px rgba(192, 8, 9, 0.6);
}

.nav-button:active {
    transform: translateY(-2px);
}

/* ===== FORM PAGE STYLES ===== */
.form-page .content-wrapper {
    justify-content: flex-start;
    padding-top: 100px;
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #c00809, #000000);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(to right, #e00a0b, #1a1a1a);
    transform: translateX(-5px);
}

.form-container {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a2e;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: #0f3460;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #c00809;
    font-weight: 500;
}

.form-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

/* ===== TWO COLUMN FORM LAYOUT ===== */
.two-column-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

/* ===== FORM INPUTS ===== */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.7rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.radio-label:hover {
    border-color: #0f3460;
    background: #f5f5f5;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label span {
    color: #333;
    font-weight: 500;
}

.radio-label input[type="radio"]:checked + span {
    color: #0f3460;
    font-weight: 600;
}

/* ===== CHECKBOXES ===== */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.7rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-label:hover {
    border-color: #0f3460;
    background: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: #333;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #0f3460;
    font-weight: 600;
}

/* ===== SUBMIT BUTTON ===== */
.submit-button {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(to right, #c00809, #000000);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 8, 9, 0.6);
    background: linear-gradient(to right, #e00a0b, #1a1a1a);
}

.submit-button:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1025px) {
    .nav-button {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 1024px) {
    .button-grid {
        grid-template-columns: 1fr;
    }

    .home-page .main-title {
        font-size: 3rem;
    }

    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .two-column-form {
        grid-template-columns: 1fr;
    }

    .home-page .main-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1rem;
    }

    .home-page .main-title {
        font-size: 2rem;
    }

    .form-container {
        padding: 1rem;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }
}

/* ===== KIOSK MODE - PREVENT INTERACTIONS ===== */
body {
    overflow: hidden;
}

/* ===== FORM PAGES - ALLOW SCROLLING ===== */
body.form-page {
    overflow-y: auto;
}

.form-page .content-wrapper {
    height: auto;
    min-height: 100vh;
}

/* Disable text selection in forms for kiosk */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}


/* ===== PAYPAL DONATE BUTTON WRAPPER ===== */
.paypal-donate-wrapper {
    position: relative;
    cursor: pointer;
}

.paypal-donate-wrapper #paypal-donate-button-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Style PayPal's button to blend with nav button */
.paypal-donate-wrapper #paypal-donate-button-container img {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.paypal-donate-wrapper:hover #paypal-donate-button-container img {
    opacity: 1;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.login-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #c00809, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .form-group {
    width: 100%;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.login-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: normal;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: #c00809;
    background: rgba(255, 255, 255, 0.15);
}

.login-button {
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to right, #c00809, #8b0000);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-button:hover {
    background: linear-gradient(to right, #e00a0b, #c00809);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 8, 9, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    padding: 0.8rem;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 5px;
    color: #ff6b6b;
    font-size: 1rem;
}

.login-hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

@media (max-width: 600px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-container h1 {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-form input[type="password"] {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .login-button {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}
