/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0; /* Greyish background */
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.logo-animation {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

#logo-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: transparent !important;
}

.message {
    padding: 15px 20px 10px;
    margin-bottom: 0;
    text-align: justify;
    max-width: 750px;
    width: 100%;
    border-radius: 12px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    background-color: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(5px);
}

.message p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    text-align: justify;
    text-align-last: center;
}

.bold-text {
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.form-container {
    padding: 10px 20px 15px;
    width: 100%;
    max-width: 750px;
    border-radius: 12px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    background-color: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(5px);
}

form h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
    box-sizing: border-box;
}

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

.checkbox label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

button {
    background-color: #133b85;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    min-width: 180px;
    box-sizing: border-box;
}

button:hover {
    background-color: #0e2d66;
}

/* Text change animation */
button {
    position: relative;
}

button span {
    display: inline-block;
    transition: all 0.3s ease;
}

button .default-text {
    opacity: 1;
}

button .hover-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
}

button:hover .default-text {
    opacity: 0;
    transform: translateY(-10px);
}

button:hover .hover-text {
    opacity: 1;
    transform: translateY(0);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

.footer-left {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-right: 30px;
    color: #777;
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin: 0 30px;
}

.footer-right {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-left: 30px;
    color: #777;
}

a {
    color: #4a90e2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Remove link styles from footer email */
.footer-right {
    color: #777;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .logo-animation {
        max-width: 100%;
    }

    .message {
        margin-top: -40px;
        padding: 15px 15px 10px;
    }

    .message p {
        font-size: 16px;
    }

    .form-container {
        padding: 10px 15px;
    }

    .form-row {
        flex-direction: row;
    }

    .footer-logo {
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .message {
        margin-top: -30px;
        padding: 12px 12px 8px;
    }

    .message p {
        font-size: 15px;
        line-height: 1.4;
    }

    .form-container {
        padding: 8px 12px;
    }

    input[type="email"] {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    button {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
    }

    .footer-left, .footer-right {
        font-size: 12px;
    }

    .footer-logo {
        height: 50px;
        margin: 0 15px;
    }
}
