/* Base Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333333; /* Default dark background, might be overridden by sections */
    color: #333333; /* Default text color for paper content */
    min-height: 100vh;
    font-size: 120%; /* Increase base font size by 20% */
    /* overflow: hidden; Initially hide scrollbars, JS will manage */
}

#pdf-viewer-header {
    background-color: #383838; /* Slightly adjusted dark grey for header */
    color: #E0E0E0; /* Light grey text for header */
    padding: 0 18px; /* Padding on the sides */
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    display: flex; /* Main layout strategy */
    align-items: center; /* Vertically align items */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    font-size: 0.9em;
    border-bottom: 1px solid #222222;
    /* GSAP will control Y transform */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1; /* Grow to take available space */
    min-width: 0; /* Allow shrinking if its content is too wide */
}

#pdf-filename-display {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 12px; /* Scaled (10px*1.2) */
    max-width: 300px; /* Added max-width to prevent pushing middle too much */
}

.header-middle {
    display: flex;
    align-items: center;
    justify-content: center; /* Center its children: page-controls, divider, zoom-controls */
    gap: 12px; /* Gap between its children */
    flex-shrink: 0; /* Prevent this section from shrinking */
    /* No flex-grow, so it takes its natural width */
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* .zoom-divider doesn't need specific flex properties here, it will be centered by the flex:1 on siblings */

.zoom-divider {
    width: 1px;
    height: 24px; /* Scaled (20px*1.2) */
    background-color: #555555;
    /* margin: 0 12px; Is now handled by parent gap */
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align its own content (icons) to the right */
    gap: 18px;
    flex: 1; /* Grow to take available space */
    min-width: 0; /* Allow shrinking */
}

.header-icon {
    cursor: pointer;
    padding: 6px; /* Scaled (5px*1.2) */
    font-size: 1.3em; /* Larger icons */
    color: #B0B0B0; /* Slightly dimmer icons */
}

.header-icon:hover {
    color: #E0E0E0; /* Brighter on hover */
}

.page-number-input {
    width: 36px; /* Scaled (30px*1.2) */
    text-align: center;
    background-color: #2C2C2C;
    color: #E0E0E0;
    border: 1px solid #444444;
    border-radius: 4px; /* Scaled (3px*1.2) */
    padding: 4px; /* Scaled (3px*1.2) */
    font-size: 0.9em;
}

.page-total, .zoom-level {
    color: #E0E0E0;
    font-size: 0.9em;
    margin: 0 6px; /* Scaled (5px*1.2) */
}

#pdf-view-wrapper {
    min-height: 100vh; /* Ensure it takes at least full viewport height */
    background-color: #525252; /* Matches old viewer-chrome bg */
    position: relative; /* For z-index stacking if needed later, and for header to scroll over */
    z-index: 1; /* Lower than header if header needs to scroll "over" then away */
}

#viewer-chrome {
    /* Removed position:fixed, it's part of the wrapper now */
    width: 100%;
    min-height: 100vh;
    background-color: #525252; /* Chrome PDF viewer-like background */
    padding-top: 84px; /* Header height (60px) + scaled breathing room (24px) */
    padding-bottom: 48px; /* Scaled (40px*1.2) */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%; /* Ensure it can contain the PDF max-width */
}

/* Simulated PDF Styling */
#pdf-container {
    background-color: #FFFFFF;
    padding: 36px 48px; /* Scaled (30px 40px * 1.2) */
    max-width: 960px; /* Scaled (800px*1.2) */
    min-height: 90vh; /* Or set a specific height if preferred */
    border: 1px solid #CCCCCC;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2); /* Scaled (5px 15px * 1.2) */
    width: 100%; /* To respect max-width from parent */
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif; /* Default font for paper */
    color: #333333; /* Default text color for paper */
}

#pdf-container h1 { /* Main Title */
    font-family: 'Times New Roman', Times, serif;
    color: #000000; /* Black for headings on white paper */
    text-align: center;
    font-size: 24pt; /* Scaled (20pt*1.2) */
    font-weight: bold;
    margin-top: 12px; /* Scaled (10px*1.2) */
    margin-bottom: 30px; /* Scaled (25px*1.2) */
}

.abstract-section {
    margin-bottom: 30px; /* Scaled (25px*1.2) */
}

.main-content-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Distribute space between columns */
    gap: 36px; /* Scaled (30px*1.2) */
}

