/* AI Options Scout - Styles */

/* 1. Full Page Container - STRICT NO SCROLL */
.aos-wrapper {
    /* BREAKOUT HACK for Wordpress Themes */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    height: auto;
    min-height: 100vh;
    padding: 50px 2vw;

    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #0a0a0a;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    /* overflow: hidden; REMOVED to allow browser scroll */
}

/* 2. Slide Wrapper */
.aos-slide {
    width: 100%;
    max-width: 1600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aos-title {
    color: #cfb53b;
    text-align: center;
    margin: 0 0 0.5vh 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.aos-subtitle {
    text-align: center;
    color: #fff;
    margin: 0 0 1vh 0;
    font-size: 1rem;
}

/* 3. Landing Grid */
#aos-landing {
    padding: 20px 2vw;
    justify-content: flex-start;

    /* Removed scroll & layout hacks */
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    height: auto;
    max-height: none;
}

.aos-landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 */
    gap: 5vw;
    align-items: start;
    width: 100%;
    margin-bottom: 4vh;
}

.aos-col-left {
    padding-right: 1vw;
}

.aos-lead-gate-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 5vh 3vw;
    /* Increased padding slightly */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aos-gate-header h3 {
    color: #cfb53b;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.aos-gate-header p {
    color: #fff;
    margin-bottom: 20px;
}

/* 4. Results Page */
#aos-results {
    width: 100%;
    padding: 20px 2vw;

    overflow: visible;
    height: auto;
    max-height: none;

    /* Ensure it's a proper flex container */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Invisible Scrollbar Styling */
#aos-results::-webkit-scrollbar,
#aos-landing::-webkit-scrollbar {
    width: 8px;
    /* Slim width */
}

#aos-results::-webkit-scrollbar-track,
#aos-landing::-webkit-scrollbar-track {
    background: transparent;
    /* Invisible track */
}

#aos-results::-webkit-scrollbar-thumb,
#aos-landing::-webkit-scrollbar-thumb {
    background: transparent;
    /* Invisible thumb */
    border-radius: 6px;
}

#aos-results::-webkit-scrollbar-thumb:hover,
#aos-landing::-webkit-scrollbar-thumb:hover {
    background: transparent;
    /* Very subtle on hover */
}

.aos-results-header {
    margin-bottom: 2vh;
    text-align: center;
    margin-top: 0;
    /* Handled by container padding */
}


/* Split Layout (Video Left, Tiles Right) */
.aos-results-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Video slightly wider */
    gap: 2vw;
    width: 100%;
    margin-bottom: 2vh;
    align-items: start;
    /* Start alignment prevents floating when video wrapper is constrained */
}



.aos-video-wrapper {
    /* Modern approach: Use aspect-ratio with actual height constraint */
    width: 100%;
    aspect-ratio: 16 / 9;

    /* CRITICAL: Remove padding-bottom hack - it conflicts with max-height! */
    /* The padding-bottom creates height from PADDING which max-height cannot constrain */

    /* Set actual height constraints that work with aspect-ratio */
    max-height: 400px;
    min-height: 250px;

    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* VIDEO FIX: Ensure iframe fills container with aggressive overrides */
.aos-video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 100% !important;
    border: none !important;
    display: block !important;
}

.aos-metrics-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content within column */
}

/* Metrics Row - 3 Columns per row on desktop (10 tiles = 4 rows: 3+3+3+1) */
.aos-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* Removed height: 100% that was forcing expansion */
}

.aos-metric-card {
    background: #111;
    border: 1px solid #333;
    padding: 1.5vh 10px;
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Double Card Styling */
.aos-metric-card.double-card {
    align-items: flex-start;
    padding-left: 20px;
    text-align: left;
}

.aos-metric-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 1px solid #222;
    padding-bottom: 2px;
}

.aos-metric-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.aos-metric-row span {
    color: #fff;
    font-size: 0.9rem;
}

.aos-metric-row strong {
    color: #fff;
    font-size: 1.1rem;
}


