* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    color: #111;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0;
}

/* Background overlay for modal effect - only on form pages, not thank-you */
body:not(.thank-you-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
}

body:not(.thank-you-page).has-background-image::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Thank you page - lighter overlay or none */
body.thank-you-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

body.thank-you-page.has-background-image::before {
    background: rgba(0, 0, 0, 0.05);
}

/* Running man animation */
@keyframes run {
    0% {
        transform: translateX(-100px) translateY(0);
    }
    50% {
        transform: translateX(calc(50vw - 25px)) translateY(-10px);
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0);
    }
}

@keyframes runLegs {
    0% {
        transform: rotate(-25deg);
    }
    25% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(25deg);
    }
    75% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-25deg);
    }
}

@keyframes runArms {
    0% {
        transform: rotate(25deg);
    }
    25% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-25deg);
    }
    75% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(25deg);
    }
}

.running-man {
    display: none; /* Hide running man animations for clean Nike-style design */
}

.running-man svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Multiple running men at different positions and speeds */
.running-man:nth-child(1) {
    top: 15%;
    animation-duration: 25s;
    animation-delay: 0s;
    opacity: 0.12;
}

.running-man:nth-child(2) {
    top: 35%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.1;
    transform: scaleX(-1); /* Running in opposite direction */
}

.running-man:nth-child(3) {
    top: 55%;
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.13;
}

.running-man:nth-child(4) {
    top: 75%;
    animation-duration: 28s;
    animation-delay: -15s;
    opacity: 0.11;
    transform: scaleX(-1);
}

.running-man:nth-child(5) {
    top: 25%;
    animation-duration: 35s;
    animation-delay: -8s;
    opacity: 0.09;
}

.running-man:nth-child(6) {
    top: 65%;
    animation-duration: 26s;
    animation-delay: -12s;
    opacity: 0.14;
    transform: scaleX(-1);
}

/* Animate running legs and arms */
.running-man .leg-left {
    transform-origin: 50px 67px;
    animation: runLegs 0.8s ease-in-out infinite;
}

.running-man .leg-right {
    transform-origin: 50px 67px;
    animation: runLegs 0.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

.running-man .arm-left {
    transform-origin: 50px 40px;
    animation: runArms 0.8s ease-in-out infinite;
}

.running-man .arm-right {
    transform-origin: 50px 40px;
    animation: runArms 0.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* Enhanced running animation with bounce */
@keyframes runBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.running-man svg {
    animation: runBounce 0.8s ease-in-out infinite;
}

.form-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.form-wrapper {
    padding: 48px 40px;
    background: white;
}

h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #111;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.description {
    text-align: left;
    color: #707072;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.5;
}

/* Rich text HTML element styling - minimal, preserve original design */
.description a {
    color: #667eea;
    text-decoration: underline;
}

.description b,
.description strong {
    font-weight: 600;
    color: #333;
}

.description em,
.description i {
    font-style: italic;
}

.description p {
    margin: 10px 0;
    line-height: 1.5;
}

.description p:first-child {
    margin-top: 0;
}

.description p:last-child {
    margin-bottom: 0;
}

.description ul,
.description ol {
    margin: 10px 0;
    padding-left: 25px;
    line-height: 1.5;
}

.description li {
    margin: 4px 0;
    line-height: 1.5;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #111;
    font-size: 14px;
    letter-spacing: 0;
}

.required {
    color: #111;
    margin-left: 2px;
    font-weight: 400;
}

.form-input,
select.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background: #fff;
    color: #111;
}

.form-input:hover {
    border-color: #8d8d8d;
}

.form-input:focus,
select.form-input:focus {
    outline: none;
    border-color: #111;
    background: #fff;
    box-shadow: none;
}

/* Date input styling */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #2c3e50;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #2c3e50;
}

.phone-input-group {
    display: flex;
    gap: 0;
    position: relative;
}

.country-code-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.custom-country-select {
    position: relative;
    height: 100%;
}

.country-select-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-right: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    color: #111;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 130px;
    height: 48px;
    font-family: inherit;
    width: 100%;
    justify-content: flex-start;
}

.country-select-button:hover {
    background: #f8f9fa;
    border-color: #8d8d8d;
}

.country-select-button:focus {
    outline: none;
    border-color: #111;
    background: #fff;
}

.custom-country-select.active .country-select-button {
    border-color: #111;
    background: #fff;
}

.country-flag {
    font-size: 18px;
    line-height: 1;
}

.country-code-text {
    font-weight: 500;
    color: #111;
}

.country-code-arrow {
    font-size: 10px;
    color: #666;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.custom-country-select.active .country-code-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d3d3d3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    display: none;
}

.custom-country-select.active .country-dropdown {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option.selected {
    background: #e8f0fe;
}

.country-option.selected:hover {
    background: #d2e3fc;
}

.option-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.option-code {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.country-option.selected .option-code {
    color: #1a73e8;
    font-weight: 500;
}

.phone-input-group .form-input {
    flex: 1;
}

.phone-input-group .form-input.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.phone-input-group .form-input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    padding: 0;
    transition: none;
    gap: 12px;
}

.checkbox-label:hover {
    background: transparent;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #000;
    border-radius: 0;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #111;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #333;
}

.submit-btn:active {
    background: #000;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #000;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-input.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1), 0 4px 12px rgba(231, 76, 60, 0.15);
}

.form-input.error + .error-message {
    display: block;
}

.alert {
    border-radius: 0;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid;
    background: #fff;
}

.alert-error {
    background: #fff;
    color: #d32f2f;
    border-color: #d32f2f;
}

.alert ul {
    margin-top: 10px;
}

/* Thank you page styles */
.thank-you-container {
    max-width: 700px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.thank-you-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.thank-you-header {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 24px 24px 0 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.thank-you-header .checkmark {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.thank-you-header .checkmark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thank-you-content {
    padding: 40px 40px 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.thank-you-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.thank-you-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    z-index: -2;
}

.thank-you-container h1 {
    color: #111;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.thank-you-container p {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 1px 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.checkmark {
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark img {
    max-width: 150px;
    width: auto;
    height: auto;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }
    
    .form-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .banner {
        max-height: 250px;
    }
    
    .banner img {
        max-height: 250px;
    }
    
    .form-wrapper {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 22px;
        text-align: center;
    }
    
    .event-category {
        margin-bottom: 16px;
    }
    
    .event-category span {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .form-input,
    select.form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .country-code-wrapper {
        width: 100%;
    }
    
    .country-select-button {
        width: 100%;
        border-right: 1px solid #d3d3d3;
        border-bottom: none;
        min-width: auto;
    }
    
    .country-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .phone-input-group .form-input {
        border-top: none;
        width: 100%;
    }
    
    .submit-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Tablet responsive design */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner {
        max-height: 350px;
    }
    
    .banner img {
        max-height: 350px;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .banner {
        max-height: 450px;
    }
    
    .banner img {
        max-height: 450px;
    }
}

/* Event category badge - Gemini styling */
.event-category {
    margin-bottom: 20px;
    text-align: center;
}

.event-category span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1a73e8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.15);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.event-category span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.event-category span:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-color: rgba(26, 115, 232, 0.3);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15);
    transform: translateY(-1px);
}

.event-category span:hover::before {
    left: 100%;
}
