/* =========================================================
   EDMO Resources page (Reports and eBooks)
   Scoped with the .rs- prefix to avoid theme collisions
   ========================================================= */

html, body { overflow-x: hidden; }

.rs-page {
    --rs-ink: #221528;
    --rs-muted: #5f5468;
    --rs-purple: #582C7C;
    --rs-purple-dark: #45205F;
    --rs-yellow: #F5E14A;
    --rs-yellow-ink: #3B1F52;
    --rs-lavender: #F5EFFA;
    font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--rs-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.rs-page *, .rs-page *::before, .rs-page *::after { box-sizing: border-box; font-family: inherit; }
.rs-page img { max-width: 100%; display: block; }
.rs-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- HERO ---------------- */
.rs-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 10px 40px;
    background: linear-gradient(160deg, #F1E6FA 0%, #F9F4FD 55%, #fff 100%);
}
.rs-hero::before {
    content: "";
    position: absolute;
    right: -180px; top: -180px;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88,44,124,.10), transparent 68%);
}
.rs-hero::after {
    content: "";
    position: absolute;
    left: -140px; bottom: -220px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,225,74,.22), transparent 70%);
}
.rs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
}
.rs-hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.rs-hero-right { display: flex; justify-content: flex-end; align-items: center; }
.rs-hero h1 {
    margin: 0 0 24px;
    font-size: 60px;
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 700;
    color: var(--rs-ink);
}
.rs-hero h1 span { color: var(--rs-purple); }
.rs-hero-lead {
    margin: 0;
    font-size: 21px;
    line-height: 1.5;
    font-weight: 300;
    color: #3d3345;
    max-width: 540px;
}

/* Hero visual: fanned covers (swap for the generated hero image later) */
.rs-stack { position: relative; width: 100%; max-width: 640px; height: 500px; }
.rs-stack-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(52,21,69,.55);
}
.rs-stack-card img { width: 100%; height: 100%; object-fit: fill; }
.rs-stack-c1 { width: 52%; aspect-ratio: 1/1; left: 0; top: 80px; transform: rotate(-7deg); }
.rs-stack-c3 { width: 52%; aspect-ratio: 1/1; right: 0; top: 70px; transform: rotate(6deg); }
.rs-stack-c2 { width: 62%; aspect-ratio: 692/602; left: 19%; top: 112px; z-index: 2; border: 6px solid #fff; }
.rs-stack-card {
    transition:
        left 0.8s ease,
        top 0.8s ease,
        width 0.8s ease,
        transform 0.8s ease,
        opacity 0.8s ease;
}
.rs-spark { position: absolute; z-index: 3; width: 30px; height: 30px; fill: #F5CF2E; }
.rs-spark-1 { left: 14%; top: 34px; }
.rs-spark-2 { right: 6%; bottom: 24px; width: 22px; height: 22px; }

/* If you replace the stack with a single image */
.rs-hero-img { width: 100%; max-width: 640px; height: auto; }

/* ---------------- FEATURED REPORT ---------------- */
.rs-feat { background: var(--rs-purple); color: #fff; overflow: hidden; }
.rs-feat-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}
.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rs-yellow);
    color: var(--rs-yellow-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 999px;
    margin: 0 0 22px;
}
.rs-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #C9A91E; }
.rs-feat h2 {
    margin: 0 0 20px;
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
    color: #fff;
}
.rs-feat h2 span { color: var(--rs-yellow); }
.rs-feat-desc { margin: 0 0 26px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.92); max-width: 48ch; }
.rs-checks { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.rs-checks li { display: flex; align-items: center; gap: 13px; font-size: 16px; font-weight: 500; color: #fff; margin: 0; }
.rs-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--rs-yellow); display: grid; place-items: center; }
.rs-check svg { width: 12px; height: 12px; stroke: var(--rs-purple); }
.rs-btn-y {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rs-yellow);
    color: var(--rs-yellow-ink);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 18px 28px;
    border-radius: 10px;
    transition: transform .15s ease, filter .2s ease;
}
.rs-btn-y:hover { filter: brightness(1.04); transform: translateY(-1px); color: var(--rs-yellow-ink); }
.rs-btn-y svg, .rs-btn-p svg { width: 17px; height: 17px; stroke: currentColor; }
.rs-feat-img { justify-self: end; width: 100%; }
.rs-feat-img img { width: 100%; height: auto; }

