* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
    position: fixed; /* Prevent bouncing on iOS */
    width: 100%;
    height: 100%;
}

.container {
    max-width: 100vw;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    position: relative;
}

.corner-text {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 100;
    color: #222;
    opacity: 0.8;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 6px solid #000;
    padding-bottom: 2rem;
}

h1 {
    font-size: 5rem;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2 {
    font-size: 3rem;
    color: #000;
    margin-bottom: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.center-card {
    background: #fff;
    border-radius: 32px;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px;
    min-height: 500px;
    max-width: 90vw;
    max-height: 90vh;
    justify-content: center;
}

.button-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2.5rem;
    width: 500px;
    height: 400px;
}

.feature-button {
    background: #f7f7f7;
    color: #222;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.1s;
    min-width: 0;
    min-height: 0;
    position: relative;
    outline: none;
    padding: 0;
}

.feature-button:active {
    background: #e0e0e0;
    transform: scale(0.97);
}

.feature-button.empty {
    background: transparent;
    pointer-events: none;
}

.icon-svg {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #222;
}

.button-description {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 4rem;
    width: 90%;
    max-width: 800px;
    border: 6px solid #000;
    border-radius: 20px;
}

.close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 4rem;
    cursor: pointer;
    padding: 1rem;
    line-height: 1;
    color: #000;
    touch-action: manipulation;
}

.form-group {
    margin-bottom: 2rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 2rem;
    font-size: 1.8rem;
    border: 4px solid #000;
    background: #fff;
    font-family: inherit;
    -webkit-appearance: none; /* Remove default iOS styling */
    border-radius: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #666;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="checkbox"] {
    width: 40px;
    height: 40px;
    border: 4px solid #000;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
}

input[type="checkbox"]:checked {
    background: #000;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-button {
    width: 100%;
    padding: 2rem;
    font-size: 2rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    transition: background 0.2s, transform 0.1s;
    -webkit-appearance: none;
    touch-action: manipulation;
    position: relative;
    top: 0;
}

.submit-button:active {
    background: #000;
    color: #fff;
    transform: translateY(6px);
}

.qr-code {
    text-align: center;
    margin: 2rem 0;
}

.qr-code img {
    max-width: 400px;
    height: auto;
    border: 4px solid #000;
    padding: 1.5rem;
    border-radius: 10px;
}

.events-link {
    display: inline-block;
    padding: 2rem 4rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    font-size: 2rem;
    transition: background 0.2s, transform 0.1s;
    touch-action: manipulation;
    position: relative;
    top: 0;
}

.events-link:active {
    background: #e0e0e0;
    transform: scale(0.97);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #000;
    border-top: 6px solid #000;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Message Styles */
.message {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border: 3px solid;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iPad Landscape Specific Styles */
@media screen and (orientation: landscape) and (min-width: 1024px) {
    .center-card {
        min-width: 700px;
        min-height: 550px;
        padding: 4rem 5rem;
    }
    .button-grid-2x2 {
        width: 600px;
        height: 480px;
        gap: 3rem;
    }
}

@media (max-width: 800px) {
    .center-card {
        min-width: 90vw;
        padding: 1.5rem;
    }
    .button-grid-2x2 {
        width: 90vw;
        height: 60vw;
        gap: 1.2rem;
    }
}

/* Prevent text size adjustment on orientation change */
@media screen and (orientation: landscape) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Touch-friendly adjustments */
button, 
input[type="text"],
input[type="email"],
.events-link {
    min-height: 44px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .button-grid-2x2 {
        width: 90vw;
        height: 60vw;
        gap: 1.2rem;
    }
    
    .feature-button {
        min-height: 150px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
    }
} 