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

/* Dark room ambient simulation - keeping the laptop screen glow but page is white/blue */
body {
    background: #0a0c10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 70, 150, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Main browser container */
.browser-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: all 0.2s;
}

.webpage-content {
    background: #ffffff;
    min-height: 560px;
    padding: 2rem 2rem 2rem 2rem;
    position: relative;
}

.page {
    transition: opacity 0.3s ease;
}

.page.hidden {
    display: none;
}

/* ============================
   SSA LOGO STYLES - White/Blue Theme
   ============================ */
.logo-container {
    text-align: center;
    margin-bottom: 1.8rem;
}

.ssa-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 20px;
    background: #f5f8fc;
    border-radius: 60px;
    border: 1px solid #dce3ed;
    display: inline-flex;
}

.ssa-logo-img {
    height: 48px;
    width: auto;
    display: inline-block;
}

.ssa-logo-text {
    font-size: 28px;
    font-weight: 600;
    color: #003366;
    letter-spacing: -0.5px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ============================
   SSA Theme - Blue and White
   ============================ */
.document-card {
    background: #f8faff;
    border: 1px solid #c5d5e8;
    border-radius: 28px;
    padding: 2rem 1.8rem;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 51, 102, 0.04);
}

.document-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #003366;
    margin: 0.5rem 0 0.5rem 0;
}

.document-sub {
    color: #4a6a8a;
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

.document-icon {
    font-size: 56px;
    margin-bottom: 1rem;
}

.preparing-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #eaf0f8;
    padding: 14px 24px;
    border-radius: 60px;
    margin: 1.5rem auto;
    width: fit-content;
    color: #003366;
}

.spinner-dots {
    display: flex;
    gap: 7px;
}

.spinner-dots span {
    width: 10px;
    height: 10px;
    background: #004080;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.2s infinite ease-in-out both;
}

.spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinner-dots span:nth-child(2) { animation-delay: -0.16s; }
.spinner-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.secure-badge {
    background: #e6f0f7;
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    color: #003366;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
}

.info-note {
    background: #eaf0f8;
    border-left: 3px solid #003366;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    color: #003366;
    margin-top: 2rem;
    border-radius: 14px;
    text-align: left;
}

/* Page 2 (landing) styles - SSA Blue/White Theme */
.download-header {
    margin-bottom: 1.5rem;
    border-left: 4px solid #003366;
    padding-left: 1rem;
}

.download-header h2 {
    font-size: 1.65rem;
    color: #003366;
    font-weight: 600;
}

.success-check {
    background: #e8f0f8;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1rem 0;
    border: 1px solid #b8cde0;
}

.check-circle {
    background: #003366;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Changes Summary Section - Blue/White Theme */
.changes-summary {
    background: #f5f8fc;
    border-radius: 16px;
    padding: 1.2rem 1.2rem;
    margin: 1.2rem 0;
    border: 1px solid #dce3ed;
    transition: opacity 0.5s ease, max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
    overflow: hidden;
}

.change-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8edf4;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 4px;
}

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

.change-label {
    font-weight: 600;
    color: #003366;
}

.change-value {
    color: #2c3e50;
    text-align: right;
}

.flag-note {
    background: #f0f5fa;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 6px;
    border-left: 3px solid #003366;
}

.flag-note .change-label {
    color: #003366;
}

.flag-note .change-value {
    color: #4a6a8a;
}

/* Download Button - SSA Blue */
.download-btn {
    background: #003366;
    width: 100%;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 56px;
    cursor: pointer;
    transition: 0.2s;
    margin: 1.2rem 0 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
    text-align: center;
}

.download-btn:hover {
    background: #002855;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.3);
}

/* Instruction Tip - SSA Themed (no yellow) */
.instruction-tip-ssa {
    background: #eaf0f8;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
    border: 1px solid #b8cde0;
}

.instruction-tip-ssa strong {
    color: #003366;
}

/* Redirect Message - SSA Themed */
.redirect-message {
    background: #eaf0f8;
    border-radius: 48px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1.6rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    color: #003366;
}

.redirect-message:hover {
    background: #d5e3f0;
}

.footer-help {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #6f85a3;
}

.footer-help a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.footer-help a:hover {
    text-decoration: underline;
}

/* ============================
   DOCUSIGN FOOTER
   ============================ */
.docusign-footer {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #dce3ed;
    text-align: center;
}

.docusign-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.docusign-logo {
    height: 19px;
    width: auto;
    display: inline-block;
    border: 0;
}

.docusign-text {
    font-size: 11px;
    color: #6f85a3;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Windows taskbar */
.windows-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e2e;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    z-index: 100;
    backdrop-filter: blur(4px);
    border-top: 1px solid #3a3a4a;
}

.taskbar-icon {
    background: #2a2a38;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 18px;
}

.taskbar-start {
    background: #2b5797;
}

.taskbar-time {
    margin-left: auto;
    color: #ddd;
    font-size: 12px;
    font-family: monospace;
    background: #2a2a38;
    padding: 4px 12px;
    border-radius: 20px;
}

/* subtle camera movement */
@keyframes subtleShake {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    30% { transform: translate(0.6px, -0.2px) rotate(0.02deg); }
    60% { transform: translate(-0.3px, 0.4px) rotate(-0.01deg); }
    85% { transform: translate(0.3px, 0.1px) rotate(0.01deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.browser-container {
    animation: subtleShake 5s infinite ease-in-out;
    transform-origin: center;
}

/* Mobile Blocker */
.mobile-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.mobile-blocker-content {
    background: linear-gradient(145deg, #ffffff 0%, #f5f8fc 100%);
    max-width: 380px;
    margin: 20px;
    padding: 40px 30px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.5s ease;
    border: 1px solid rgba(0, 51, 102, 0.15);
}

.mobile-blocker-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.mobile-device-icon {
    font-size: 42px;
    margin: 20px 0;
    background: #eaf0f8;
    padding: 15px;
    border-radius: 60px;
}

.windows-icon {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0;
    letter-spacing: 1px;
}

.mobile-blocker-content h2 {
    color: #003366;
    font-size: 1.7rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-blocker-content p {
    color: #4a6a8a;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 15px;
}

.mobile-blocker-footer {
    margin-top: 25px;
    font-size: 11px;
    color: #8899b0;
    letter-spacing: 0.5px;
}

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

/* Hide changes summary animation - slower for 13 seconds */
.changes-summary.hidden-summary {
    opacity: 0;
    max-height: 0;
    padding: 0 1.2rem;
    margin: 0;
    overflow: hidden;
    border: none;
}

@media (max-width: 680px) {
    .webpage-content {
        padding: 1.5rem;
    }
    .document-title {
        font-size: 1.4rem;
    }
    .download-header h2 {
        font-size: 1.3rem;
    }
    .ssa-logo-img {
        height: 36px;
    }
    .ssa-logo-text {
        font-size: 20px;
    }
    .change-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .change-value {
        text-align: left;
    }
    .docusign-text {
        font-size: 10px;
    }
    .docusign-logo {
        height: 16px;
    }
}