/* Reset & Base Setup */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0B1F3A;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #334155;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0px;
}
/* Screen Reader Only (Bootstrap has this built-in as well, but redefined to ensure it works) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section Container */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.video-background video,
.video-background .fallback-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradients */
.overlay-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 144px;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.72) 0%, rgba(11, 31, 58, 0.42) 45%, rgba(11, 31, 58, 0.15) 75%, transparent 100%);
    pointer-events: none;
}

.overlay-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 192px;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 58, 0.15) 25%, rgba(11, 31, 58, 0.45) 55%, rgba(11, 31, 58, 0.80) 80%, rgba(11, 31, 58, 0.98) 100%);
    pointer-events: none;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jirs-logo {
    height: 30px; /* Adjust as needed */
    width: auto;
}

.years-badge {
    height: 60px; /* Adjust as needed */
    width: auto;
}

/* Main */
.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align right on desktop */
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.form-container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meritto-widget {
    width: 100%;
    /* Min height to avoid layout shift, meritto will fill this */
    min-height: 400px;
}

/* Signature */
.signature {
    margin-top: 0rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    text-align: center;
}

.sig-jirs {
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: 0.025em;
    color: #ffffff;
    flex-shrink: 0;
}

.sig-for-life {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 500;
    color: transparent;
    background-image: linear-gradient(
        to right,
        #D9A441,
        #F3D372,
        #D9A441
    );
    -webkit-background-clip: text;
    background-clip: text;

    /* Fix text clipping */
    display: inline-block;
    padding: 0 0.5rem 0.5rem 0.3rem;
    margin-left: 0;
    margin-bottom: -0.5rem;

    /* Prevent the glyph from being clipped */
    overflow: visible;
    white-space: nowrap;
    line-height: 1.2;
}
/* Footer */
.hero-footer {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #cbd5e1;
    font-size: 0.75rem;
}

.hero-footer p {
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-main {
        justify-content: center; /* Center on tablet/mobile */
        margin-top: 25vh; /* Push down to show background */
    }
}

@media (min-width: 768px) {
    .overlay-gradient-top {
        height: 176px;
    }
    .overlay-gradient-bottom {
        height: 240px;
    }
    .hero-content-wrapper {
        padding: 1.5rem 2.5rem;
    }
    .jirs-logo {
        height: 80px;
    }
    .years-badge {
        height: 90px;
    }
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        padding: 1.5rem 3.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-content-wrapper {
        padding: 1.5rem 5rem;
    }
}

/* Simple entry animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content-wrapper {
    animation: fadeIn 1s ease-out;
}

/* Meritto Form Styles */
.meritto-widget-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 1.5rem; /* 24px */
    padding: 0.625rem; /* 10px */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 20;
    color: #1e293b;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .meritto-widget-wrapper {
        padding: 0.875rem; /* 14px */
    }
}

.meritto-widget-inner {
    width: 100%;
    border-radius: 1rem; /* 16px */
    overflow: hidden;
    /* opacity: 0.70; */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    min-height: 546px;
    display: flex;
    align-items: center;
    justify-content: start;
    transition: opacity 0.3s ease;
}

.npf_wgts {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}
