/* --- VARIABLES & BASE STYLES --- */
:root {
    --primary-color: #f97316; /* Accent Orange */
    --primary-hover: #fb923c; /* Lighter Orange */
    --dark-bg: #0f172a;      /* Main Background (Dark Slate) */
    --medium-bg: #1e293b;   /* Card/Section Background */
    --light-color: #f8fafc;   /* Primary Text (Almost White) */
    --medium-text: #94a3b8;  /* Muted Text */
    --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.7;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: 64px; }
h2 { font-size: 48px; text-align: center; }
p { margin: 0 0 20px 0; }

/* --- BUTTONS --- */
.button-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.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; }
.footer { text-align: center; color: var(--medium-text); }

/* --- HERO SECTION --- */
.hero-section { padding: 60px 0; }
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}
.subheadline { font-size: 20px; color: var(--medium-text); max-width: 500px; margin-bottom: 30px;}
.hero-image img { border-radius: 12px; }

/* --- PROBLEM SECTION --- */
.problem-section { text-align: center; padding: 80px 0; background-color: var(--medium-bg); }
.problem-section p { max-width: 700px; margin: 0 auto; font-size: 18px; color: var(--medium-text); }

/* --- SOLUTION SECTION --- */
.solution-section { padding: 80px 0; }
.solution-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}
.solution-image img { border-radius: 12px; }
.solution-text h2 { text-align: left; }
.solution-text ul { list-style-type: '✅'; padding-left: 20px; }
.solution-text li { padding-left: 15px; margin-bottom: 15px; font-size: 18px; }
.highlight { font-weight: 700; color: var(--primary-color); }

/* --- OPT-IN SECTION --- */
.optin-section { padding: 80px 0; background-color: var(--medium-bg); }
.optin-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
#webinar-opt-in-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}
.optin-input {
    width: 100%;
    padding: 16px;
    background: #0f172a;
    color: var(--light-color);
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.optin-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.error-message { color: #f87171; font-size: 14px; display: none; }

/* --- HIDDEN FIELDS --- */
.webinar-optin-input.hidden {
    display: none;
}
/* --- Masterclass Page --- */
.masterclass-section {
    padding: 40px 0;
    text-align: center;
}
.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: 40px;
}
.video-placeholder {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}
.video-placeholder video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(249, 115, 22, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}
.video-placeholder:hover .play-button {
    background-color: rgba(251, 146, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
}
.cta-box {
    background-color: var(--medium-bg);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 60px auto 0 auto;
    border: 1px solid #334155;
}
.cta-box h2 {
    font-size: 36px;
    margin-top: 0;
}
.cta-box p {
    font-size: 18px;
    color: var(--medium-text);
    margin-bottom: 60px;
}
.error-message {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* --- Schedule Page --- */
.schedule-section {
    padding: 40px 0;
    text-align: center;
}
.page-subheadline {
    max-width: 700px;
    margin: -10px auto 40px auto;
    font-size: 18px;
    color: var(--medium-text);
}
.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;
}
.timezone-section {
    text-align: center;
    margin-bottom: 30px;
    color: var(--medium-text);
}
.timezone-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}
.schedule-box label {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.schedule-box label.required::after {
    content: '*';
    color: red;
    margin-left: 4px;
}
.schedule-box input, .schedule-box select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--dark-bg);
    color: var(--light-color);
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 16px;
    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;
}
.time-slot-button {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}
.time-slot-button:hover {
    background: var(--primary-color);
    color: white;
}
.time-slot-button.selected {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.instructions {
    font-size: 14px;
    color: var(--medium-text);
    margin-bottom: 25px;
}
#submit-button {
    width: 100%;
}
#submit-button.loading {
    position: relative;
    color: transparent !important; /* Hides the text */
}

/* This creates a perfectly centered spinner */
#submit-button.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-top: -12px;  /* half of height */
    margin-left: -12px; /* half of width */
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* A slightly simplified and more stable animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.error-message {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}
@media (max-width: 768px) {
    .schedule-box {
        padding: 20px;
    }
    .time-slot {
        padding: 8px 16px;
        font-size: 14px;
    }
}    
#timezone {
    display: none;
    margin-top: 10px;
}

#timezone.show {
    display: block;
}