.left-column-content,
.right-column-content {
    flex-basis: 0;
    flex-grow: 1;
    /* Each column will take up roughly half the space minus the gap */
}

.left-column-content p,
.right-column-content p {
    text-align: justify;
}

#pdf-container .abstract-section p { /* Targeting paragraph within abstract for specific styling */
    font-family: 'Times New Roman', Times, serif;
    text-align: justify;
    line-height: 1.4; /* Slightly tighter for abstract */
    color: #333333; /* Dark grey text on white paper */
    margin-bottom: 0; /* No bottom margin for the abstract para itself */
    font-size: 12pt; /* Scaled (10pt*1.2) */
}

#pdf-container .abstract-section p strong { /* "Abstract:" label */
    font-weight: bold;
    color: #000000;
    font-size: 13pt; /* Scaled (11pt*1.2, rounded) */
}

#pdf-container p { /* General paragraph styling within PDF */
    font-family: 'Times New Roman', Times, serif;
    /* text-align: justify; Already handled by .left-column-content p etc. for main content */
    line-height: 1.5; 
    color: #333333; 
    margin-bottom: 10px; /* Scaled (8px*1.2, rounded) */
    font-size: 12pt; /* Scaled (10pt*1.2) */
}

.section-header {
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
    font-size: 14pt; /* Scaled (12pt*1.2, rounded) */
    font-weight: bold;
    margin-top: 24px; /* Scaled (20px*1.2) */
    margin-bottom: 10px; /* Scaled (8px*1.2, rounded) */
}

.figure-block {
    width: 100%; 
    margin: 0 0 1.2em 0; /* Scaled (1em*1.2) */
    line-height: 1.3;
}

.figure-block img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    margin-bottom: 6px; /* Scaled (5px*1.2) */
}

.figure-caption {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt; /* Scaled (9pt*1.2, rounded) */
    color: #555555;
    text-align: left; /* Captions usually left-aligned */
    line-height: 1.3;
}

/* Ensure elements like math and pseudocode don't get split into columns */
.math-equation,
.pseudocode-block {
    /* column-span: all; Not needed with flexbox structure */
    margin-top: 1.2em; /* Scaled (1em*1.2) */
    margin-bottom: 1.2em; /* Scaled (1em*1.2) */
}

.math-equation {
    display: block;
    text-align: center;
    font-family: 'Latin Modern Math', 'Cambria Math', 'Times New Roman', Times, serif;
    font-size: 1.15em; /* This will scale with body font */
    margin: 30px auto; /* Scaled (25px*1.2) */
    padding: 18px; /* Scaled (15px*1.2) */
    border: 1px solid #e0e0e0;
    background-color: #fdfdfd;
    max-width: 80%; /* Prevent very wide equations on large screens */
    overflow-x: auto; /* Scroll if equation is too wide */
}

.pseudocode-block {
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    padding: 12px 18px; /* Scaled (10px 15px * 1.2) */
    margin: 18px 0; /* Scaled (15px*1.2) */
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.8em; /* This will scale relative to its parent font (now 12pt base) */
    overflow-x: auto;
    border-radius: 4px; /* Scaled (3px*1.2) */
}

.pseudocode-caption {
    font-weight: bold;
    margin-bottom: 10px; /* Scaled (8px*1.2) */
    font-family: 'Times New Roman', Times, serif;
    color: #333333;
    font-size: 0.95em; /* This will scale relative to its parent font */
}

.pseudocode-block pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap; /* Wrap lines but preserve formatting */
    line-height: 1.4;
}

.pseudocode-block code {
    font-family: inherit; /* Inherit from pre for consistency */
    color: #111111;
}

/* Simulated Mouse Cursor Styling */
#simulated-cursor {
    width: 26px; /* Scaled (22px*1.2) */
    height: 26px; /* Scaled (22px*1.2) */
    background-image: url('macos_cursor.png'); /* REPLACE with actual path to your cursor image */
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent; /* Ensure no CSS background color interferes */
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
    /* Remove transform and border-radius if using an image that has its own shape */
    /* transform: rotate(-45deg); */ 
    /* transform-origin: top left; */
    transition: top 0.15s ease-out, left 0.15s ease-out;
}

