@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-red: #D50032; /* NBA Red */
    --background-light: #F8F8F8;
    --background-medium: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color-light: rgba(0, 0, 0, 0.1);
    --border-color-red: rgba(213, 0, 50, 0.3);
    --glass-bg-light: rgba(0, 0, 0, 0.03);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--background-light), var(--background-medium));
    color: var(--text-dark);
    margin: 0;
    font-size: 16px;
}

.banner {
    height: 30vh; /* Reduced height for a more concise banner */
    background-color: var(--background-medium); /* White background */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--primary-red); /* Strong red accent */
    box-shadow: 0 5px 15px var(--shadow-light);
    padding-top: 30px;
    padding-bottom: 20px;
}

.banner-content {
    animation: fadeInDown 1.5s ease-out;
}

.event-logo {
    max-width: 100px; /* Slightly smaller logo for light theme */
    background: var(--background-medium); /* White background for logo */
    border-radius: 30px;
    padding: 10px;
    border: 2px solid var(--border-color-light);
    margin-bottom: 10px; /* Reduced margin */
    box-shadow: 0 5px 10px var(--shadow-light);
}

.banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em; /* Slightly smaller font size */
    font-weight: 700;
    margin: 0;
    color: var(--text-dark); /* Dark text for contrast */
    text-shadow: none; /* Removed text shadow */
}

.main-content {
    padding: 30px 20px; /* Adjusted padding */
    display: flex;
    justify-content: center;
    margin-top: -10vh; /* Pulls the container up into the banner */
    position: relative;
    z-index: 10;
}

.container {
    background-color: var(--background-medium);
    border: 1px solid var(--border-color-light);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow-light);
    width: 100%;
    max-width: 650px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark); /* Dark label text */
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--glass-bg-light); /* Subtle light background */
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    color: var(--text-dark); /* Dark input text */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(213, 0, 50, 0.3);
    transform: translateY(-2px);
}

.copy-btn {
    background: none;
    width: 200px;
    border: 1px solid var(--border-color-light);
    border-radius: 5px;
    padding: 7px 12px; /* Increased padding */
    cursor: pointer;
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--primary-red);
    font-size: 0.9em;
    line-height: 1.2; /* Adjusted line height */
    white-space: nowrap; /* Prevent text wrapping */
    margin-top: 0px;
}

.copy-btn:hover {
    background-color: rgba(213, 0, 50, 0.05);
    border-color: var(--primary-red);
    transform: translateY(-1px);
}

.copy-btn svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    margin-right: 5px; /* Space between icon and text */
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--text-dark); /* Dark checkbox label text */
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color-light);
    border-radius: 5px;
    cursor: pointer;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.checkbox-group input[type="checkbox"]:checked::before {
    /*content: '\u2713';*/
    color: var(--background-medium); /* White checkmark */
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

button {
    width: 100%;
    background: linear-gradient(45deg, var(--primary-red), #ff5a5a); /* Red gradient */
    color: var(--text-white); /* White text on button */
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-dark);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

button:disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#responseMessage {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

#responseMessage.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

#responseMessage.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
    .banner h2 {
        font-size: 2em; /* Smaller font for mobile */
    }
    .container {
        padding: 30px 25px;
        margin-top: 20px; /* Adjusted for mobile */
    }
    .event-logo {
        max-width: 80px;
    }
}
