/* --- Global Styles --- */
:root {
    --background-color: #000;
    --text-color: #fff;
    --dark-color: #1a1a1a; 
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Footer --- */
.site-header, .site-footer {
    background-color: var(--dark-color);
    padding: 1rem 0;
    text-align: center;
}

.logo img {
    height: 28px;
    max-height: 30px;
    width: auto;
}

.logo {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

/* --- Registration Page --- */
.hero {
    padding: 4rem 0 2rem;
}

.hero .container,
.registration-form .container,
.benefits .container {
    max-width: 960px;
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 1.04;
    font-weight: 700;
}

.hero p {
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    line-height: 1.45;
    max-width: 860px;
}

.cta-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 1.75rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #a200ff 0%, #ff1ab6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(162, 0, 255, 0.28);
}

.registration-form {
    padding: 1rem 0 3rem;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 89, 89, 0.5);
    border-radius: 14px;
    background: rgba(255, 89, 89, 0.12);
    color: #ffb3b3;
}

.registration-form h2,
.benefits h2 {
    margin: 0 0 1.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.registration-form form {
    max-width: 960px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

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

.form-group label {
    font-size: 1rem;
    font-weight: 600;
}

.field-error {
    margin: 0;
    color: #ff8080;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: #111;
    color: #fff;
    font: inherit;
}

.input-error {
    border-color: #ff4d6d !important;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #ff1ab6;
    outline-offset: 1px;
    border-color: transparent;
}

.terms {
    margin-top: 1.25rem;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.terms input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin: 0;
    accent-color: #ff1ab6;
}

.terms label {
    font-weight: 400;
}

.terms a {
    color: #ff4fd8;
}

.terms-error {
    margin-bottom: 0.35rem;
}

.registration-form .submit-button {
    margin-top: 1.5rem;
}

.benefits {
    padding: 1rem 0 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.benefit-item .icon {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.benefit-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.benefit-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

/* --- Banner Section --- */
.banner-full-width-section {
    position: relative;
}

.banner-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.banner-link > picture > img {
    width: 100%;
    display: block;
}

.banner-content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    text-align: center;
}

.banner-text-container img {
    width: 80%;
}

.banner-button-container {
    margin-top: 1.5rem; /* Added top margin for spacing */
}

.banner-button-container img {
    width: 40%; /* Reduced to 40% */
}

/* --- Sponsors Grid Section --- */
.sponsors-grid-section {
    padding: 2rem 0;
}

/* --- Virtual Queue Section --- */
.virtual-queue-section {
    padding: 2rem 0;
}

.virtual-queue-card {
    display: block;
    position: relative;
    text-align: center;
    width: 80%;
    margin: 0 auto; 
    border-radius: 25px;
    overflow: hidden;
}

.virtual-queue-card > picture > img {
    width: 100%;
    display: block;
}

.virtual-queue-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.virtual-queue-text {
    width: 100%;
}

.virtual-queue-text img {
    width: 100%;
    display: block;
}

.virtual-queue-button {
    width: 80%;
}


/* --- Footer --- */
.site-footer {
    padding: 2rem 0;
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .banner-content {
        width: 50%;
        left: auto;
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .virtual-queue-card {
        width: 80%;
        max-width: 1200px;
    }

    .virtual-queue-content {
        width: 45%;
        left: auto;
        right: 5%;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: center;
    }

    .virtual-queue-text {
        width: 100%;
    }

    .virtual-queue-button {
        width: 80%;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 2.5rem 0 1.5rem;
    }

    .form-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-button,
    .submit-button {
        width: 100%;
    }

    .benefit-item {
        padding: 1.4rem;
    }
}
