/*
Theme Name: Carnoustie Medical Group Forms Child
Theme URI: https://www.carnoustiemedicalgroup.co.uk
Description: Child theme for forms sub-site matching Carnoustie Medical Group design.
Author: You
Template: generatepress
Version: 1.0
*/

/* ===== GLOBAL TYPOGRAPHY ===== */

html,
body {
    background-color: #ffffff;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;          /* slightly smaller, like the main site */
    line-height: 1.6;
    color: #333333;           /* softer than pure black */
}

/* Paragraphs and lists in main content */
body.page .inside-article p,
body.page .inside-article ul,
body.page .inside-article ol,
body.page .inside-article li {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1em;
}

body.page .inside-article li {
    margin-bottom: 0.4em;
}

/* Headings in content area */
body.page .inside-article h1 {
    font-size: 28px;
    font-weight: 200;
    text-transform: none;
    color: #222222;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
}

body.page .inside-article h2 {
    font-size: 22px;
    font-weight: 200;
    text-transform: none;
    color: #222222;
    line-height: 1.25;
    margin-top: 28px;
    margin-bottom: 16px;
}

body.page .inside-article h3 {
    font-size: 18px;
    font-weight: 200;
    text-transform: none;
    color: #222222;
    line-height: 1.3;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* ===== HEADER LAYOUT ===== */

/* Outer header wrapper (top of page) */
.cmg-header {
    background-color: #ffffff;
}

/* Top white bar with logo container */
.cmg-logobar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cmg-logobar-inner {
    max-width: 1100px;         /* adjust to match main site container width */
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
}

/* Logo link & image */
.cmg-logo-link {
    display: inline-block;
    line-height: 0;
}

.cmg-logo-img {
    max-height: 60px;          /* tweak to match main site header logo size */
    width: auto;
    height: auto;
    display: block;
}

.cmg-logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
}

/* Title bar under the logo */
.cmg-titlebar {
    background-color: #F7F7F7;
    color: #555555;
}

.cmg-titlebar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 28px;          /* slightly more vertical padding */
    display: flex;
    align-items: center;         /* vertically centre the text */
}

/* Title text inside the bar */
.cmg-titlebar-title {
    margin: 0;
    font-size: 26px;             /* slightly smaller, like main site */
    font-weight: 200;            /* a bit stronger than 200, but not too bold */
    line-height: 1.3;
    text-transform: none;        /* ensure no accidental uppercase */
    color: #555555;
}

/* ===== MAIN CONTENT AREA ===== */

/* Centre and constrain main page content */
body.page .site-main {
    display: flex;
    justify-content: center;
}

body.page .site-main > * {
    width: 100%;
}

body.page .inside-article {
    max-width: 1100px;          /* same as header containers */
    margin: 30px auto 40px auto;
    padding: 0px 20px 40px;
    background-color: transparent;  /* no separate white box */
}


/* Hide default GeneratePress page title since we show it in the title bar */
body.page .entry-header {
    display: none;
}

/* ===== RESPONSIVE TWEAKS ===== */

@media (max-width: 768px) {
    .cmg-logobar-inner,
    .cmg-titlebar-inner {
        max-width: 100%;
        padding: 12px 16px;
    }

    .cmg-logo-img {
        max-height: 48px;
    }

    .cmg-titlebar-title {
        font-size: 18px;
    }

    body.page .inside-article {
        max-width: 100%;
        padding: 16px 12px 24px;
        margin-top: 20px;
    }

    body.page .inside-article h1 {
        font-size: 24px;
    }

    body.page .inside-article h2 {
        font-size: 20px;
    }

    body.page .inside-article h3 {
        font-size: 16px;
    }
}

/* Reduce space between title bar and page content */
.cmg-titlebar {
    margin-bottom: 0;
}

body.page .inside-article {
    margin-top: 16px;   /* was effectively ~30px */
}

/* =====================================================
   WPForms — site-wide typography to match CMG main site
   ===================================================== */

/* Base form text */
body .wpforms-container .wpforms-form,
body .wpforms-container .wpforms-form input,
body .wpforms-container .wpforms-form select,
body .wpforms-container .wpforms-form textarea,
body .wpforms-container .wpforms-form label,
body .wpforms-container .wpforms-form .wpforms-field-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #333333;
}

/* Field labels — lighter and calmer */
body .wpforms-container .wpforms-form label {
    font-weight: 600 !important;
    margin-bottom: 4px;
}

/* Section / page titles inside forms */
body .wpforms-container .wpforms-form .wpforms-title,
body .wpforms-container .wpforms-form .wpforms-pagebreak-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #222222;
    margin-bottom: 12px;
}

/* Progress indicator text */
body .wpforms-container .wpforms-form .wpforms-page-indicator {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555555;
}

/* Reduce vertical spacing between fields slightly */
body .wpforms-container .wpforms-form .wpforms-field {
    margin-bottom: 14px;
}


.small { font-size: 0.7rem;}

