/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: url('../assets/images/backgrounds/quant_trading_background_4f.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Main Container */
.container {
    max-width: 650px;
    margin: 20px auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* Avatar and Logo */
.avatar {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
}

.logo {
    width: 280px;
    display: block;
    margin: 10px auto 0px auto;
    opacity: 0.9;
}

p.subtext {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    margin-top: 10px;
}

.disclaimer-small {
    color:#ccc; 
    font-size:13px;
    text-align:center;
    margin-top:8px;
}

/* HERO SECTION */
.hero-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.hero-headline {
    color: #ffffff;
    font-size: 67px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    text-align: center;
    margin-top: 5px;
}

.hero-subtext {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.5;
    max-width: 850px;
    margin: 0 auto 12px auto;
}

.hero-subtext-center {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.5;
    max-width: 850px;
    margin: 0 auto 12px auto;
    text-align: center;
}

/* CHART & FORM ALIGNMENT */
.section-aligned {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Chart Caption */
.chart-caption {
    color: #ffffff;
    font-size: 24px;
    margin-top: 8px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Chart Caption */
.chart-caption-disclaimer {
    color: #ffffff;
    font-size: 16px;
    margin-top: 8px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.3px;
}


.section-aligned img {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
}

/* Chart lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease-in-out;
}

.lightbox img:hover {
    transform: scale(1.02);
}

/* Smooth fade */
.lightbox.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* FORM STYLES */
.quantboys-form {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.quantboys-input {
    background-color: black;
    color: white;
    font-size: 22px;
    /* larger text */
    border: 3px solid white;
    padding: 16px 18px;
    /* taller input height */
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    margin: 12px auto 22px auto;
    /* clean centering + spacing */
    display: block;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

/* Focus state */
.quantboys-input:focus {
    border-color: #4ec3ff;
    box-shadow: 0 0 20px rgba(78, 195, 255, 1);
    outline: none;
}

/* Placeholder styling */
.quantboys-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    letter-spacing: 0.3px;
}

/* Optional: visual state for completed fields */
.quantboys-input.filled {
    border-color: #0000dd;
    /* neon aqua green */
    box-shadow: 0 0 15px rgba(0, 255, 178, 0.9);
    transition: all 0.4s ease-in-out;
}


/* Form Headline */
.form-headline {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 36px auto 30px auto;
    line-height: 1.4;
    max-width: 800px;
}


/* Honeypot Field (Bot Trap) */
.hidden-bot-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
}


.btn {
    display: block;
    width: 90%;
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
    border: 2px solid white;
    transition: all 0.3s ease-in-out;
    font-size: 22px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.6);
}

.btn.primary {
    background: rgba(0, 122, 255, 0.6);
    border-color: white;
    font-size: 32px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.6);
}

.btn.primary:hover {
    background-color: rgba(0, 122, 255, 1);
    transform: scale(1.05);
}

/* FOOTER COPY */
.footer-copy {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.5;
    max-width: 900px;
    font-weight: 600;
    margin: 40px auto;
    text-align: center;
}

/* SPACING UTILITY */
.bottom-spacing {
    height: 400px;
    width: 100%;
}


/* RPQ Footer Styles */
.rpq-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.rpq-footer-links {
    margin-bottom: 20px;
}

.rpq-footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.rpq-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.rpq-footer-text {
    max-width: 800px;
    margin: 0 auto 25px auto;
    text-align: center;
}

.rpq-footer-text p {
    margin-bottom: 16px;
}

.rpq-footer-copy {
    font-size: 13px;
    color: #777;
}


/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 40px;
        line-height: 1.2;
        text-align: center;
    }

    .hero-subtext,
    .hero-subtext-center,
    .footer-copy {
        font-size: 18px;
        text-align: center;
        max-width: 95%;
    }

    .logo {
        width: 220px;
    }

    .avatar {
        width: 160px;
        height: 160px;
    }

    .chart-caption {
        font-size: 18px;
        line-height: 1.4;
        margin-top: 6px;
    }

    .chart-caption-disclaimer {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 6px;
        padding: 0 10px;
        /* adds breathing room so text doesn’t hit screen edges */
    }

    .rpq-footer {
        padding: 30px 16px;
        font-size: 13px;
        line-height: 1.5;
    }

    .rpq-footer-links {
        margin-bottom: 16px;
    }

    .rpq-footer-links a {
        font-size: 13px;
        margin: 0 6px;
    }

    .rpq-footer-text {
        max-width: 95%;
        margin: 0 auto 20px auto;
        text-align: left;
    }

    .rpq-footer-text p {
        margin-bottom: 14px;
    }

    .rpq-footer-copy {
        font-size: 12px;
        color: #888;
    }

    .rpq-footer-text {
        text-align: center;
    }
}

/* MOBILE IMPROVEMENTS */
@media (max-width: 480px) {

    /* Reduce overall container spacing for smaller screens */
    .container {
        margin: 30px auto;
        padding: 0 10px;
    }

    /* Slightly smaller headline for narrow phones */
    .hero-headline {
        font-size: 32px;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Tighten up the subtext */
    .hero-subtext {
        font-size: 18px;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 30px;
    }

    /* Chart should fit snugly without forcing horizontal scroll */
    .section-aligned img {
        border-radius: 8px;
    }

    /* Form field spacing and width adjustments */
    .quantboys-input {
        width: 95%;
        font-size: 18px;
        padding: 10px;
    }

    .btn {
        width: 95%;
        font-size: 20px;
        padding: 14px;
    }

    /* Subtext and footer readability */
    p.subtext {
        font-size: 20px;
    }

    .footer-copy {
        font-size: 16px;
        text-align: center;
        margin: 20px auto 40px auto;
    }

    .chart-caption {
        font-size: 16px;
        line-height: 1.3;
    }

    .chart-caption-disclaimer {
        font-size: 12px;
        line-height: 1.3;
        padding: 0 12px;
    }

    .rpq-footer {
        padding: 25px 14px;
        font-size: 12px;
    }

    .rpq-footer-links a {
        display: inline-block;
        margin: 0 4px;
    }

    .rpq-footer-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .rpq-footer-copy {
        font-size: 11px;
        color: #777;
    }
}