/* ==========================================
   SiteRooster Sales Page — $1 Trial Signup Modal
   Prefix: srk- (SiteRooster Keyword)
   Two-panel: left preview + right two-step form
   ========================================== */

/* Overlay */
.srk-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.srk-overlay.srk-visible {
    display: flex;
    opacity: 1;
}

/* Modal card */
.srk-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.srk-overlay.srk-visible .srk-modal {
    transform: translateY(0) scale(1);
}

/* ---- LEFT PANEL (preview image) ---- */
.srk-preview {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0c1929 0%, #0a2540 40%, #0c4a6e 100%);
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.srk-preview::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    pointer-events: none;
}

.srk-preview::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    pointer-events: none;
}

.srk-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-bottom: 18px;
}

.srk-preview-badge svg {
    width: 12px;
    height: 12px;
}

.srk-preview-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
    margin: 0 0 10px 0;
}

/* Trust anchor — "Join 150+ sites..." */
.srk-preview-anchor {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.srk-preview-anchor strong {
    color: #38bdf8;
    font-weight: 600;
}

/* Legacy keyword line (still supported for tool-search variants) */
.srk-preview-keyword {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

.srk-preview-keyword strong {
    color: #38bdf8;
    font-weight: 600;
}

/* Trust tiles — 4 risk-reduction guarantees in 2x2 grid */
.srk-trust-tiles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.srk-trust-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 160ms ease, border-color 160ms ease;
}

.srk-trust-tile:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(56, 189, 248, 0.25);
}

.srk-trust-tile-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
}

.srk-trust-tile-head svg {
    width: 13px;
    height: 13px;
    color: #38bdf8;
    flex-shrink: 0;
    stroke-width: 2.3;
}

.srk-trust-tile-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin-left: 19px; /* aligns with text after icon */
}

