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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Section Management */
.section {
    min-height: 100vh;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

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

.hero-content {
    text-align: center;
    color: white;
}

/* Powered by Digital Perpetual Footer */
.powered-by {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.95;
    font-size: 0.85rem;
    color: white;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Survey-specific footer - always visible during survey */
.survey-footer {
    display: none;
}

#survey.active .survey-footer {
    display: flex !important;
    position: fixed !important;
    bottom: 20px;
    z-index: 10001 !important;
}

.footer-logo-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.powered-by span {
    white-space: nowrap;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #FFC107, #FFB300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.95;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #FFC107;
}

.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.value-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.cta-button {
    background: #FFC107;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button .arrow {
    width: 24px;
    height: 24px;
}

.trust-badges {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Survey Section */
#survey {
    background: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: none;
}

#survey.active {
    display: block;
}

.survey-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Fixed Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.5s ease;
}

/* Survey Form with Scrolling Container */
#surveyForm {
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(0);
}

/* Question Slides - Full Height */
/* Survey Form Container */
#surveyForm {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
}

/* Survey Section */
#survey {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    z-index: 100;
}

.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 20px 100px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Summary content specific styling */
.summary-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.question-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: auto;
    position: relative;
}

.question-slide.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
    overflow-y: auto !important;
}

.question-slide.passed {
    display: none;
    opacity: 0;
    transform: translateX(-100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Scroll Animation */
@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(100px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from { 
        opacity: 1; 
        transform: translateY(0);
    }
    to { 
        opacity: 0; 
        transform: translateY(-100px);
    }
}

.question-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.question-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.question-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.5;
}

/* Navigation hint */
.nav-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.nav-hint .scroll-arrow {
    animation: bounce 2s infinite;
    display: inline-block;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Options */
.options {
    display: grid;
    gap: 15px;
}

.option-card {
    display: block;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-content {
    font-weight: 600;
}

.option-card input[type="radio"]:checked ~ .option-content::before {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 24px;
}

.option-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-title {
    font-size: 1.1rem;
    color: #333;
}

.option-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Checkbox Options */
.checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-card {
    display: block;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.checkbox-card .checkbox-content {
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
}

.checkbox-card:hover {
    border-color: #667eea;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content {
    font-weight: 600;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #f0f3ff;
}

.checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-title {
    color: #333;
}

/* Form Inputs */
.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 50px;
}

.form-inputs input,
.form-inputs textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-inputs input:focus,
.form-inputs textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.continue-btn,
.pay-btn {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.continue-btn:hover,
.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Summary Section */
.summary-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.summary-content h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 600;
}

.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.price-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-box p {
    opacity: 0.9;
}

.scope-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.scope-notice h4 {
    color: #856404;
    margin-bottom: 10px;
}

.scope-notice p {
    color: #856404;
    margin-bottom: 15px;
}

.payment-options {
    text-align: center;
    margin: 25px 0 20px;
}

.saved-notice {
    color: #555;
    font-size: 15px;
    margin: 0 0 25px 0;
    line-height: 1.6;
    text-align: center;
}

.saved-notice a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.saved-notice a:hover {
    text-decoration: underline;
}

.payment-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.choice-label {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.priority-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.priority-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.priority-badge:active {
    transform: translateY(0);
}

.phase-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.phase-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.phase-details {
    color: #666;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hero-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-title .highlight {
        font-size: 1.9rem;
        display: block;
        margin-top: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .value-props {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .value-item {
        padding: 25px 20px;
    }
    
    .value-item .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .value-item h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    .value-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* CTA Button */
    .cta-button {
        font-size: 1.05rem;
        padding: 16px 32px;
        margin-bottom: 20px;
    }
    
    /* Trust badges - move up to avoid footer overlap */
    .trust-badges {
        font-size: 0.7rem;
        margin-bottom: 70px; /* Increased space for footer */
        padding: 0 10px;
    }
    
    /* Fix powered-by footer positioning */
    .powered-by {
        position: fixed !important;
        bottom: 20px !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        width: fit-content !important;
        max-width: 90% !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        opacity: 1 !important;
        font-size: 0.7rem !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 8px 14px !important;
        border-radius: 25px !important;
        z-index: 9999 !important;
        white-space: nowrap !important;
        visibility: visible !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-align: center !important;
    }
    
    .footer-logo-svg {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }
    
    .powered-by span {
        font-weight: 500 !important;
    }
    
    /* Survey form adjustments */
    .checkbox-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .checkbox-card {
        padding: 12px 8px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .checkbox-card .checkbox-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .checkbox-card .checkbox-content span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .question-content h2 {
        font-size: 1.8rem;
    }
    
    .question-subtitle {
        font-size: 1rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    /* Question slides on mobile */
    .question-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 15px 15px 100px 15px;
        box-sizing: border-box;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: none;
        background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%) !important;
    }
    
    .question-slide.active {
        display: block !important;
        overflow-y: auto !important;
    }
    
    /* Make question content scrollable */
    .question-content {
        position: relative;
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 30px;
    }
    
    /* Form inputs with proper spacing */
    .form-inputs {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    /* Ensure buttons are accessible */
    .continue-btn, .pay-btn {
        margin-bottom: 50px;
    }
    
    /* Ensure blue background on all slides */
    .question-slide,
    .question-slide.active {
        background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%) !important;
    }
    
    /* White content boxes */
    .question-content,
    .summary-content {
        background: white !important;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Make summary scrollable */
    .summary-content {
        overflow-y: visible;
        padding-bottom: 30px;
    }
    
    .summary-box {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .price-box {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 15px;
        text-align: center;
        margin: 20px 0;
    }
    
    .price {
        font-size: 2rem;
        font-weight: bold;
        color: white;
    }
    
    /* Ensure content is visible */
    .question-content {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
    }
    
    .question-content h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .question-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    /* Radio and checkbox options */
    .options {
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 30px;
    }
    
    .option-card {
        padding: 14px 12px;
        min-height: auto;
    }
    
    .option-card .option-title {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .option-card .option-desc {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-top: 5px;
        color: #666;
    }
    
    .options {
        gap: 12px;
    }
    
    .option-card {
        padding: 15px;
    }
    
    .nav-hint {
        font-size: 0.8rem;
        bottom: 20px;
    }
}

@media (max-height: 700px) {
    .question-slide {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .question-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .question-subtitle {
        margin-bottom: 30px;
    }
}
/* Extra small mobile devices and height restrictions */
@media (max-height: 700px) {
    .question-slide {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .value-props {
        margin-bottom: 30px;
    }
    
    .powered-by {
        bottom: 5px;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title .highlight {
        font-size: 1.6rem;
    }
    
    .powered-by {
        font-size: 0.7rem;
        padding: 4px 8px;
        gap: 6px;
    }
    
    .footer-logo {
        width: 20px;
        height: 20px;
        padding: 3px;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 14px 25px;
    }
    
    .value-item {
        padding: 20px;
    }
    
    .value-item h3 {
        font-size: 1.1rem;
    }
    
    .value-item p {
        font-size: 0.85rem;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-title .highlight {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .value-item {
        padding: 20px 15px;
    }
    
    .value-item h3 {
        font-size: 1.05rem;
    }
    
    .value-item p {
        font-size: 0.85rem;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 14px 28px;
    }
    
    .powered-by {
        font-size: 0.65rem;
        padding: 5px 10px;
        bottom: 10px;
    }
    
    .footer-logo-wrapper {
        width: 18px !important;
        height: 18px !important;
    }
    
    .footer-logo {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        padding: 2px !important;
    }
    
    .trust-badges {
        font-size: 0.6rem;
    }
    
    /* Even more compact checkboxes for very small screens */
    .checkbox-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .checkbox-card {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
    
    .checkbox-card .checkbox-content span {
        font-size: 0.7rem;
    }
}

/* Ensure footer is always visible */
@media screen and (max-width: 768px) {
    .powered-by {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure footer centering on all devices */
@media (max-width: 480px) {
    .powered-by {
        font-size: 0.65rem !important;
        padding: 6px 12px !important;
        bottom: 15px !important;
    }
    
    .footer-logo-svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .powered-by {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        -webkit-transform: translateX(-50%) !important;
    }
}

/* Survey Footer - Always visible during survey */
#survey.active .survey-footer {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: fit-content !important;
    z-index: 10002 !important;
}

/* Hide main footer when survey is active */
#survey.active #powered-footer:not(.survey-footer) {
    display: none !important;
}
