/* Become a Corporate Partner page (page-corporate-partner.php). Ported from mockups/corporate-partner/option-3.html. */
/* Option 1: Three Green Strips (Workplace Giving rhythm). Elements borrowed from live pages are noted. */
.cp { color: #414042; font-size: 1.05rem; line-height: 1.6; }
.cp h2 { color: #5e8947; font-weight: 700; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1rem; text-wrap: balance; }
.cp h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.cp p { margin-bottom: 1rem; }
.cp .measure { max-width: 46rem; }                /* ~75 characters at this size */
.cp .measure.mx-auto { text-align: center; }
/* 7rem keeps the baked-in title inside a 390px phone (title spans the middle 58% of the 1920 image). */
.cp-banner img { width: 100%; height: auto; min-height: 7rem; object-fit: cover; display: block; }
.cp .container { padding-left: 15px !important; padding-right: 15px !important; }
.cp .btn-cp { font-weight: 700; text-transform: uppercase; padding: 1rem 2.5rem; border-radius: .25rem; margin: 0 .5rem 1rem; width: auto; font-size: .9rem; }
.cp .btn-cp.btn-primary { color: #fff; }
.cp .btn-cp.btn-secondary { color: #2c442c; }
.cp .btn-cp.btn-secondary:hover, .cp .btn-cp.btn-secondary:focus { color: #fff; } /* site hover bg is #3f5631 */

/* Intro: About page "Our Story" block with the Australia watermark */
.cp-intro { padding-top: 4rem; padding-bottom: 3rem; }
.cp-intro .col-lg-8 { background: url(/ras-images/home_9.png) center / contain no-repeat; }

/* Bright-green statement strip: Workplace Giving #greenstrip */
.cp-strip { background: #5e8947; color: #fff; text-align: center; padding: 3.5rem 1rem 3.5rem; position: relative; }
.cp-strip h2 { color: #fff; margin-bottom: .5rem; }
.cp-strip .strip-lead { font-size: 2rem; font-weight: 700; line-height: 1.25; margin: 0; }
.cp-strip .strip-lead + p { font-size: 1.25rem; font-weight: 600; margin: .75rem auto 0; max-width: 46rem; }
.cp-strip.has-overlap { padding-bottom: 5rem; }
.cp-strip .btn-overlap { position: absolute; left: 50%; bottom: -1.65rem; transform: translateX(-50%); margin: 0; box-shadow: 0 .5rem 1.5rem rgba(44,68,44,.25); white-space: nowrap; }
.cp-after-strip { padding-top: 4.5rem; }

/* White tile: Our Partners .partner-tile */
.cp-tile { background: #fff; padding: 30px 24px; box-shadow: 0 .25rem 2.5rem rgba(0,0,0,.05); border: 1px solid #ededed; height: 100%; display: flex; flex-direction: column; }
.cp-tile h3 { color: #5e8947; margin-bottom: .75rem; }
.cp-tile p:last-child { margin-bottom: 0; }

.cp-section { padding-top: 4rem; padding-bottom: 4rem; }
.cp-band-grey { background: #f4f3f7; }
.cp-section h2.centred { text-align: center; margin-bottom: 2rem; }

/* Logo row: Our Partners "Supporters" */
.cp-logo { background: #fff; border: 1px solid #ededed; height: 120px; display: flex; align-items: center; justify-content: center; padding: 1.25rem; margin-bottom: 1.5rem; }
.cp-logo img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }

/* Impact strip: About 2023 .impact-stat-banner on the footer green */
.cp-impact { background: #2c442c; color: #fff; text-align: center; padding: 4rem 0; position: relative; overflow: hidden; }
.cp-impact h2 { color: #fff; margin-bottom: 2.5rem; }
.cp-impact .stat-value { font-weight: 700; font-size: 3.25rem; line-height: 1; color: #8dc63f; font-variant-numeric: tabular-nums; }
.cp-impact .stat-text { font-size: 1.1rem; margin-top: .75rem; color: #e3ecdc; }
.cp-impact .stat-col { margin-bottom: 2rem; }

/* Quote tiles */
.cp-quote .quote-logo { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.cp-quote .quote-logo img { max-height: 64px; max-width: 160px; object-fit: contain; }
.cp-quote blockquote { margin: 0 0 1.25rem; font-size: 1rem; }
.cp-quote blockquote p:last-child { margin-bottom: 0; }
.cp-quote .attribution { margin-top: auto; color: #4c5e2a; font-weight: 700; font-size: .95rem; }
.cp-quote .attribution span { display: block; font-weight: 400; color: #414042; }

/* Form card: Workplace Giving #wg-contact .form */
.cp-form { background: rgba(80,93,49,.95); border-radius: 1rem; padding: 2.5rem; color: #fff; text-align: left; }
.cp-form .form-note { font-size: .85rem; color: #e3ecdc; margin: 1rem 0 0; text-align: center; }
.cp ::selection { background: #8dc63f; color: #2c442c; }
.cp a:focus-visible, .cp .btn-cp:focus-visible { outline: 3px solid #2c442c; outline-offset: 2px; }

@media (max-width: 767.98px) {
	.cp h2 { font-size: 1.75rem; }
	.cp-strip .strip-lead { font-size: 1.5rem; }
	.cp-section { padding-top: 3rem; padding-bottom: 3rem; }
	.cp-intro { padding-top: 2.5rem; }
	.cp .btn-cp { width: 100%; margin-left: 0; margin-right: 0; }
	.cp-strip .btn-overlap { width: calc(100% - 2rem); white-space: normal; }
	.cp-impact .stat-value { font-size: 2.25rem; }
	.cp .stat-col { flex: 0 0 100%; max-width: 100%; }
	.cp-form { padding: 1.5rem; }
}
/* 1A "Marks and rules": three additions to option 1.
   1. Brand-mark watermark in the impact band (as on the About page Mission/Vision panels).
   2. A 1px light-green rule under every tile heading (the Stories of Change accordion rule).
   3. Partner logos rest in greyscale and return to colour on hover; "Meet Our Partners" becomes an outline button. */
.cp-impact::after { content: ""; position: absolute; right: -4rem; bottom: -6rem; width: 34rem; height: 34rem; background: url(ra_img/corporate-partner/watermark.png) center / contain no-repeat; opacity: .07; pointer-events: none; }
.cp-impact .container { position: relative; }
.cp-tile h3 { padding-bottom: .6rem; border-bottom: 1px solid #a7cc87; }
.cp-logo img { filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.cp-logo:hover img, .cp-logo:focus-visible img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cp-logo img { transition: none; } }
.cp-link { color: #5e8947; font-weight: 700; display: inline-block; border: 2px solid #5e8947; border-radius: .25rem; padding: .8rem 2rem; text-transform: uppercase; font-size: .9rem; }
.cp-link:hover { background: #2c442c; border-color: #2c442c; color: #fff; text-decoration: none; }
.cp-link i { margin-left: .5rem; }
.cp .cp-subheading { color: #2c442c; }

/* Closing section: heading and lead centred over the form card (the card itself is left-aligned) */
.cp-connect { text-align: center; }
.cp .lead-line { font-size: 1.5rem; font-weight: 700; color: #2c442c; line-height: 1.3; }
.cp-connect .cp-form { margin-top: 1.5rem; }

/* Gravity Forms inside the olive card (GF 2.10 gravity-theme markup). The .cp prefix outranks the GF theme CSS that loads after this file;
   the submit colours need !important to beat the site-wide .gform_button rule in src/_footer.scss. */
.cp .cp-form .gform_wrapper .gfield_label { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.cp .cp-form .gform_wrapper input[type=text], .cp .cp-form .gform_wrapper input[type=email], .cp .cp-form .gform_wrapper input[type=tel], .cp .cp-form .gform_wrapper textarea { width: 100%; border: 1px solid #cfd6c4; border-radius: .5rem; padding: .8rem 1rem; font: inherit; color: #414042; background: #fff; }
.cp .cp-form .gform_wrapper input:focus, .cp .cp-form .gform_wrapper textarea:focus { outline: 3px solid #8dc63f; outline-offset: 1px; }
.cp .cp-form .gform_wrapper textarea { resize: vertical; }
.cp .cp-form .gform_wrapper.gravity-theme textarea.medium { height: 9rem; } /* beats GF textarea.medium 192px */
.cp .cp-form .gform_wrapper .gform_footer { text-align: center; justify-content: center; padding-top: .5rem; }
.cp .cp-form .gform_wrapper .gform_footer input[type=submit], .cp .cp-form .gform_wrapper .gform_footer button { background: #a7cc87 !important; border: 1px solid #a7cc87; color: #2c442c !important; font-weight: 700; text-transform: uppercase; padding: 1rem 2.5rem; border-radius: .25rem; font-size: .9rem; line-height: 1.5; }
.cp .cp-form .gform_wrapper .gfield_required, .cp .cp-form .gform_wrapper .gfield_validation_message, .cp .cp-form .gform_wrapper .validation_message, .cp .cp-form .gform_wrapper .gform_validation_errors { color: #ffe9a8; background: transparent; border: 0; box-shadow: none; }
.cp .cp-form .gform_wrapper .gfield_validation_message { padding: .4rem 0 0; }
.cp .cp-form .gform_confirmation_message { color: #fff; font-weight: 600; }
/* GF theme colours the summary heading itself (#c02b0a), so set it directly. */
.cp .cp-form .gform_wrapper .gform_validation_errors > h2, .cp .cp-form .gform_wrapper .gform_submission_error { color: #ffe9a8; }
@media (max-width: 767.98px) { .cp .cp-form .gform_wrapper .gform_footer input[type=submit], .cp .cp-form .gform_wrapper .gform_footer button { width: 100%; white-space: normal; padding-left: 1rem; padding-right: 1rem; } }
/* GF basic.min.css sets inputs to line-height 2 and height 32px under 641px; match the mockup instead. */
@media (max-width: 641px) {
	.cp .cp-form .gform_wrapper input[type=text], .cp .cp-form .gform_wrapper input[type=email], .cp .cp-form .gform_wrapper input[type=tel] { line-height: 1.6 !important; height: auto !important; }
	.cp .cp-form .gform_wrapper .gform_footer input[type=submit] { line-height: 1.5 !important; height: auto !important; }
}
/* Finish review: GF's 2% column gap replaces the Bootstrap gutter; match the comp's ~30px. The home_9 watermark lands mid-paragraph below lg. */
.cp .cp-form .gform_wrapper.gravity-theme .gform_fields { grid-column-gap: 30px; }
@media (max-width: 991.98px) { .cp-intro .col-lg-8 { background: none; } }