/* Payment security row — bottom of left panel */
.srk-sec-row {
    position: relative;
    z-index: 1;
    margin-top: auto; /* push to bottom */
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.srk-sec-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.srk-sec-badges {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 12px;
}

.srk-sec-badge {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 6px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

.srk-sec-badge svg {
    width: 11px;
    height: 11px;
    color: #38bdf8;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.srk-sec-badge.is-stripe {
    padding: 4px 10px;
}

.srk-sec-stripe-logo {
    height: 22px;
    width: auto;
    opacity: 0.95;
    filter: brightness(1.15);
    display: block;
}

.srk-sec-note {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* ---- RIGHT PANEL (form) ---- */
.srk-form-panel {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.srk-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
}

.srk-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.srk-close svg {
    width: 16px;
    height: 16px;
}

/* ---- STEP HEADER (inside right panel) ---- */
.srk-step-header {
    background: linear-gradient(140deg, #0c1929 0%, #0a2540 40%, #0c4a6e 100%);
    padding: 18px 24px 16px;
    position: relative;
    overflow: hidden;
}

.srk-step-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.srk-step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
}

.srk-step-dot {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.srk-step-dot.srk-active {
    background: #e0f2fe;
}

.srk-step-dot.srk-inactive {
    background: rgba(255, 255, 255, 0.2);
}

.srk-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.srk-step-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 3px;
    position: relative;
}

.srk-step-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
    position: relative;
}

/* ---- STEP BODY ---- */
.srk-step-body {
    padding: 22px 24px 24px;
    flex: 1;
}

/* ---- TRIAL FEATURES CARD ---- */
.srk-trial-card {
    border: 1.5px solid #0ea5e9;
    border-radius: 12px;
    background: #f0fdf7;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.srk-trial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.srk-trial-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.srk-trial-card-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.srk-trial-card-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.srk-trial-card-price .srk-dollar {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    padding-top: 4px;
}

.srk-trial-card-price .srk-amount {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.srk-trial-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.srk-trial-features li {
    font-size: 12px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 5px;
}

.srk-trial-features li svg {
    flex-shrink: 0;
}

/* ---- STRIPE CARD ELEMENT ---- */
.srk-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.srk-ssl-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #0ea5e9;
    background: #f0fdf7;
    border: 1px solid #e0f2fe;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.srk-ssl-badge svg {
    width: 11px;
    height: 11px;
}

.srk-stripe-mount {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 13px 14px;
    background: #fff;
    margin-bottom: 6px;
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.srk-stripe-mount:focus-within,
.srk-stripe-mount.StripeElement--focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.srk-stripe-error {
    display: none;
    color: #ef4444;
    font-size: 12px;
    min-height: 16px;
    margin-bottom: 14px;
}

/* ---- TRUST ROW ---- */
.srk-trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.srk-trust-items {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srk-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
}

.srk-trust-item svg {
    width: 12px;
    height: 12px;
}

.srk-stripe-logo {
    height: 20px;
    opacity: 0.6;
}

/* ---- CTA BUTTON (shared by both steps) ---- */
.srk-cta-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.srk-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.srk-cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srk-cta-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ---- STEP 1 FOOTER ---- */
.srk-step1-footer {
    margin-top: 16px;
}

.srk-no-renewal {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.srk-no-renewal svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.srk-step1-links {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.srk-step1-links a {
    color: #6b7280;
    text-decoration: none;
}

.srk-step1-links a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.srk-step1-links .srk-link-sep {
    color: #d1d5db;
}

/* ---- STEP 2: ACCOUNT FORM ---- */
.srk-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}

.srk-back-btn:hover {
    color: #374151;
}

.srk-back-btn svg {
    width: 14px;
    height: 14px;
}

/* Error message */
.srk-error {
    display: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-bottom: 14px;
    text-align: center;
}

/* Form fields */
.srk-field {
    margin-bottom: 14px;
}

.srk-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.srk-field input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.srk-field input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.srk-field input::placeholder {
    color: #9ca3af;
}

/* Password wrapper */
.srk-pw-wrap {
    position: relative;
}

.srk-pw-wrap input {
    padding-right: 56px;
}

.srk-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.srk-pw-toggle:hover {
    color: #0ea5e9;
}

/* Password strength / match indicators */
.srk-pw-indicator {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

/* Turnstile */
.srk-turnstile-wrap {
    margin-bottom: 14px;
}

/* Terms */
.srk-terms {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.srk-terms a {
    color: #9ca3af;
    text-decoration: none;
}

.srk-terms a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* ---- SUCCESS STATE ---- */
.srk-success {
    display: none;
    padding: 40px 0;
    text-align: center;
}

.srk-success-icon {
    width: 56px;
    height: 56px;
    background: #f0fdf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.srk-success-icon svg {
    width: 26px;
    height: 26px;
}

.srk-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.srk-success-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .srk-modal {
        flex-direction: column;
        max-height: 100vh;
        border-radius: 14px;
        overflow-y: auto;
    }

    /* Hide the entire left preview panel on mobile — form is all that matters */
    .srk-preview {
        display: none;
    }

    .srk-form-panel {
        max-height: none;
        overflow-y: visible;
    }

    .srk-step-body {
        padding: 20px;
    }

    .srk-step-header {
        padding: 14px 20px 12px;
    }

    .srk-trial-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .srk-overlay {
        padding: 0;
    }

    .srk-modal {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .srk-step-body {
        padding: 18px 16px;
    }

    .srk-step-header {
        padding: 12px 16px 10px;
    }
}

/* ---- Error overlay ---- */
.srk-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    padding: 24px;
}

.srk-error-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.srk-error-icon {
    margin-bottom: 12px;
}

.srk-error-msg {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    margin: 0 0 20px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.srk-error-dismiss {
    display: inline-block;
    padding: 10px 28px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, sans-serif;
    transition: background 0.15s ease;
}

.srk-error-dismiss:hover {
    background: #0284c7;
}