/* PolicySky Quiz Site Styles */
/* Colors from main PolicySky site */
:root {
    --primary-blue: #3B8EFF;
    --dark-blue: #1a365d;
    --navy: #0f2744;
    --light-gray: #FBFBFB;
    --text-gray: #655F5F;
    --text-dark: #2d3748;
    --white: #ffffff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--primary-blue);
}

.phone-link svg {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 120px;
    background: var(--white);
    min-height: 500px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    /* Background illustrations would go here */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* CTA Button */
.btn-cta {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 142, 255, 0.3);
}

.btn-cta:hover {
    background: #2a7ae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 142, 255, 0.4);
    color: var(--white);
}

.hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 25px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

.statistics h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.stats-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 120px;
}

.stat-item {
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.stat-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.stat-bg {
    stroke: #e0e0e0;
}

.stat-progress {
    stroke: var(--primary-blue);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease-out;
}

.stat-circle[data-percentage="85"] .stat-progress {
    stroke-dashoffset: 42.45; /* 283 - (283 * 0.85) */
}

.stat-circle[data-percentage="66"] .stat-progress {
    stroke-dashoffset: 96.22; /* 283 - (283 * 0.66) */
}

.stat-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.stat-item > p {
    font-size: 0.95rem;
    color: var(--text-gray);
    max-width: 200px;
    margin: 0 auto;
}

/* CTA Banner Section */
.cta-banner {
    position: relative;
    padding: 100px 0;
    background: var(--navy);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/city-skyline.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 80%;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
}

.cta-banner .btn-cta {
    background: var(--primary-blue);
}

.cta-banner .btn-cta:hover {
    background: #2a7ae8;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: var(--dark-blue);
    text-align: center;
}

.partners h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.partners-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--navy);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.footer-disclaimer.secondary {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer a {
    color: var(--white);
    text-decoration: underline;
}

.footer-disclaimer a:hover {
    color: var(--primary-blue);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--white);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .steps-row {
        flex-direction: column;
        gap: 40px;
    }

    .stats-row {
        flex-direction: column;
        gap: 60px;
    }

    .statistics h2,
    .cta-banner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .how-it-works,
    .statistics,
    .partners {
        padding: 60px 0;
    }

    .partners-logos {
        gap: 40px;
    }

    .partner-logo img {
        height: 40px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .statistics h2,
    .cta-banner h2,
    .partners h2 {
        font-size: 1.5rem;
    }

    .stat-circle {
        width: 150px;
        height: 150px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ========================================
   QUIZ PAGE STYLES
   ======================================== */

.quiz-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--light-gray);
}

/* Quiz Header */
.quiz-header {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.quiz-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-header .logo img {
    height: 50px;
    width: auto;
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.progress-bar-wrapper {
    max-width: 600px;
    margin: 0 auto;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-badge {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    left: 0%;
    transition: left 0.5s ease;
    white-space: nowrap;
}

/* Quiz Main Content */
.quiz-main {
    flex: 1;
    padding: 60px 0;
    display: flex;
    align-items: flex-start;
}

.quiz-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

/* Quiz Steps */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 35px;
}

.quiz-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

/* Form Inputs */
.quiz-form {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 142, 255, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

.date-input {
    cursor: pointer;
}

/* Option Buttons (Gender, Timing) */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.option-btn {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-btn:hover {
    background: #e8e8e8;
}

.option-btn.selected {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Custom Date Wrapper */
.custom-date-wrapper {
    max-width: 450px;
    margin: 25px auto 0;
}

/* Navigation Buttons */
.btn-next,
.btn-submit {
    display: block;
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-next:hover,
.btn-submit:hover {
    background: #2a7ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 142, 255, 0.3);
}

.btn-back {
    display: block;
    width: 100%;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: var(--text-gray);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--dark-blue);
    color: var(--dark-blue);
}

.quiz-nav-buttons {
    display: flex;
    gap: 15px;
    max-width: 450px;
    margin: 30px auto 0;
}

.quiz-nav-buttons .btn-back,
.quiz-nav-buttons .btn-next,
.quiz-nav-buttons .btn-submit {
    flex: 1;
    margin-top: 0;
}

/* Completion Step */
.quiz-complete {
    text-align: center;
    padding: 20px 0;
}

.checkmark {
    color: #4CAF50;
    margin-bottom: 30px;
}

.quiz-complete .quiz-subtitle {
    max-width: 400px;
    margin: 0 auto 30px;
}

.quiz-complete .btn-cta {
    display: inline-block;
}

/* Quiz Footer */
.quiz-footer {
    background: var(--navy);
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-footer .footer-links {
    margin: 0 0 15px;
    padding: 0;
    border: none;
}

.quiz-footer .footer-copyright {
    margin-top: 0;
}

/* Quiz Responsive */
@media (max-width: 768px) {
    .quiz-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .quiz-main {
        padding: 40px 0;
    }

    .quiz-nav-buttons {
        flex-direction: column;
    }

    .quiz-nav-buttons .btn-back {
        order: 2;
    }

    .quiz-nav-buttons .btn-next,
    .quiz-nav-buttons .btn-submit {
        order: 1;
    }
}

@media (max-width: 480px) {
    .quiz-title {
        font-size: 1.3rem;
    }

    .option-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .btn-next,
    .btn-submit,
    .btn-back {
        padding: 15px 25px;
        font-size: 1rem;
    }
}