/* Keystroke Display Styling - Revamped */
#keystroke-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(204, 204, 204, 0.9); /* #CCCCCC with some transparency */
    padding: 30px 42px; /* Scaled (25px 35px * 1.2) */
    border-radius: 12px; /* Scaled (10px*1.2) */
    box-shadow: 0 6px 24px rgba(0,0,0,0.25); /* Scaled (5px 20px * 1.2) */
    z-index: 1005; /* Above most things */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222222;
    display: flex; /* For aligning keys */
    align-items: center;
    gap: 12px; /* Scaled (10px*1.2) */
    font-size: 2.5em; /* This will scale with body font */
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Initially not interactive */
    transition: opacity 0.3s ease-out; /* Add transition for opacity */
}

#keystroke-display.active {
    opacity: 1;
    pointer-events: auto;
}

#keystroke-display .key {
    background-color: #FFFFFF;
    border: 1px solid #BBBBBB;
    padding: 14px 24px; /* Scaled (12px 20px * 1.2) */
    border-radius: 7px; /* Scaled (6px*1.2) */
    box-shadow: 0 4px 4px rgba(0,0,0,0.15); /* Scaled (3px 3px * 1.2) */
    color: #444444;
    opacity: 0; /* Hidden for animation */
    transform: translateY(12px); /* Scaled (10px*1.2) */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#keystroke-display .plus {
    opacity: 0;
    transform: translateY(12px); /* Scaled (10px*1.2) */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    margin: 0 6px; /* Scaled (5px*1.2) */
}

/* Classes to trigger key animation */
#keystroke-display .key.visible,
#keystroke-display .plus.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation Styling */
#loading-animation {
    width: 48px; /* Scaled (40px*1.2) */
    height: 48px; /* Scaled (40px*1.2) */
    border: 5px solid #AAAAAA; /* Scaled (4px*1.2) */
    border-top: 5px solid #EEEEEE; /* Scaled (4px*1.2) */
    border-radius: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -24px; /* Scaled (-20px*1.2) */
    margin-top: -24px; /* Scaled (-20px*1.2) */
    z-index: 1001;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Highlighting Styling */
.highlighted {
    background-color: #ADD8E6; /* Light blue, common selection color */
    color: #000000; /* Black text on highlight for contrast */
    /* Ensure smooth highlight over spaces if words are wrapped in individual spans */
    /* display: inline-block; // Can sometimes help, but often not needed if spans are tight */
    padding: 0.05em 0; /* Minimal vertical padding to make highlight slightly thicker */
    margin: -0.05em 0; /* Counteract padding for layout */
}

/* Style for individual words if needed, though .highlighted on the word span is primary */
.highlight-word {
    display: inline; /* Ensure words flow correctly */
}

/* Popup/Modal Styling */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0); /* Make backdrop transparent for this style */
    z-index: 1002;
    /* display: flex; justify-content: center; align-items: center; // No longer needed for centering */
}

#modal-content {
    position: absolute; /* Positioned by JavaScript */
    background-color: #FFFFFF;
    color: #333333;
    padding: 24px 30px; /* Scaled (20px 25px * 1.2) */
    border-radius: 10px; /* Scaled (8px*1.2) */
    /* border: 1px solid #BBBBBB; // Shadow is primary visual cue */
    box-shadow: 0 5px 14px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1); /* Scaled */
    max-width: 384px; /* Scaled (320px*1.2) */
    text-align: left;
    opacity: 0; /* Initially hidden, faded in by JS if desired */
    transition: opacity 0.2s ease-in-out, top 0.2s ease-out, left 0.2s ease-out;
    /* Remove transform for centering, as it will be absolutely positioned */
}

/* Callout triangle for the modal */
#modal-content::before {
    content: '';
    position: absolute;
    top: 24px; /* Scaled (20px*1.2) */
    left: -12px; /* Scaled (-10px*1.2) */
    width: 0;
    height: 0;
    border-top: 12px solid transparent; /* Scaled (10px*1.2) */
    border-bottom: 12px solid transparent; /* Scaled (10px*1.2) */
    border-right: 12px solid #FFFFFF; /* Scaled (10px*1.2) */
    /* Add shadow to the callout too if desired, can be tricky */
}

#modal-content p {
    margin: 0 0 18px 0; /* Scaled (15px*1.2) */
    line-height: 1.6;
    font-size: 0.9em; /* Relative to modal's font if set, or body */
    max-height: 40vh; /* New: constrain modal text height */
    overflow-y: auto; /* New: add scrollbar within modal text if needed */
}