/* ---------------- EBOOK CARDS ---------------- */
.rs-ebooks { padding: 56px 0 64px; }
.rs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rs-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, #F1E9F8 0%, #FAF7FC 100%);
    border-radius: 18px;
    padding: 30px;
}
.rs-cover {
    width: 100%;
	height:280px;
    aspect-ratio: 720/1024;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px -26px rgba(52,21,69,.6);
    margin: 0 0 26px;
}
.rs-cover img { width: 100%; height: 100%; object-fit: fill; }
.rs-card h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
    color: var(--rs-ink);
}
.rs-card-sub { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--rs-purple); }
.rs-card-body { margin: 0 0 26px; font-size: 16.5px; line-height: 1.65; color: var(--rs-muted); max-width: 52ch; }
.rs-btn-p {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rs-purple);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 10px;
    transition: background .2s ease, transform .15s ease;
}
.rs-btn-p:hover { background: var(--rs-purple-dark); transform: translateY(-1px); color: #fff; }

.rs-page a:focus-visible { outline: 3px solid var(--rs-yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
    .rs-hero { min-height: 0; padding: 60px 40px; }
    .rs-hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .rs-hero h1 { font-size: 44px; }
    .rs-hero-lead { font-size: 18px; }
    .rs-hero-right { width: 100%; justify-content: center; }
    .rs-stack { height: 400px; max-width: 560px; }
    .rs-feat-grid { grid-template-columns: 1fr; gap: 32px; }
    .rs-feat-img { justify-self: center; max-width: 520px; }
}
@media (max-width: 720px) {
    .rs-cards { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
		
	.rs-cover {
    width: 100%;
	height:100%;
    aspect-ratio: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px -26px rgba(52,21,69,.6);
    margin: 0 0 26px;
}
.rs-cover img { width: 100%; height: 100%; object-fit: fill; }
	
	
}

@media (max-width: 560px) {
    .rs-hero { padding: 48px 0; }
    .rs-hero h1 { font-size: 36px; }
    .rs-stack { height: 270px; }
    .rs-stack-c1 { top: 40px; }
    .rs-stack-c3 { top: 30px; }
    .rs-stack-c2 { top: 50px; }
    .rs-spark-1 { top: 6px; }
    .rs-spark-2 { display: none; }
    .rs-feat-grid { padding-top: 44px; padding-bottom: 44px; }
    .rs-pill { font-size: 11.5px; letter-spacing: .06em; }
    .rs-checks li { font-size: 15px; align-items: flex-start; }
    .rs-card { padding: 22px; }
    .rs-ebooks { padding: 40px 0 48px; }
	 .rs-footer-note {
        font-size: 11px;
        white-space: nowrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rs-btn-y, .rs-btn-p { transition: none; }
}


/* =========================================================
   STATE OF AUTOMATION - DOWNLOAD MODAL
   ========================================================= */

.rs-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main popup box */
.rs-modal-content {
    position: relative;
    background: #f7f9fb;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Sora', sans-serif !important;
}

/* Close X */
.rs-modal-close {
    position: absolute;
    top: 25px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    z-index: 5;
}

.rs-modal-close:hover {
    color: #1e293b;
}

/* Heading */
.rs-form-card h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e293b;
    margin: 5px 35px 10px 0;
}

/* Description */
.rs-form-card > p {
    font-size: 15px;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.5;
}


/* =========================================================
   FORMINATOR FORM
   ========================================================= */

.rs-form-card .forminator-ui {
    width: 100%;
}

.rs-form-card .forminator-row {
    margin-bottom: 0 !important;
}

.rs-form-card .forminator-col {
    width: 100% !important;
}


/* Labels */

.rs-form-card .forminator-label {
    display: block !important;
    font-size: 14px !important;
    color: #000 !important;
    margin-bottom: 8px !important;
    margin-left: 5px !important;
    font-weight: 400 !important;
}


/* =========================================================
   INPUTS
   ========================================================= */

.rs-form-card .forminator-input,
.rs-form-card .forminator-textarea,
.rs-form-card select {
    width: 100% !important;

    padding: 14px 20px !important;

    border: none !important;

    border-radius: 50px !important;

    background: #eef1f6 !important;

    box-shadow:
        inset 3px 3px 6px #d1d9e6,
        inset -3px -3px 6px #ffffff !important;

    box-sizing: border-box !important;

    outline: none !important;

    margin-bottom: 20px !important;

    min-height: 50px !important;

    font-family: 'Sora' !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    color: #1e293b !important;
}


/* Placeholder */

.rs-form-card .forminator-input::placeholder,
.rs-form-card .forminator-textarea::placeholder {
    font-family: 'Sora' !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    opacity: 1 !important;
}


/* =========================================================
   CHECKBOX / TERMS
   ========================================================= */

.rs-form-card .forminator-checkbox {
    margin-top: 5px !important;
}

.rs-form-card .forminator-checkbox-label {
    font-family: 'Sora' !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
	 color: #1E293B !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.rs-form-card .forminator-button-submit {
    width: 100% !important;

    background-color: #6a2a6b !important;

    color: #ffffff !important;

    border: none !important;

    padding: 16px !important;

    font-family: 'Sora' !important;

    font-size: 17px !important;

    font-weight: 600 !important;

    border-radius: 50px !important;

    cursor: pointer !important;

    margin-top: 40px !important;

    transition: 0.3s !important;
}

.rs-form-card .forminator-button-submit:hover {
    background-color: #551f56 !important;
}


/* Form fields */

.rs-form-card .forminator-field {
    margin-bottom: 0 !important;
}


/* Error messages */

.rs-form-card .forminator-error-message {
    font-size: 12px !important;
    margin-top: -15px !important;
    margin-bottom: 15px !important;
    color: red !important;
}


/* Hide default response area */

.rs-form-card .forminator-response-message {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    display: none;
}


/* Mobile */

@media (max-width: 560px) {

    .rs-modal {
        padding: 15px;
    }

    .rs-modal-content {
        width: 100%;
        max-width: 100%;
        padding: 30px 22px;
        max-height: 90vh;
    }

    .rs-form-card h2 {
        font-size: 24px;
    }

    .rs-form-card .forminator-button-submit {
        margin-top: 25px !important;
    }
}

/* FORCE SORA ONLY ON THE DOWNLOAD FORM */

.rs-form-card,
.rs-form-card *,
.rs-form-card input,
.rs-form-card textarea,
.rs-form-card select,
.rs-form-card button,
.rs-form-card label,
.rs-form-card p,
.rs-form-card span,
.rs-form-card a,
.rs-form-card h1,
.rs-form-card h2,
.rs-form-card h3 {
    font-family: 'Sora' !important;
}