/* --- Success Page --- */
.success-section {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(120deg, var(--dark-bg) 0%, var(--medium-bg) 100%);
}
.success-eyebrow {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in;
}
.success-headline {
    font-size: 48px;
    font-weight: 900;
    color: var(--light-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideUp 1s ease-out;
}
.success-subheadline {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 20px;
    color: var(--medium-text);
    animation: fadeIn 1.5s ease-in;
}
.success-box {
    background-color: var(--medium-bg);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    animation: popIn 1s ease-out;
}
.success-intro {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
}
.video-wrapper {
    position: relative;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
}
.video-placeholder {
    position: relative;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.video-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(249, 115, 22, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}
.video-placeholder:hover .play-button {
    background-color: rgba(251, 146, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
}
.next-steps {
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-top: 2px solid var(--primary-color);
    padding-top: 30px;
}
.next-steps-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--light-color);
    font-size: 24px;
    font-weight: 700;
}
.next-steps ol {
    list-style-type: none;
    padding-left: 0;
    font-size: 18px;
}
.next-steps li {
    padding-left: 50px;
    position: relative;
    margin-bottom: 25px;
    color: var(--light-color);
}
.next-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: -2px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.next-steps li strong {
    color: var(--primary-color);
}
.bonus-download {
    margin-top: 40px;
    border-top: 2px solid var(--primary-color);
    padding-top: 30px;
}
.bonus-title {
    font-size: 24px;
    color: var(--light-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.bonus-text {
    font-size: 18px;
    color: var(--medium-text);
    margin-bottom: 20px;
}
.button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 14px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.button-secondary:hover {
    background: var(--primary-color);
    color: white;
}
.download-link {
    display: block;
    text-align: center;
    margin-top: 20px;
}
.error-message {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* --- RESPONSIVE STYLES --- */
@media (min-width: 768px) {
    .hero-content { grid-template-columns: 1fr 1fr; }
    .hero-text { text-align: left; }
    h1 { font-size: 72px; }
    .solution-section .container { grid-template-columns: 1fr 1fr; }
    #webinar-opt-in-form { grid-template-columns: 1fr 1fr auto; }
}
@media (max-width: 767px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    .hero-content { text-align: center; }
    .subheadline { margin-left: auto; margin-right: auto; }
}
/* --- NEW STYLES FOR HOMEPAGE --- */

/* --- Header Navigation --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}
.main-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
}
.button-nav {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.button-nav:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light-color);
    border-radius: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- About Section (Based on Solution Section) --- */
.about-section {
    padding: 80px 0;
}
.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    border-radius: 12px;
    border: 3px solid var(--medium-bg);
}
.about-text h2 {
    text-align: left;
}
.about-text p {
    font-size: 18px;
    color: var(--medium-text);
    margin-bottom: 20px;
}

/* --- Final CTA Section (Based on Optin Section) --- */
.cta-section {
    padding: 80px 0;
    background-color: var(--medium-bg); /* Use medium-bg */
}
.final-cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.final-cta-box h3 {
    font-size: 42px;
    margin-top: 0;
}
.final-cta-box p {
    font-size: 20px;
    color: var(--medium-text);
    margin-bottom: 40px;
}

/* --- Add to your main @media (max-width: 768px) block --- */
@media (max-width: 768px) {
    .about-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text h2 {
        text-align: center;
    }

    /* --- Mobile Nav Styles --- */
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background: var(--medium-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s ease-in-out;
        padding-top: 60px;
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav a {
        font-size: 20px;
    }
    .button-nav {
        font-size: 18px;
    }
}
/* --- NEW STYLES FOR WORK-TOGETHER PAGE --- */

.page-headline-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--medium-bg);
}
.page-headline-section .page-eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.page-headline-section .page-headline {
    font-size: 48px;
    margin: 0;
    color: var(--light-color);
}

.offer-section {
    padding: 80px 0 0 0;
    text-align: center;
}
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.offer-card {
    background: var(--medium-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.offer-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 0;
}
.offer-card p {
    color: var(--medium-text);
    font-size: 18px;
    flex-grow: 1; /* Pushes button to bottom */
    margin-bottom: 30px;
}
.button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 14px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.button-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Reverses the order of the solution section */
.solution-section.reverse .container {
    grid-template-areas: "text image";
}

/* Make sure the text is on the left in the reverse block */
.solution-section.reverse .solution-text {
    grid-area: text;
}
.solution-section.reverse .solution-image {
    grid-area: image;
}

/* --- ADD TO YOUR RESPONSIVE SECTION --- */
/* Add this inside your existing @media (max-width: 768px) block */
@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
    .solution-section.reverse .container {
        grid-template-areas: "image" "text";
    }
}

/* --- FIX YOUR SOLUTION SECTION GRID --- */
/* You need to add this to your main .solution-section style */
.solution-section .container {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    grid-template-areas: 
        "image"
        "text";
    gap: 60px;
    align-items: center;
}
.solution-text {
    grid-area: text;
}
.solution-image {
    grid-area: image;
}

/* Add this inside your existing @media (min-width: 768px) block */
@media (min-width: 768px) {
    .solution-section .container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "image text";
    }
}
/* --- NEW STYLES FOR CLIENT-SUCCESS PAGE --- */

.video-testimonials-section {
    padding: 80px 0;
}

.video-testimonial {
    max-width: 900px; /* Constrains video size */
    margin: 0 auto 60px auto; /* Centers block and adds space */
}

.video-testimonial-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--light-color);
    text-align: center;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* Ensures video corners are rounded */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    line-height: 0; /* Fixes potential extra space under video */
    border: 3px solid var(--medium-bg);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000; /* Black bg for letterboxing */
}
/* --- NEW STYLES FOR CORE10 PAGE --- */

.tenet-section {
    padding: 40px 0; /* A little less padding since the items have it */
}

.tenet-item {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    grid-template-areas:
        "number"
        "text";
    gap: 30px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 2px solid var(--medium-bg); /* Separator */
}

.tenet-item:last-child {
    border-bottom: none;
}

.tenet-number {
    grid-area: number;
    font-size: 150px; /* Big number */
    font-weight: 900;
    color: var(--medium-bg); /* Muted, like a watermark */
    text-align: center;
    line-height: 1;
}

.tenet-text {
    grid-area: text;
}

.tenet-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.tenet-text p {
    font-size: 18px;
    color: var(--medium-text);
    margin-bottom: 20px;
}

.tenet-text p:last-child {
    margin-bottom: 0;
}

/* --- ADD TO YOUR RESPONSIVE SECTION --- */
/* Add this inside your existing @media (min-width: 768px) block */
@media (min-width: 768px) {
    .tenet-item {
        grid-template-columns: 3fr 1fr; /* Text | Number */
        grid-template-areas: "text number";
        gap: 60px;
    }

    .tenet-number {
        font-size: 200px;
    }

    /* Alternating row */
    .tenet-item.reverse {
        grid-template-columns: 1fr 3fr; /* Number | Text */
        grid-template-areas: "number text";
    }
}