/* --- VARIABLES & BASE STYLES --- */
:root {
    --primary-color: #f97316;
    --primary-hover: #fb923c;
    --dark-bg: #0f172a;
    --medium-bg: #1e293b;
    --light-color: #f8fafc;
    --medium-text: #94a3b8;
    --font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    font-family: var(--font-family);
    color: var(--light-color);
    margin: 0;
    line-height: 1.8;
    font-size: 18px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 52px; }
h2 { font-size: 40px; text-align: center; margin-bottom: 24px; }
h3 { font-size: 32px; margin-bottom: 24px; }

p {
    margin: 0 0 24px 0;
    font-size: 18px;
}

ul {
    margin: 24px 0;
    padding-left: 24px;
    line-height: 1.8;
}

li {
    margin-bottom: 16px;
    font-size: 18px;
}

/* --- BUTTONS --- */
.button-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.button-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button-primary:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* --- HEADER & FOOTER --- */
.header, .footer {
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    margin: 0; /* Fix for <p> tag margin */
}

.footer {
    text-align: center;
    color: var(--medium-text);
    font-size: 15px;
}

/* --- HERO SECTION (index.html) --- */
.hero-section {
    padding: 80px 0 60px;
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 52px;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.2;
}

.hero-text .subheadline {
    font-size: 19px;
    color: var(--medium-text);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-note {
    font-size: 16px;
    color: var(--medium-text);
    margin-top: 16px;
}

.hero-image img {
    object-fit: cover;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* --- PROBLEM SECTION (index.html) --- */
.problem-section {
    text-align: center;
    padding: 90px 0;
    background-color: var(--medium-bg);
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.problem-section h2 {
    font-size: 40px;
}

.problem-section ul {
    max-width: 650px;
    margin: 32px auto;
    text-align: left;
    padding-left: 24px;
    list-style-position: inside;
}

/* --- RELIEF BRIDGE (index.html) --- */
.relief-section {
    padding: 80px 0;
    background: var(--medium-bg);
    text-align: center;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.relief-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.relief-section h2,
.relief-section p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.relief-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    padding: 8px 0;
    border-radius: 8px;
}

.relief-section p {
    font-size: 19px;
    color: var(--light-color);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- SOLUTION SECTION (index.html) --- */
.solution-section {
    padding: 90px 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.solution-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.solution-text h2 {
    text-align: left;
    font-size: 40px;
}

.solution-text ul {
    text-align: left;
    padding-left: 24px;
    list-style-type: '✅ ';
    font-size: 18px;
}

.highlight {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- SOCIAL PROOF (index.html) --- */
.social-proof-section {
    padding: 90px 0;
    background-color: var(--dark-bg);
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.social-proof-section h2 {
    font-size: 40px;
    margin-bottom: 32px;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial blockquote {
    background-color: var(--medium-bg);
    border-left: 5px solid var(--primary-color);
    padding: 24px;
    margin: 0;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.7;
    font-style: italic;
}

.testimonial cite {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    font-size: 16px;
}

/* --- OPT-IN SECTION (index.html) --- */
.optin-section {
    padding: 90px 0;
    background-color: var(--medium-bg);
    animation: fadeIn 0.8s ease-out 1s forwards;
    opacity: 0;
}

.optin-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.optin-box h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.optin-box ul {
    max-width: 550px;
    margin: 32px auto;
    padding-left: 24px;
    font-size: 18px;
    text-align: left;
}

#webinar-opt-in-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.optin-input {
    width: 100%;
    padding: 18px;
    background: #0f172a;
    color: var(--light-color);
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 17px;
}

.optin-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.privacy-note {
    font-size: 15px;
    color: var(--medium-text);
    margin-top: 16px;
    margin-bottom: 0; /* Fix extra margin */
}

.error-message {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* --- HIDDEN FIELDS --- */
.webinar-optin-input.hidden {
    display: none;
}

/* --- UNIVERSAL PAGE HEADERS (schedule, masterclass, success) --- */
.page-eyebrow {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-headline {
    font-size: 48px;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 20px;
}

.page-subheadline {
    max-width: 700px;
    margin: -10px auto 40px auto;
    font-size: 18px;
    color: var(--medium-text);
}


/* --- SCHEDULE PAGE (schedule.html) --- */
.schedule-section {
    padding: 40px 0;
    text-align: center;
}

.schedule-box {
    background-color: var(--medium-bg);
    border-radius: 12px;
    padding: 40px;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid #334155;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.timezone-section {
    text-align: center;
    margin-bottom: 30px;
    color: var(--medium-text);
}

.timezone-section p {
    margin-bottom: 10px; /* Fix spacing */
}

.timezone-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.schedule-box label {
    font-weight: 700;
    margin: 0 0 8px;
    display: block;
}

.schedule-box label.required::after {
    content: '*';
    color: red;
    margin-left: 4px;
}

.schedule-box input, .schedule-box select {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    background: var(--dark-bg);
    color: var(--light-color);
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 17px;
    box-sizing: border-box;
}

.schedule-box input:focus, .schedule-box select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.time-slot-button {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3) !important;
    transition: all 0.2s ease !important;
    margin: 6px 0;
}

.time-slot-button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(249,115,22,0.5) !important;
}

.time-slot-button.selected {
    background: #e65c00 !important;
    box-shadow: 0 0 16px rgba(249,115,22,0.7) !important;
    transform: scale(1.05) !important;
}

.instructions {
    font-size: 14px;
    color: var(--medium-text);
    margin-bottom: 25px;
}

#submit-button {
    width: 100%;
}

#submit-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute; /* This may need a parent with position: relative */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* --- MASTERCLASS PAGE (masterclass.html) --- */
.masterclass-section {
    padding: 40px 0;
    text-align: center;
}

/* --- VIDEO PLAYER FIX (masterclass.html) --- */
.video-placeholder {
    max-width: 900px;       /* Stops it from being HUGE */
    margin: 0 auto 40px;    /* Centers it */
    border-radius: 16px;    /* Rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: #000; /* Black background while loading */
    position: relative;
}

.video-placeholder video {
    width: 100%;            /* Forces video to fit container */
    height: auto;           /* Maintains aspect ratio */
    display: block;
}

/* Ensure the error message is visible if something goes wrong */
#video-error {
    color: #f87171;
    text-align: center;
    padding: 20px;
    display: none; /* JS toggles this */
}

/* --- NEW SUCCESS PAGE STYLES (success.html) --- */
.success-section {
    padding: 80px 0;
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
}

.success-eyebrow {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.success-headline {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-subheadline {
    font-size: 19px;
    color: var(--medium-text);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* This is the main content box */
.success-box {
    max-width: 1000px; /* Wider for the new layout */
    margin: 0 auto;
    padding: 40px;
    background: var(--medium-bg);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* NEW: 2-column layout for video and steps */
.success-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
}

.success-video-col p {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--medium-text);
}

.video-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.next-steps-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--light-color); /* Make it stand out */
}

.next-steps ol {
    text-align: left;
    margin: 0;
    padding-left: 24px;
    list-style: decimal;
}

.next-steps li {
    font-size: 17px;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--medium-text);
}

.next-steps li strong {
    color: var(--light-color); /* Highlight key actions */
}

/* NEW: Bonus Download Box */
.bonus-download {
    margin-top: 40px;
    padding: 32px;
    background-color: var(--dark-bg); /* Darker to stand out */
    border-radius: 12px;
    text-align: left;
    border: 1px solid #334155;
}

.bonus-download h4 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.bonus-download p {
    font-size: 17px;
    color: var(--medium-text);
    margin-bottom: 24px;
}

/* NEW: Secondary Button Style */
.button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 16px 32px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}


/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .hero-content, .solution-section .container { grid-template-columns: 1fr 1fr; gap: 60px; }
    .hero-text { text-align: left; }
    .hero-text h1 { font-size: 62px; text-align: left; margin-left: 0; }
    .hero-text .subheadline { text-align: left; margin-left: 0; }
    #webinar-opt-in-form { grid-template-columns: 1fr 1fr; gap: 20px; }
    #webinar-opt-in-form button { grid-column: span 2; }
    .testimonial-container { grid-template-columns: 1fr 1fr 1fr; }
    
    /* NEW: Success page 2-column layout */
    .success-content-grid {
        grid-template-columns: 6fr 4fr; /* 60% video, 40% steps */
        align-items: center;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
    .hero-content { text-align: center; }
    .subheadline { margin-left: auto; margin-right: auto; }
    .schedule-box { padding: 20px; }
    .time-slot-button { padding: 8px 16px; font-size: 14px; } /* Mislabeled class? */
    
    /* Success page responsive */
    .success-headline { font-size: 38px; }
    .success-box { padding: 20px; }
}

/* --- MOBILE LAYOUT FIX (index.html) --- */
.optin-input {
    box-sizing: border-box;
}