:root {
    --overlay-opacity: 0.82;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.container * {
    box-sizing: border-box;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vh;
    height: 50vh;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    z-index: 2;
    backface-visibility: hidden;
    will-change: transform, opacity, width, height;
    animation: logoIntro 2.3s ease-in forwards;
    filter: none;
    mix-blend-mode: normal;
}

@keyframes logoIntro {
    0% {
        width: 80vh;
        height: 80vh;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        width: 50vh;
        height: 50vh;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(15deg);
    }
    90% {
        width: 100vmax;
        height: 100vmax;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(630deg);
    }
    100% {
        width: 110vmax;
        height: 110vmax;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(720deg);
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: rgba(1, 0, 50, var(--overlay-opacity));
    animation: overlayFadeIn 1s ease-in forwards;
    animation-delay: 0.8s;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

.form-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    will-change: transform, opacity;
    opacity: 0;
}

.form-container {
    width: 520px;
    max-width: 88vw;
    background: #ffffff;
    color: #111;
    padding: 22px 22px 24px;
    border-radius: 20px; /* final corner softness */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35),
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-radius 180ms linear;
}

.form-container input {
    width: 100%;
    padding: 12px 12px;
    margin: 10px 0;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fafafa;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.form-container input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    background: #fff;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: transform .06s ease, background .2s ease;
}
#submitBtn{
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 12px;
}

.form-container button:active {
    transform: translateY(1px);
}

.form-container button:hover {
    background: #333;
}

.form-heading {
    display: flex;
    gap: 0.54em;
    align-items: center;
}

.form-heading h3 {
    margin: 0;
}

.form-heading p{
    padding: 0;
}

.envelope {
    width: 32px;
    height: 32px;
    fill: none;
}

.hint {
    font-size: 12px;
    color: #888;
}

.error {
    color: #b00020;
}

.success {
    color: #2e7d32;
}

.progress {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0 0;
}

.progress > div {
    height: 100%;
    width: 0;
    background: #4a90e2;
    transition: width .1s linear;
}
/* Brand bar with centered logo and lines on both sides (with a slight gap) */
.form-brand {
    display: flex;                   /* switch to flex to allow before/after side lines */
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    position: relative;
}

.form-brand::before,
.form-brand::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;                  /* stretch the lines to the sides */
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18), transparent);
}

/* Use a reversed gradient on the right if you want symmetric fade (optional) */
.form-brand::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18), transparent);
}

/* Larger logo with a small gap to the side lines */
.form-brand__logo {
    height: 120px;
    width: 120px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    margin: 0 12px;                  /* the "slight gap" between logo and the lines */
    z-index: 1;
}

/* Divider element no longer used */
.form-brand__divider {
    display: none !important;
}

/* Thank-you view */
.thankyou {
    display: none;
    text-align: center;
    padding: 8px 10px 4px;
    animation: tyFade .5s ease-out both;
}
.thankyou__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(46,125,50,0.25);
}
.thankyou__title {
    margin: 6px 0 4px;
}
.thankyou__msg {
    margin: 0 0 8px;
    color: #555;
    font-size: 0.95rem;
}
@keyframes tyFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Toggle: when thank-you is shown, hide the form fields */
.form-container.show-thanks .form-body { display: none; }
.form-container.show-thanks .thankyou { display: block; }