body, html {
    overflow-x: hidden;
}

/* 1. Success Message Box: Container Only */
body .wpforms-container-full .wpforms-confirmation-container-full {
    background: linear-gradient(to bottom, #E4DCD1, #F7F3EE) !important; /* Gradient background */
    border: 2px solid #D1C6BA !important; /* Complementary warm border */
    border-radius: 8px !important;
    padding: 60px 50px 50px 50px !important; /* Spacious rectangular shape */
    text-align: center !important;
    max-width: 1000px !important; /* Wide enough to fit all sentences on one line */
    width: 95% !important; /* Responsive */
    margin: 0 auto !important; /* Center box */
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05) !important; /* Soft inner shadow */
    line-height: 1.6 !important;
}

/* 2. Text and links inside the container */
body .wpforms-container-full .wpforms-confirmation-container-full,
body .wpforms-container-full .wpforms-confirmation-container-full p,
body .wpforms-container-full .wpforms-confirmation-container-full p span,
body .wpforms-container-full .wpforms-confirmation-container-full a {
    color: #4d4d4d !important; /* Dark grey text */
    text-transform: none !important; /* Prevent all-caps */
    text-decoration: none !important; /* Remove forced underline */
    font-weight: normal !important;
    font-size: 16px !important;
}

/* 3. Paragraph spacing and first-line control */
body .wpforms-container-full .wpforms-confirmation-container-full p {
    margin: 0 auto 15px auto !important; /* Space between lines */
}

body .wpforms-container-full .wpforms-confirmation-container-full p span.first-line {
    display: inline-block !important;
    margin-bottom: 15px !important; /* Space below first line */
}

/* 4. Links: Warm Accent */
body .wpforms-container-full .wpforms-confirmation-container-full a {
    color: #A67C61 !important; /* Warm accent */
    text-decoration: underline !important; /* Only underline links intentionally */
    font-weight: 700 !important;
    text-transform: none !important; /* Ensure normal case */
}

/* 5. Hover Effect: Slightly Brighter Accent */
body .wpforms-container-full .wpforms-confirmation-container-full a:hover {
    color: #B08B70 !important;
    text-decoration: none !important;
}


/* 1. Force the entire document and all sub-elements to 16px */
#cmplz-document, 
#cmplz-document * {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333333 !important; /* Set a dark color for all general text */
}

/* 2. Fix the white link - Change #0073aa to your preferred brand color */
#cmplz-document a {
    color: #0073aa !important; 
    text-decoration: underline !important;
    font-size: 16px !important;
}

/* 3. Target the plugin's internal CSS variables (The "Force" Method) */
:root {
    --cmplz_text_font_size: 16px !important;
    --cmplz_link_color: #0073aa !important;
    --cmplz_subtitle_font_size: 16px !important;
}


