/* =========================================================================
   Base Styles & Reset - Steve Keen Brand Theme (Review Page)
   ========================================================================= */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-meta: #64748b;
    --primary-btn: #0f172a;
    --primary-btn-hover: #000000;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(to bottom, #e2e8f0 0%, #94a3b8 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

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

/* =========================================================================
   Page Layout - Above the Fold Centered
   ========================================================================= */
.page-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header {
    text-align: center;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-image {
        height: 90px;
    }
}

.page-headline {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-align: center;
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-headline {
        font-size: 1.85rem;
    }
}

/* =========================================================================
   Typeform Embed Container
   ========================================================================= */
.videoask-embed-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

.videoask-embed-container iframe {
    width: 100%;
    border: none;
}

/* Manual Submit Button (fallback) - SECONDARY style so it doesn't compete
   visually with the Typeform's own primary submit button. Wrapper adds a
   visible separator + helper copy clarifying this is a "post-submit" action. */
.manual-submit-wrapper {
    margin-top: 2rem;
    padding: 1.25rem 1rem 0.5rem 1rem;
    border-top: 2px dashed #cbd5e1;
    text-align: center;
    width: 100%;
    max-width: 560px;
}

.manual-submit-helper {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 0.85rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.manual-submit-subnote {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0.75rem 0 0 0;
    font-style: italic;
    line-height: 1.4;
}

.manual-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-btn);
    background: transparent;
    border: 2px solid var(--primary-btn);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, color 0.2s;
    width: 100%;
    max-width: 420px;
    line-height: 1.3;
}

.manual-submit-btn:hover {
    background: var(--primary-btn);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================================
   Footer (Disclaimer text)
   ========================================================================= */
.page-footer {
    text-align: center;
    padding: 2rem 1rem 4rem 1rem;
    color: var(--text-meta);
    font-size: 0.75rem;
    flex-shrink: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================================================
   Modal / Popup Styles
   ========================================================================= */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    z-index: 10;
}

/* Success Header */
.success-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 56px;
    height: 56px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.75rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Contact Options */
.contact-option {
    margin-bottom: 0.5rem;
}

.option-label {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.option-instructions {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.link-highlight {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

/* Copy Box */
.copy-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0.75rem;
}

.copy-box:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.copy-box.copied {
    background: #f0fdf4;
    border-color: #86efac;
}

.copy-text {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.copy-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.copy-badge.copied {
    background: #22c55e;
    color: white;
}

/* Skool Button */
.skool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.skool-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.skool-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

/* Email Button */
.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--primary-btn);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.email-btn:hover {
    background: #FFFC9B;
    color: var(--primary-btn);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Option Divider */
.option-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.option-divider::before,
.option-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.option-divider span {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Modal Footer Note */
.modal-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
}

/* =========================================================================
   Email Verification Form
   ========================================================================= */
.verify-form {
    margin-top: 0.5rem;
}

.verify-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.verify-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: white;
}

.verify-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.verify-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.85rem;
    line-height: 1.4;
}

.verify-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background: var(--primary-btn);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verify-btn:hover:not(:disabled) {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   Loading Animation Screen
   ========================================================================= */
.loading-container {
    text-align: center;
    padding: 1.5rem 0;
}

/* Waveform animation */
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.wave-bar {
    width: 6px;
    height: 10px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 100px;
    animation: waveform 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes waveform {
    0%, 100% {
        height: 10px;
        opacity: 0.4;
    }
    50% {
        height: 50px;
        opacity: 1;
    }
}

.loading-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    transition: opacity 0.25s ease;
}

.loading-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Progress bar */
.loading-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 40%, #ec4899 70%, #22c55e 100%);
    background-size: 200% 100%;
    border-radius: 100px;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-fun-fact {
    font-size: 0.9rem;
    color: var(--text-meta);
    font-weight: 500;
    transition: opacity 0.25s ease;
}


/* =========================================================================
   Progress Tracker
   ========================================================================= */
.review-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.progress-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-meta);
}

.progress-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-check.checked {
    background: #22c55e;
    color: white;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.25rem;
    margin-bottom: 1.2rem;
}

/* =========================================================================
   Review Text Display
   ========================================================================= */
.review-text-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.review-text-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.review-text-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* =========================================================================
   Step Buttons — sequential state machine (active / pending / done)
   ========================================================================= */
.step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 1.25rem;
    margin-top: 0.65rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
    text-decoration: none;
    line-height: 1.3;
    text-align: left;
}

