:root {
    --primary-color: #084a79;
    --secondary-color: #444444;
    --text-color: #444444;
    --accent-color: #00a99d;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --dark-gray: #808080;
    --black: #000000;
    --highlight-blue: #043a5e;
    --dark-blue: #0f395a;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'roboto1', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-width: 200px;
}

.logo img {
    max-width: 100%;
    height: 70px;
}

/* Webinar Container */
.webinar-container {
    margin: 30px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.webinar-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin: 20px 0;
    font-size: 2rem;
    padding: 0 20px;
}

/* HTML Content */
#html-content {
    padding: 30px;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.webinar-content {
    max-width: 900px;
    margin: 0 auto;
}

.webinar-host {
    margin-bottom: 20px;
    text-align: center;
}

.webinar-host h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.webinar-tagline {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
}

.webinar-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.webinar-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.section {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.section li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.section li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.pain-point, .solution, .highlight, .audience {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 8px;
    font-weight: bold;
}

.pain-point {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #721c24;
}

.solution {
    background-color: #d4edda;
    color: #155724;
    border-left: 3px solid #155724;
}

.highlight {
    background-color: #cce5ff;
    color: #004085;
    border-left: 3px solid #004085;
}

.audience {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #856404;
}

.teaser {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px;
    background-color: rgba(186, 160, 64, 0.1);
    border-radius: var(--border-radius);
}

.webinar-cta {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

.webinar-cta p {
    margin: 0;
}

/* Buttons and CTAs */
.btn-cta, .btn-primary, .btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 74, 121, 0.3);
}

.btn-cta:hover, .btn-primary:hover, .btn-submit:hover {
    background-color: var(--highlight-blue);
    box-shadow: 0 6px 20px rgba(8, 74, 121, 0.4);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #008f84;
    color: var(--white);
}

/* Section styling */
.section, .results-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.section h2, .section h3, .results-section h2, .results-section h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 500;
}

.section h4, .results-section h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Form elements */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'roboto1', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, 
input[type="number"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 74, 121, 0.1);
}

/* Video Player */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--black);
}

/* Custom Video Player */
.custom-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    overflow: hidden;
}

#webinar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    object-fit: cover;
}

/* Video Controls */
.custom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.control-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.control-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.volume-control {
    width: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 0 10px;
    display: none; /* Hidden by default, shown on hover */
}

#mute-button:hover + .volume-control,
.volume-control:hover {
    display: block;
}

/* Custom slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: var(--white);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -7px;
    height: 1.5rem;
    width: 1.5rem; 
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    margin-top: -7px;
    height: 1.5rem;
    width: 1.5rem; 
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}
input[type="range"]::-webkit-slider-runnable-track {
    background: #e9e9e9;
    height: 0.5rem;
    border-radius: 5px;
}
input[type="range"]::-moz-range-track {
    background: #e9e9e9;
    height: 0.5rem;
    border-radius: 5px;
}

/* Overlays */
.video-overlay,
.countdown-overlay,
.webinar-ended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    padding: 20px;
    overflow-y: auto; /* Allow scrolling on small screens */
}

.countdown-overlay h2,
.webinar-ended-overlay h2 {
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.countdown-item {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 15px;
    min-width: 80px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
}

.countdown-item .label {
    font-size: 0.9rem;
    color: var(--white);
    margin-top: 5px;
    opacity: 0.9;
}

.join-button-container {
    text-align: center;
    margin-top: 20px;
}

.join-confirmation {
    margin-top: 15px;
    padding: 15px;
    max-width: 400px;
    text-align: center;
}

.join-confirmation p {
    margin: 0;
    color: var(--white);
    font-weight: 500;
}

/* Webinar Ended Container */
.webinar-ended-container {
    padding: 50px 20px;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.webinar-ended-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.cta-container {
    margin-top: 30px;
}

/* CTA Button */
.cta-button {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10;
    opacity: 0;
    transition: var(--transition);
}

.cta-button.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer styling */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0;
    margin-top: 50px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Chat Widget */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    z-index: 99;
}

.chat-callout {
    position: absolute;
    top: -45px;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: calloutPulse 6s infinite;
    transform-origin: bottom right;
    pointer-events: none;
    border-left: 3px solid var(--primary-color);
    z-index: 98;
}

.chat-callout:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.chat-widget.open + .chat-toggle .chat-callout {
    display: none;
}

@keyframes calloutPulse {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05) translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.chat-widget.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    display: flex;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-break: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 5px;
}

.system-message {
    align-self: flex-start;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
    font-style: italic;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--light-gray);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background-color: #a89038;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.toast {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown {
        gap: 10px;
        margin-bottom: 0;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    
    .countdown-item .label {
        font-size: 0.8rem;
    }
    
    .countdown-overlay h2,
    .webinar-ended-overlay h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .chat-widget {
        width: 300px;
        height: 400px;
        bottom: 80px;
    }
    
    .webinar-sections {
        grid-template-columns: 1fr;
    }
    
    .webinar-container h1 {
        font-size: 1.6rem;
    }
    
    .btn-cta {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .section {
        padding: 15px;
    }
    
    .section h4 {
        font-size: 1.1rem;
    }
    
    .webinar-intro {
        font-size: 1rem;
    }
    
    .webinar-host h3 {
        font-size: 1.5rem;
    }
    
    .webinar-tagline {
        font-size: 1.1rem;
    }
    
    .webinar-cta {
        font-size: 1rem;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .countdown {
        gap: 8px;
        margin-bottom: 0;
    }
    .join-confirmation {
        padding: 0 15px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 8px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.2rem;
    }
    
    .countdown-item .label {
        font-size: 0.7rem;
    }
    
    .chat-widget {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    .webinar-container h1 {
        font-size: 1.4rem;
        margin: 15px 0;
    }
    
    .btn-cta {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .section {
        padding: 12px;
    }
    
    .pain-point, .solution, .highlight, .audience {
        font-size: 0.8rem;
        padding: 2px 4px;
    }
    
    .section li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    #html-content {
        padding: 20px 15px;
    }
    
    .webinar-intro {
        margin-bottom: 25px;
    }
    
    .webinar-cta {
        padding: 12px;
    }
    
    .custom-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .control-button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 400px) {
    .countdown-item {
        min-width: 40px;
        padding: 6px;
    }
    
    .countdown-item span:first-child {
        font-size: 1rem;
    }
    
    .countdown-item .label {
        font-size: 0.6rem;
    }
    
    .join-button-container {
        margin-top: 0;
    }
    button#join-button-countdown {
        margin-top: 15px;
    }
    
    .btn-cta {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .webinar-host h3 {
        font-size: 1.3rem;
    }
    
    .webinar-tagline {
        font-size: 0.9rem;
    }
}
