/* Gifted child / precocity screening page-specific layout fixes.
   Loaded after modern.css; global stylesheet remains untouched. */

body.gifted-child-screening-page .precocite-screening .video-block {
    margin-bottom: 2rem !important;
}

body.gifted-child-screening-page .precocite-screening .video-block + h2 {
    margin-top: 0 !important;
    padding-top: 0.35rem !important;
}

/* Four process steps: 1–2 on first row, 3–4 underneath. */
body.gifted-child-screening-page .precocite-screening .steps-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

body.gifted-child-screening-page .precocite-screening .steps-grid .step-card {
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Center the questionnaire CTA inside the purchase box. */
body.gifted-child-screening-page .precocite-screening .purchase-box .modern-actions {
    justify-content: center !important;
    text-align: center !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

body.gifted-child-screening-page .precocite-screening .purchase-box .modern-actions .button {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media screen and (max-width: 736px) {
    body.gifted-child-screening-page .precocite-screening .steps-grid {
        grid-template-columns: 1fr !important;
    }

    body.gifted-child-screening-page .precocite-screening .video-block {
        margin-bottom: 1.5rem !important;
    }
}