#modal-content p strong {
    color: #000000;
    display: block;
    margin-bottom: 10px; /* Scaled (8px*1.2) */
    font-size: 1.1em; /* This will scale with parent */
}

#modal-close-btn {
    display: block;
    margin: 0 auto; /* Center the button */
    padding: 10px 30px; /* Scaled (8px 25px * 1.2) */
    font-size: 0.9em; /* This will scale with parent */
    font-weight: bold;
    color: #FFFFFF;
    background-color: #AAAAAA; /* A grey from palette */
    border: none;
    border-radius: 6px; /* Scaled (5px*1.2) */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#modal-close-btn:hover {
    background-color: #999999;
}

/* New "Close Hint" Callout Styling */
#close-hint-callout {
    /* Inherits from .sliding-callout-style */
}

#what-is-callout {
    top: 32%; /* Position for the first callout */
}

#how-to-callout {
    top: 44%; /* Position for the second callout */
}

#welcome-callout {
    top: 20%; /* Position for the welcome callout */
}

#close-hint-callout {
    top: 56%; /* Position for the close hint callout */
}

.sliding-callout-style {
    position: fixed;
    left: 20px; /* Position on screen for fade-in */
    background-color: #DDDDDD;
    color: #333333;
    padding: 24px 30px; /* Scaled (20px 25px * 1.2) */
    border-radius: 10px; /* Keep the existing border-radius */
    box-shadow: 0 5px 14px rgba(0,0,0,0.15); /* Scaled */
    z-index: 1006; 
    opacity: 0; /* Start fully transparent */
    transition: opacity 0.5s ease-in-out; /* Transition for fade effect */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transform: translateY(-50%); /* Center vertically relative to their top position */
}

.sliding-callout-style.visible {
    opacity: 1; /* Fade in */
}

.sliding-callout-style p {
    margin: 0; /* Reset paragraph margin */
    font-size: 1em; 
    font-weight: bold; 
    white-space: nowrap; 
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Ensure visibility for elements that are initially shown if needed */
/* (Most are hidden by default via JS in this case) */ 

/* New Fullscreen Section Styling */
#flow-everywhere-section {
    width: 100%;
    min-height: 100vh; /* Use min-height for full screen feel */
    background-color: #FFFFFF;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px; /* Add some padding */
    box-sizing: border-box;
    position: relative; /* For z-index stacking context */
    z-index: 2; /* Higher than pdf-view-wrapper */
}

.flow-content {
    max-width: 800px;
    padding: 20px;
}

.flow-content h1 {
    font-size: 3.5em; /* Bold and big */
    margin-bottom: 0.5em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    color: #222222; /* Slightly darker for heading */
}

.flow-content p {
    font-size: 1.6em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #444444;
}

/* Ensure the last paragraph in flow-content has no bottom margin */
.flow-content p:last-child {
    margin-bottom: 0;
}

#scroll-indicator {
    position: absolute;
    bottom: 20px; /* Moved down a bit */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    color: #666666; /* Subtler color */
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#scroll-indicator span {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

#scroll-indicator .arrow {
    font-size: 1.8em;
    line-height: 1;
    /* animation: bounceArrow 2s infinite; Removed from here */
}

#scroll-indicator:hover > span { /* Target all direct span children on hover */
    animation: bounceArrow 2s infinite; /* Apply animation on hover */
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Features Section Styling */
#features-section {
    width: 100%;
    height: 100vh; /* Changed from 300vh */
    background-color: #4F4F4F; 
    color: #FFFFFF; 
    padding: 0; 
    box-sizing: border-box;
    overflow: hidden; 
    position: relative; /* Crucial for pinning and absolute positioning of children */
    z-index: 2;
}

.feature-item {
    /* min-height: 100vh; No longer needed, height is 100vh and parent gives scroll room */
    width: 100%; 
    height: 100vh; /* Each item is viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding: 40px 60px; 
    box-sizing: border-box;
    text-align: left; 
    opacity: 0; /* Initial state for GSAP */
    /* transform: translateY(30px); GSAP will handle entrance, possibly from different direction or just fade */
    position: absolute; /* Positioned within #features-section */
    top: 0;
    left: 0;
}