.aos-metric-card.highlight {
    border-color: #cfb53b;
    background: linear-gradient(180deg, rgba(207, 181, 59, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.aos-metric-card small {
    display: block;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.aos-metric-card strong {
    font-size: 1.2rem;
    color: #fff;
}


/* Explanation Section */
.aos-explanation-section {
    background: #111;
    border-left: 4px solid #cfb53b;
    /* Gold left border */
    padding: 1.5vh 2vw;
    margin-bottom: 2vh;
    border-radius: 0 6px 6px 0;
}

.aos-explanation-section h3 {
    margin: 0 0 10px 0;
    color: #cfb53b;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#aos-explanation-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

#aos-explanation-list li {
    margin-bottom: 5px;
}

#aos-explanation-list strong {
    color: #fff;
}


.aos-cta-section {
    text-align: center;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    padding-bottom: 1vh;
}

/* Inputs & Components */
.aos-form-group {
    margin-bottom: 2vh;
    /* Reduced from 3vh */
}

.aos-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.aos-input-row {
    display: flex;
    gap: 15px;
    align-items: stretch;
    width: 100%;
}

/* INPUTS */
input[type="text"],
input[type="email"],
input[type="number"],
select,
.aos-input {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
    padding: 12px !important;
    /* Reduced from 15px */
    font-size: 1rem !important;
    border-radius: 6px !important;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* FIX AUTOFILL STYLING - Override browser defaults */
input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
input[type="number"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

input[type="text"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:focus,
input[type="number"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Placeholder Styling - Targeted */
.aos-input::placeholder,
#aos-ticker::placeholder,
input::placeholder {
    color: #888 !important;
    opacity: 1;
}

#aos-ticker {
    flex: 2;
    text-transform: uppercase;
}

#aos-fetch-price {
    flex: 1;
    white-space: nowrap;
    margin: 0;
    min-width: 120px;
    font-size: 0.95rem;
    padding: 15px 10px;
}

/* Buttons */
.aos-btn-gold {
    background: linear-gradient(135deg, #cfb53b 0%, #a08418 100%);
    color: #000 !important;
    border: none;
    padding: 15px 25px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.aos-action-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5vh;
}

.aos-btn-wide-action {
    width: 50%;
    min-width: 300px;
    padding: 15px;
    font-size: 1.4rem;
}

.aos-btn-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 3px;
}

/* Placeholder Color */
input::placeholder {
    color: #888;
    opacity: 1;
    /* Firefox */
}

/* Tooltip container */
.aos-radio-group input[type="radio"] {
    display: none;
}

.aos-radio-group {
    display: flex;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #333;
}

.aos-radio-group label {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 12px;
    cursor: pointer;
    color: #fff;
    background: transparent;
    border-right: 1px solid #333;
    transition: all 0.2s;
}

.aos-radio-group label:last-child {
    border-right: none;
}

.aos-radio-group input:checked+label {
    background: #cfb53b;
    color: #000;
    font-weight: bold;
}

/* Responsive */
/* Responsive - Increased Breakpoint for Scaling/Zoom handling */
@media (max-width: 1200px) {

    /* Universal box-sizing for all elements on mobile - prevents padding overflow */
    .aos-wrapper,
    .aos-wrapper * {
        box-sizing: border-box;
    }

    .aos-wrapper {
        /* Reset breakout on mobile to prevent overflow issues */
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;

        height: auto;
        overflow-y: visible;
        /* Allow natural flow */
        padding: 0;
        /* Remove wrapper padding, let children handle it */
        display: block;
    }

    .aos-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .aos-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .aos-landing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        height: auto;
    }

    /* Landing Page Mobile Padding */
    #aos-landing {
        box-sizing: border-box;
        padding: 60px 15px 40px 15px;
        /* Match Results Page Padding */
        width: auto;
    }

    /* Results Page Mobile Responsiveness */
    #aos-results {
        box-sizing: border-box;
        /* CRITICAL: Include padding in width */
        padding: 60px 15px 40px 15px;
        /* Standardize padding (30px total horizontal) */
        margin-left: 0;
        margin-right: 0;
        width: auto;
        /* Use auto width to fill container respecting padding */
        overflow-x: visible;
        /* Ensure nothing hides borders */
    }

    .aos-results-header {
        margin-bottom: 1.5rem;
    }

    .aos-results-header h2 {
        font-size: 1.4rem;
    }

    .aos-results-split {
        box-sizing: border-box;
        /* Include any padding/border in width */
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .aos-col-left {
        padding-right: 0;
    }

    /* Stack video on top, metrics below on mobile */
    .aos-video-col {
        order: 1;
    }

    .aos-metrics-col {
        order: 2;
    }

    /* 2x5 grid on mobile (2 columns, 5 rows for 10 tiles) */
    .aos-metrics-grid {
        box-sizing: border-box;
        /* Include padding/border in width */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .aos-metric-card {
        box-sizing: border-box;
        /* Include padding/border in width */
        padding: 12px 10px;
    }

    .aos-metric-card small {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .aos-metric-card strong {
        font-size: 1.05rem;
    }

    /* Explanation Section Mobile */
    .aos-explanation-section {
        margin-top: 15px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .aos-explanation-section h3 {
        font-size: 1rem;
    }

    #aos-explanation-list {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Video Wrapper Mobile */
    .aos-video-wrapper {
        box-sizing: border-box;
        /* Include padding/border in width */
        min-height: 180px;
        max-height: 250px !important;
    }

    .aos-video-wrapper iframe {
        height: 100%;
    }

    /* CTA Section Mobile */
    .aos-cta-section {
        padding-bottom: 20px;
    }

    .aos-btn-wide {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .aos-disclaimer {
        font-size: 0.75rem;
        padding: 0 10px;
    }

    .aos-btn-wide-action {
        width: 100%;
        min-width: auto;
        font-size: 1.1rem;
    }

    .aos-form-group {
        margin-bottom: 1.5vh;
    }

    /* Improve input field touch targets */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    .aos-input {
        padding: 12px !important;
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }

    /* Fix Fetch Button overflow */
    #aos-fetch-price {
        min-width: 90px;
        font-size: 0.85rem;
        padding: 12px 8px !important;
        white-space: normal;
        word-wrap: break-word;
    }

    .aos-btn-gold {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .aos-input-row {
        gap: 10px;
    }
}

/* --- Custom Tooltips --- */
.aos-tooltip,
.aos-tooltip-sm {
    display: inline-block;
    position: relative;
    cursor: help;
    /* Merged Icon Styles */
    background: #333;
    color: #cfb53b;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    margin-left: 5px;
    border: 1px solid #cfb53b;
}

/* Removed separate .aos-tooltip span rule */

/* Tooltip text bubble */
.aos-tooltip:hover::after,
.aos-tooltip-sm:hover::after {
    content: attr(data-text);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #cfb53b;
    font-size: 0.85rem;
    white-space: normal;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    line-height: 1.4;
}

/* Arrow */
.aos-tooltip:hover::before,
.aos-tooltip-sm:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #cfb53b;
    z-index: 1000;
}

/* Small tooltip variant adjustment if needed */
.aos-tooltip-sm:hover::after {
    min-width: 150px;
}

/* Mobile tooltip adjustment */
@media (max-width: 600px) {

    .aos-tooltip:hover::after,
    .aos-tooltip-sm:hover::after {
        left: 0;
        transform: translateX(0);
        min-width: 250px;
    }
}

/* Custom Alert Modal */
.aos-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.aos-alert-overlay.active {
    display: flex;
}

.aos-alert-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #cfb53b;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(207, 181, 59, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
}

.aos-alert-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #cfb53b 0%, #a08418 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    font-weight: bold;
}

.aos-alert-message {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 25px;
}

.aos-alert-button {
    width: 100%;
    background: linear-gradient(135deg, #cfb53b 0%, #a08418 100%);
    color: #000;
    border: none;
    padding: 12px 24px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aos-alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 181, 59, 0.4);
}

.aos-alert-button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for alert */
@media (max-width: 900px) {
    .aos-alert-box {
        padding: 25px 20px;
        max-width: 340px;
    }

    .aos-alert-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .aos-alert-message {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .aos-alert-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}