.step-btn .step-btn-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 1.1rem;
    border-radius: 4px;
}

.step-btn .step-btn-label {
    flex: 1;
    text-align: left;
}

/* ACTIVE — current step, BLACK with prominent shadow */
.step-btn.step-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
    animation: step-pulse 2.2s ease-in-out infinite;
}

.step-btn.step-active:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.36);
}

@keyframes step-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3); }
    50%      { box-shadow: 0 6px 22px rgba(15, 23, 42, 0.5); }
}

/* PENDING — not yet the user's turn, muted but still clickable */
.step-btn.step-pending {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
    opacity: 0.75;
}

.step-btn.step-pending:hover {
    background: #e2e8f0;
    color: #64748b;
    opacity: 1;
}

.step-btn.step-pending .step-btn-icon {
    opacity: 0.5;
}

/* DONE — completed, GREEN with checkmark. Stays CLICKABLE so the user can re-open links / re-copy text. */
.step-btn.step-done {
    background: #dcfce7;
    color: #15803d;
    border-color: #22c55e;
    box-shadow: none;
}

.step-btn.step-done:hover {
    background: #bbf7d0;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.25);
}

.step-btn.step-done .step-btn-icon {
    opacity: 0.85;
}

/* =========================================================================
   Step 2 Visual Helper Card — shown after Step 1 is clicked
   Shows a real screenshot of Skool's "Write something..." box so the user
   knows exactly what they're looking for once the new tab opens.
   ========================================================================= */
.step-helper {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #eff6ff;
    border: 2px solid #93c5fd;
    border-radius: 10px;
    animation: helper-fade-in 0.35s ease-out;
}

@keyframes helper-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.helper-headline {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
    text-align: center;
    line-height: 1.3;
}

.helper-screenshot {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    margin: 0.6rem auto 0 auto;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.12);
}

/* On mobile, image takes full container width — text inside the screenshot needs to be readable */
@media (max-width: 600px) {
    .helper-screenshot {
        max-width: 100%;
    }
}

.helper-steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #1e293b;
}

.helper-steps li {
    margin-bottom: 0.25rem;
}

.helper-steps li:last-child {
    margin-bottom: 0;
}

.helper-steps strong {
    color: #0f172a;
    background: #fef9c3;
    padding: 0.05rem 0.28rem;
    border-radius: 3px;
}

/* =========================================================================
   Step 3 Container (revealed after Step 2 confirmation)
   ========================================================================= */
#step3Container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #cbd5e1;
}

.claim-message-box {
    background: #fefce8;
    border: 2px solid #fde047;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.claim-message-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a16207;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.claim-message-text {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.5;
    margin: 0 0 0.7rem 0;
    white-space: pre-wrap;
}

/* Explicit "Copy This Message" button inside the claim-message-box */
.copy-msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid #a16207;
    border-radius: 8px;
    background: #fef3c7;
    color: #78350f;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.copy-msg-btn:hover {
    background: #fde68a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(161, 98, 7, 0.25);
}

.copy-msg-btn-copied {
    background: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
    pointer-events: none;
}

.email-alt-link {
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: underline;
}

.email-alt-link:hover {
    color: #0f172a;
}

/* =========================================================================
   Incentive Banner
   ========================================================================= */
.incentive-banner,
.all-done-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.all-done-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.incentive-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.incentive-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1.25rem;
    }

    .progress-line {
        width: 24px;
    }

    .review-progress {
        gap: 0;
    }

    .platform-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }
}
