* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #000000 url("./assets/Premium_Booth_Background.webp") no-repeat center center/cover;
    font-family: "Poppins", sans-serif;
}



/** Top Bar Styling */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 100;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/** Container Styling */
.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem; /* Offset for fixed top bar */
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 212, 255, 0) 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 1) 2%, rgba(0, 212, 255, 0) 32%);
    z-index: -1;
}

/** Form Styling */
.form-container {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background: linear-gradient(147deg, rgb(33 31 31 / 29%) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to left, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14));
    border: 0.97px solid rgb(225 225 225 / 65%);
    border-radius: 20px;
    border-right: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 10;
    /* animation: zoomIn 0.8s ease-in forwards; */
}

.form-container-box {
    position: relative;
}

.decor {
    position: absolute;
    width: 126px;
    z-index: 0;
}

.decor-top-right {
    top: -50px;
    right: -50px;
}

.decor-bottom-left {
    bottom: -50px;
    left: -50px;
}

.form-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin-bottom: 40px;
}

.form-logo {
    margin-top: 40px;
    width: 40%;
    max-width: 205.9px;
    height: 104px;
    object-fit: contain;
}

.welcome-text {
    color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.form-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

.name-fields {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    background: transparent;
    border-radius: 5px;
    border: 0.7px solid rgba(255, 255, 255, 0.65);
    padding: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    min-width: 0;
}

.input-field:focus {
    outline: none;
    border-color: #ffffff;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
}

.terms {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: rgba(118, 58, 245, 1);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}

.checkbox:hover {
    border-color: #ffffff;
}

.checkbox:checked {
    background: #03794d;
    border-color: #2dc38c;
}

.checkbox:checked::before {
    content: "\2713";
    display: block;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
}

.terms-text {
    color: #ffffff;
    font-size: 15px;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg,
            rgba(118, 58, 245, 1) 0%,
            rgba(166, 4, 242, 1) 100%);
    border-radius: 5px;
    padding: 0.75rem;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: bolder;
    border: none;
    cursor: pointer;
    transition: transform 0.5s;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: scale(1.02);
}

.status-message {
    color: #f87171;
    text-align: center;
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

.copyright {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: #ffffff;
    font-size: 16px;
    opacity: 0.5;
}

.copyright p {
    margin: 0;
}



@keyframes floatDown {
  0% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(-15px);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(15px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(15px);
  }
}

/* Apply animations to the decorative elements */
.decor-top-right {
  animation: floatDown 6s ease-in-out infinite;
}

.decor-bottom-left {
  animation: floatUp 6s ease-in-out infinite;
}


/** Animation */
/* @keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} */

/** Responsive Design */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.5rem 1rem;
    }
    .logo {
        width: 150px;
    }
    .container {
        padding: 1rem;
        padding-top: 4rem;
    }
    .form-container {
        padding: 1rem;
        max-width: 100%;
    }
    .name-fields {
        flex-direction: column;
    }
    .welcome-text {
        font-size: 1.25rem;
    }
    .input-field {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    .submit-btn {
        font-size: 1rem;
        padding: 1rem;
    }
    .terms-text {
        font-size: 0.875rem;
    }
    .checkbox {
        width: 1.5rem;
        height: 1.5rem;
    }
    .form-fields {
        padding-left: 15px;
        padding-right: 15px;
        gap: 20px;
    }
    .form-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    .form-logo {
        margin-top: 20px;
        height: 80px;
    }
    .decor {
        width: 80px;
    }
    .decor-top-right {
        top: -30px;
        right: -30px;
    }
    .decor-bottom-left {
        bottom: -30px;
        left: -30px;
    }
    .copyright {
        font-size: 12px;
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 1.5rem;
    }
    .logo {
        width: 180px;
    }
    .container {
        padding-top: 4.5rem;
    }
    .form-container {
        padding: 1.25rem;
        max-width: 80%;
    }
    .welcome-text {
        font-size: 1.5rem;
    }
    .input-field {
        font-size: 1rem;
    }
    .submit-btn {
        font-size: 1.125rem;
    }
    .terms-text {
        font-size: 1rem;
    }
    .decor {
        width: 100px;
    }
    .decor-top-right {
        top: -40px;
        right: -40px;
    }
    .decor-bottom-left {
        bottom: -40px;
        left: -40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .form-container {
        max-width: 600px;
    }
    .logo {
        width: 200px;
    }
}

/** Adjust for short screens (e.g., landscape mode) */
@media (max-height: 600px) {
    .form-container {
        padding: 1rem;
    }
    .form-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    .form-logo {
        margin-top: 20px;
        height: 80px;
    }
}

