/* General Styles */
html {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #333;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.img-dec-main{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* Video Section */
header {
    position: relative;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    width: 80%;
}

.header-text h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: bold;
}

.header-text p {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Content Below Video */
.content-container {
    padding: 40px 20px;
    text-align: center;
}

#quiz-section{
    position: relative;
    z-index: 2;
}

.main-text {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

#next-button, #start-quiz-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#next-button:hover, #start-quiz-button:hover {
    transform: scale(1.05);
}

/* Quiz Intro Section */
.quiz-intro-container {
    background-color: white;
    max-width: 800px;
    margin: 80px auto;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.quiz-subheading {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.quiz-heading {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
}

.quiz-subheading2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.features-list .icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

#start-quiz-button, #quiz-next-button {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#start-quiz-button:hover, #quiz-next-button:hover {
    transform: scale(1.05);
}

#quiz-next-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quiz Styles */
#progress-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
}

#progress-bar div {
    flex: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
}

#progress-bar div.active {
    background-color: #fdd835; /* Yellow color from screenshot */
}

#question-counter {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

#question-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.answer-label {
    display: block;
    padding: 15px 20px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.answer-label:hover {
    background-color: #f5f5f5;
}

.answer-label input[type="radio"] {
    display: none;
}

.answer-label .custom-radio {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.answer-label input[type="radio"]:checked ~ .custom-radio {
    background-color: #298cff;
    border-color: #298cff;
}

.answer-label input[type="radio"]:checked ~ .custom-radio::after {
    content: "";
    position: absolute;
    display: block;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* Loading Section */
.loading-container {
    background-color: white;
    max-width: 800px;
    margin: 80px auto;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 2;
    position: relative;
}

.loading-heading {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #333;
}

.spinner {
    margin: 30px auto;
    width: 60px;
    height: 60px;
    border: 8px solid #e0e0e0;
    border-top-color: #0056b3; /* Dark blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-bar-container {
    width: 80%;
    height: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border-radius: 10px;
    animation: load 5s linear forwards;
}

@keyframes load {
    to { width: 100%; }
}

.number-slots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.number-slot {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#loading-result-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

#register-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#register-button:hover {
    transform: scale(1.05);
}

/* Form Section */
#form-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
}

.form-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
}

.form-text-column {
    flex: 1;
}

.form-text-column h2 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.form-input-column {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#registration-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

#registration-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#registration-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Thank You Section */
.thank-you-container {
     background-color: white;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.thank-you-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.thank-you-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

#final-action-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(to right, #3a9cff, #298cff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #003366; /* Dark blue from screenshot */
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
}

.footer-content .f-a{
    display: flex;
    gap: 30px;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content span {
    color: #fff;
}

/* Quiz Section (initially hidden) */
/* Styles are now handled by .content-container */

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
}

.legal-container h1, .legal-container h2 {
    color: #003366;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

#final-action-button:hover {
    transform: scale(1.05);
}

/* More Info Section */
#more-info-section {
    padding: 60px 0;
}

.info-block-1, .info-block-2, .info-block-3, .info-block-4 {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.info-block-3{
    max-width: 100%;
    padding: 0;
}

/* Info Block 1 */
.info-block-1 {
    text-align: center;
}
.info-block-1 h2 {
    font-size: 2.8rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.feature-item img {
    width: 64px;
    height: 64px;
}

/* Info Block 2 & 4 */
.info-block-2, .info-block-4 {
    display: flex;
    align-items: center;
    gap: 50px;
}
.info-block-2 .text-content, .info-block-4 .text-content {
    flex: 1;
}
.info-block-2 .image-content, .info-block-4 .image-content {
    flex: 1;
}
.info-block-2 .image-content img, .info-block-4 .image-content img {
    width: 100%;
    border-radius: 20px;
    -webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M50,0 A50,50 0 0,1 100,50 A50,50 0 0,1 50,100 A50,50 0 0,1 0,50 A50,50 0 0,1 50,0" fill="black"/></svg>');
    mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M50,0 A50,50 0 0,1 100,50 A50,50 0 0,1 50,100 A50,50 0 0,1 0,50 A50,50 0 0,1 50,0" fill="black"/></svg>');
}
.info-block-4 .image-content img {
     -webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M50,0 C10,0 0,10 0,50 C0,90 10,100 50,100 C90,100 100,90 100,50 C100,10 90,0 50,0" fill="black"/></svg>');
    mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M50,0 C10,0 0,10 0,50 C0,90 10,100 50,100 C90,100 100,90 100,50 C100,10 90,0 50,0" fill="black"/></svg>');
}
.subheading {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.info-block-2 h3, .info-block-3 h3, .info-block-4 h3 {
    font-size: 2.5rem;
}
.info-block-2 ul {
    list-style: '• ';
    padding-left: 20px;
}

/* Info Block 3 - Testimonials */
.info-block-3 {
    text-align: center;
}
.testimonials-slider {
    width: 100%;
    padding: 40px 0;
}
.swiper-wrapper{
    margin-left: -20px;
}
.swiper-slide {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    width: 380px;
    height: auto;
    box-sizing: border-box;
}
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #007bff;
}

.swiper-wrapper{
    padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-block-2, .info-block-4 {
        flex-direction: column;
    }
    .info-block-2 .image-content {
        order: -1;
    }
    .info-block-1 h2, .info-block-2 h3, .info-block-3 h3, .info-block-4 h3, .form-text-column h2{
        font-size: 30px;
    }
    .quiz-heading{
        font-size: 25px;
    }
    .video-container{
        height: auto;
    }
    .number-slot{
        width: 50px;
        height: 70px;
        font-size: 40px;
    }
    .form-container{
        flex-direction: column;
    }
    .thank-you-container p{
        font-size: 14px;
    }
}

#custom-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
    z-index: 22;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

#video-progress-container {
    position: absolute;
    bottom: 0.5px;
    left: 0;
    width: 100%;
    height: 5px;
    /* cursor: pointer; */
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 22;
    transition: height 0.2s ease-in-out;
}

#video-progress-container:hover {
    height: 6px;
}

#video-progress-bar {
    width: 0;
    height: 100%;
    background-color: #dc3545;
} 