.feature-item .feature-content-wrapper { 
    max-width: 750px; 
    width: 100%;
}

.feature-item h2 {
    font-size: 2.4em; 
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    color: #FFFFFF; 
    margin-bottom: 0.6em;
}

.feature-item p {
    font-size: 1.4em; 
    line-height: 1.7;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #E0E0E0; 
}

.feature-item p .feature-summary {
    display: block; 
    color: #FFFFFF; 
    font-weight: 500; 
    margin-bottom: 0.4em; 
}

.feature-item p .feature-detail {
    display: block; 
    color: #B8B8B8; 
    font-size: 0.95em; 
    line-height: 1.6;
}

/* CTA Section Styling */
#cta-section {
    width: 100%;
    min-height: 100vh;
    background-color: #FFFFFF;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative; /* For z-index stacking context */
    z-index: 2;
}

.cta-content {
    max-width: 700px;
}

.cta-main-text {
    font-size: 2em; /* Big black text */
    font-weight: bold;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 40px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#cta-section h3 {
    font-size: 1.8em;
    color: #222222;
    margin-bottom: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.cta-sub-text {
    font-size: 1.2em;
    color: #555555; /* Grey small text */
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* CTA Section - Enhanced Form Styling */
#cta-section .cta-content h2 {
    font-size: 2.5em; /* Existing or adjust */
    color: #222222;
    margin-bottom: 1em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#cta-section .cta-content p.form-intro-text { /* Add a class for intro text if you have one, or style existing p */
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 1.5em;
    line-height: 1.6;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#notify-form {
    display: flex;
    flex-direction: column; /* Stack input and button vertically on small screens */
    align-items: center; /* Center items when stacked */
    gap: 15px;
    width: 100%;
    max-width: 450px; /* Control max width of the form */
    margin: 0 auto; /* Center the form block itself */
}

#email-input {
    padding: 15px 20px;
    font-size: 1.1em;
    border: 1px solid #CCCCCC;
    border-radius: 8px; /* Slightly more rounded */
    width: 100%; 
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#email-input:focus {
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
    outline: none;
}

#notify-form button[type="submit"] {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #333333; /* Dark button */
    border: none;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%; /* Full width in stacked layout */
}

#notify-form button[type="submit"]:hover {
    background-color: #555555;
}

#notify-form button[type="submit"]:active {
    transform: translateY(1px);
}

/* Optional: For side-by-side layout on wider screens if desired later */
/* @media (min-width: 480px) {
    #notify-form {
        flex-direction: row; 
    }
    #email-input {
        flex-grow: 1; 
    }
    #notify-form button[type="submit"] {
        width: auto; 
    }
} */

#thank-you-section {
    height: 100vh;
    background-color: #f0f0f0; /* Light grey, or choose another color */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.thank-you-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Make sure other full-height sections don't cause overflow issues if not already handled */
body, html {
    overflow-x: hidden; /* Prevent horizontal scroll on the whole page */
}

/* CTA Logo */
.cta-logo {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 300px; /* Adjust as needed */
    height: auto;
}

/* Mini App Logo */
#mini-app-logo {
    position: fixed;
    bottom: 0; /* Adjusted for snug fit */
    right: 0; /* Adjusted for snug fit */
    width: 200px; /* Adjust for desired size */
    height: auto;
    z-index: 1999; /* Below header/modals but above most content */
    opacity: 1;
    transition: opacity 0.3s ease;
}

#mini-app-logo:hover {
    opacity: 1;
}

/* Custom Thank You Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2050; /* Above other modals if any, but below critical system UI */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.custom-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.custom-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.custom-modal-content {
    position: relative;
    background-color: #FFFFFF; /* Light background for the modal */
    color: #333333; /* Dark text for readability */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    z-index: 1; /* Above backdrop */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-modal.visible .custom-modal-content {
    transform: scale(1);
}

.custom-modal-logo {
    max-width: 100px; /* Adjust as needed */
    margin-bottom: 20px;
}

.custom-modal-content h2 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.8em;
    color: #222222;
    margin-top: 0;
    margin-bottom: 15px;
}

.custom-modal-content p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1em;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 0;
}

.custom-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    color: #AAAAAA;
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-modal-close-btn:hover {
    color: #333333;
}

/* Utility .hidden class if still used elsewhere, ensure it doesn't conflict */
/* .hidden { display: none !important; } */ 