/*
Theme Name: Strawberry Fields Nursery
Theme URI: http://sfn.fertile.build
Description: Bespoke theme for Strawberry Fields Nursery & Preschool, Chorley. One-page marketing site built from the Fertile Frog design. Classic (non-FSE) theme with ACF-driven content.
Author: Fertile Frog
Author URI: https://fertilefrog.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sfn-theme
*/

/* =========================================================================
 *  Fonts — remaining latin-ext subsets + Lato 900. (Latin subsets for the
 *  three families are inlined in critical.css; the wide unicode subsets from
 *  the design bundle — cyrillic/greek/hebrew/math/symbols — are omitted as a
 *  UK childcare site only needs latin + latin-ext.)
 * ========================================================================= */
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap;
	src:url("assets/fonts/0138f92b-1d27-4e18-97dd-9e5c409e5f2f.woff2") format('woff2');
	unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap;
	src:url("assets/fonts/7db2289b-c013-4430-8b70-00f0deb18068.woff2") format('woff2');
	unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:900; font-display:swap;
	src:url("assets/fonts/915e7306-0901-4ca2-8773-61235219582e.woff2") format('woff2');
	unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Lato'; font-style:normal; font-weight:900; font-display:swap;
	src:url("assets/fonts/7f1b3f4b-688c-49c9-a44d-d1000d8e80ee.woff2") format('woff2');
	unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Open Sans'; font-style:normal; font-weight:400 700; font-stretch:100%; font-display:swap;
	src:url("assets/fonts/20328356-7b1e-40ea-9339-52b059072e52.woff2") format('woff2');
	unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* =========================================================================
 *  Shared pill button — the design repeats an outlined pill with a fill-on-
 *  hover. Base is transparent/outlined; modifiers set the accent colour.
 * ========================================================================= */
.sfn-btn {
	display: inline-block;
	font-family: var(--font-ui);
	font-weight: 700;
	padding: 5px 28px;
	font-size: 18px;
	border-radius: 30px;
	border: 2px solid currentColor;
	background: transparent;
	cursor: pointer;
	transition: all .3s;
	line-height: 1.2;
}
.sfn-btn--gold   { color: var(--gold-2); }
.sfn-btn--gold:hover   { background: var(--gold) !important; border-color: var(--gold); color: var(--brand); }
.sfn-btn--orange { color: var(--orange); }
.sfn-btn--orange:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.sfn-btn--gold-foot { color: var(--gold); }
.sfn-btn--gold-foot:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* =========================================================================
 *  Header / primary nav.
 * ========================================================================= */
.sfn-nav a { transition: color .15s ease; }
.sfn-nav a:hover { color: #ffc31f; }
.sfn-book:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

/* Mobile nav toggle — hidden on desktop, shown ≤900px. */
.sfn-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.sfn-burger-bar { display: block; width: 26px; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; }

/* =========================================================================
 *  Responsive — the design ships desktop-only inline styles. These override
 *  the inline grids to stack on tablet/phone. !important is required because
 *  inline styles out-specify stylesheet rules.
 * ========================================================================= */
/* Footer grid — flex (not CSS grid) with fixed column proportions: 35/30/35
 * on desktop, equal thirds on tablet, stacked full-width on mobile. */
.sfn-footer-grid > div { min-width: 0; }
.sfn-footer-grid > div:nth-child(1) { width: 35%; }
.sfn-footer-grid > div:nth-child(2) { width: 30%; }
.sfn-footer-grid > div:nth-child(3) { width: 35%; }
@media (max-width: 1024px) {
	.sfn-footer-grid > div { width: 33.333% !important; }
}
@media (max-width: 767px) {
	.sfn-footer-grid { flex-direction: column !important; }
	.sfn-footer-grid > div { width: 100% !important; }
}

@media (max-width: 980px) {
	.sfn-trust-grid { grid-template-columns: repeat(3, 1fr) !important; }
	.sfn-team-art { height: 420px !important; }
	.sfn-testi-slide { flex-basis: 62% !important; }
	.sfn-testi-prev { left: 24px !important; transform: translateY(-50%) !important; }
	.sfn-testi-next { right: 24px !important; transform: translateY(-50%) !important; }
}

@media (max-width: 640px) {
	.sfn-testi-slide { flex-basis: 88% !important; padding: 0 10px !important; }
	.sfn-testi-prev { left: 10px !important; }
	.sfn-testi-next { right: 10px !important; }
}

/* Hero's own vertical rhythm (exempt from .sfn-section — full-bleed design) on
 * the site's mobile breakpoint. Horizontal spacing comes from .sfn-container.
 * Team/steps grids stack to 1 column; rooms/trust drop to 2 columns. */
@media (max-width: 767px) {
	.sfn-hero-inner { padding-top: 120px !important; padding-bottom: 75px !important; }
	.sfn-team-grid,
	.sfn-steps-grid { grid-template-columns: 1fr !important; }
	.sfn-rooms-grid,
	.sfn-trust-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.sfn-wave { height: 30px !important; }

	.sfn-sessions-strip { flex-direction: column; }
	.sfn-sessions-strip > div:not(:first-child) { border-left: none; border-top: 1px solid #ece6f2; }

	/* The circular room/intro photos scale to 100% width — on a narrow phone
	 * that makes a near-full-width circle (huge aspect-ratio-1/1 height),
	 * which reads as a giant gap between the text above and below it. */
	.sfn-room-photo-wrap { max-width: 260px; margin: 0 auto; }
	.sfn-rooms-overview-grid,
	.sfn-team-grid-roster { margin-bottom: 30px !important; }

	/* Team + footer aren't centred by default like the other sections — align
	 * their text (and the flex rows that text-align can't reach) on mobile. */
	#team .sfn-team-grid { text-align: center; }
	.sfn-team-ctas { justify-content: center; }

	.sfn-footer-grid { text-align: center; }
	.sfn-footer-logo-wrap { margin-left: auto; margin-right: auto; }
	.sfn-footer-logo-wrap a { display: block; width: 150px; margin: 0 auto; }
	.sfn-footer-blurb { margin-left: auto !important; margin-right: auto !important; }
	.sfn-footer-contact-row { justify-content: center; }
	.sfn-footer-links { align-items: center; }
}

/* =========================================================================
 *  WordPress content defaults (page.php / single.php / legal pages).
 * ========================================================================= */
.sfn-content { max-width: 780px; margin: 0 auto; padding: 70px 24px 90px; }
.sfn-content h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 24px; }
.sfn-content h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 14px; }
.sfn-content h3 { font-size: 20px; margin: 30px 0 10px; }
.sfn-content p,
.sfn-content li { font-size: 16px; line-height: 1.8; color: var(--ink); }
.sfn-content ul, .sfn-content ol { padding-left: 22px; }
.sfn-content a { color: var(--brand); text-decoration: underline; }
.sfn-content img { border-radius: 12px; margin: 20px 0; }

/* Search form */
.sfn-searchform { display: flex; gap: 8px; max-width: 480px; }
.sfn-searchform input[type="search"] {
	flex: 1; padding: 10px 14px; border: 1.6px solid #d9d4e2; border-radius: 12px; font-size: 15px;
}
.sfn-searchform button {
	background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 10px 20px; font-weight: 700; cursor: pointer;
}

/* Footer band — violet texture like the header (per the approved PDF).
 * Dedicated taller crop: glow sits behind the central content and the top
 * edge stays darker so the muted echo wave has contrast to read against. */
.sfn-foot-band {
	background: url("assets/images/footer-texture.webp") 50% 30% / cover no-repeat #5d1b8b;
}

/* Footer enquiry form — solid white rounded fields per the approved PDF. */
.sfn-input,
.sfn-foot-form .gform_wrapper input:not([type=submit]):not([type=checkbox]),
.sfn-foot-form .gform_wrapper textarea {
	width: 100%; background: #fff; border: 0; border-radius: 50px !important;
	padding: 10px 16px; color: #444 !important; font-size: 16px !important; font-weight: 600 !important; outline: none;
}
.sfn-foot-form .gform_wrapper textarea { border-radius: 20px !important; }

/* Small colour-circle icon badge — contact info row (Contact Us page). */
.sfn-icon-badge {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%; color: #fff; flex: 0 0 auto;
}
.sfn-icon-badge svg { width: 18px; height: 18px; }
.sfn-input:focus,
.sfn-foot-form .gform_wrapper input:focus,
.sfn-foot-form .gform_wrapper textarea:focus { box-shadow: 0 0 0 2.5px var(--gold); }
.sfn-foot-form ::placeholder,
.sfn-foot-form .gform_wrapper ::placeholder { color: #8b8794; opacity: 1; }
.sfn-foot-form .gform_wrapper .gfield_label { color: #fff; font-size: 12.5px; font-weight: 700; }

/* Round gold consent check (renders like the PDF's circular tick). */
.sfn-check,
.sfn-foot-form .gform_wrapper input[type=checkbox] {
	appearance: none !important; -webkit-appearance: none !important;
	width: 17px !important; height: 17px !important; margin: 0 !important; flex: 0 0 auto;
	border: 2px solid var(--gold) !important; border-radius: 50% !important;
	background: transparent !important; cursor: pointer;
}
.sfn-check:checked,
.sfn-foot-form .gform_wrapper input[type=checkbox]:checked { background: var(--gold) !important; box-shadow: inset 0 0 0 3px #5d1b8b; }

.sfn-foot-form .gform_wrapper input[type=submit],
.sfn-foot-form .gform_wrapper .gform_button {
	color: var(--gold) !important; border: 2px solid var(--gold) !important; background: transparent !important; font-family: var(--font-ui) !important;
	font-weight: 700 !important; font-size: 18px !important; padding: 5px 28px !important; border-radius: 22px !important; cursor: pointer;
}
.sfn-foot-form .gform_wrapper input[type=submit]:hover,
.sfn-foot-form .gform_wrapper .gform_button:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: #fff !important; }

/* Orbital markup (legacy mode disabled) — hide the field labels + "required
 * fields" legend (design uses placeholder-only inputs), but keep the
 * checkbox's own inline choice label visible and styled to match. */
.sfn-foot-form .gform_required_legend { display: none !important; }
.sfn-foot-form .gfield_label { display: none !important; }
.sfn-foot-form .gform_wrapper .gchoice { display: flex; align-items: center; gap: 9px; }
.sfn-foot-form .gform_wrapper .gform-field-label--type-inline { color: #fff; font-size: 16px; font-weight: 700; }
.gform-footer { margin-top: 15px !important; }

.sfn-copyright a { color: #fff; }
@media (max-width: 1024px) { .sfn-copyright { font-size: 15px !important; } }
@media (max-width: 767px)  { .sfn-copyright { font-size: 14px !important; } }

.gform-theme--foundation .gform_fields { row-gap: 10px !important; }

/* =========================================================================
 *  Our Rooms page — overview cards, alternating detail sections, team roster.
 *  Each room's accent flows through --room-accent/--room-accent-tint, set
 *  inline per-section so the shared classes below don't repeat per room.
 * ========================================================================= */
.sfn-rooms-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sfn-rooms-line::before,
.sfn-rooms-line::after {
	content: ''; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff;
}
.sfn-rooms-line::before { left: 0; transform: translate(-50%, -50%); border: 2px solid var(--blue); }
.sfn-rooms-line::after  { right: 0; transform: translate(50%, -50%); border: 2px solid var(--red-2); }
.sfn-room-pill {
	display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em;
	padding: 6px 12px; border-radius: 999px;
	background: var(--room-accent-tint, #eaf3f9); color: var(--room-accent, var(--blue));
}
.sfn-room-card-desc { font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--ink); margin: 16px 0 0; }
.sfn-room-ratio { display: block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

/* Default body copy on this page: 18px desktop, 16px tablet + mobile, weight
 * normal/500 — applied to plain paragraphs and list text (not the small
 * bold UI labels: pills, eyebrows, badges, roles). */
.sfn-body-copy { font-size: 18px; font-weight: 500; line-height: 1.6; }

.sfn-room-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sfn-room-detail-title { color: var(--room-accent, var(--blue)); }
.sfn-room-eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--room-accent, var(--blue)); margin: 0 0 10px; }

.sfn-room-photo-wrap { position: relative; }
.sfn-room-photo {
	display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;
	box-shadow: 0 20px 40px rgba(20, 0, 40, .18);
}
.sfn-ratio-badge {
	position: absolute; left: 24px; bottom: -14px;
	background: var(--room-accent, var(--blue)); color: #fff; font-weight: 700; font-size: 17px;
	padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 20px rgba(20, 0, 40, .2); white-space: nowrap;
}

.sfn-expect-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sfn-expect-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.sfn-expect-dot {
	width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
}
.sfn-expect-dot svg { width: 100%; height: 100%; }

.sfn-pill {
	display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
	font-size: 16px; font-weight: 800;
}
.sfn-pill-icon { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; }
.sfn-pill-icon svg { width: 100%; height: 100%; }

.sfn-team-grid-roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sfn-team-card { background: #fff; border-radius: 22px; box-shadow: rgba(0, 0, 0, .2) 0px 0px 10px; }
.sfn-team-card--small { padding: 26px 24px; }
.sfn-team-avatar {
	border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; color: #fff;
}
.sfn-team-card--small .sfn-team-avatar { width: 62px; height: 62px; font-size: 23px; margin-bottom: 16px; }
.sfn-team-name { margin: 0 0 4px; color: var(--plum); }
.sfn-team-card--small .sfn-team-name { font-size: 21px; }
.sfn-team-role { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .05em; color: var(--ink); line-height: 1.45; }
/* Collapsed height is a 3-line estimate (16px/1.4 line-height); the expand/
 * collapse toggle animates max-height, with JS setting it to the bio's exact
 * scrollHeight so the transition matches real content length. */
.sfn-team-bio {
	margin: 0 0 10px; font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink);
	overflow: hidden; max-height: 67px; transition: max-height .35s ease;
}
.sfn-team-more { display: inline-block; background: none; border: 0; padding: 0; color: var(--plum); font-size: 13px; font-weight: 800; cursor: pointer; }

/* =========================================================================
 *  Curriculum page — theme/area/skill cards and the age-adaptation rows.
 *  Same --room-accent/--room-accent-tint convention as the Our Rooms cards.
 * ========================================================================= */
.sfn-eyebrow-label { display: block; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }

.sfn-theme-card { background: #fff; border-radius: 20px; padding: 28px 26px; box-shadow: 0 14px 32px rgba(87, 38, 127, .1); border-top: 5px solid var(--room-accent, var(--blue)); }
.sfn-theme-card h4 { margin: 16px 0 10px; font-size: 21px; color: var(--room-accent, var(--blue)); }

/* Sessions strip (Apply/Enquire page) — one merged card: a divided row of
 * session times sitting directly above a solid-colour notes band. */
.sfn-sessions-strip { display: flex; }
.sfn-sessions-strip > div:not(:first-child) { border-left: 1px solid #ece6f2; }

/* Recolours an uploaded single-colour SVG via CSS mask so it can inherit a
 * per-card accent (background-color + mask-image are set inline per icon). */
.sfn-icon-mask {
	display: inline-block; width: 58px; height: 58px;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
}
/* When the mask icon itself is the clickable link, grow slightly on hover. */
.sfn-icon-link { transition: transform .25s ease; }
.sfn-icon-link:hover, .sfn-icon-link:focus-visible { transform: scale(1.15); }

/* Curriculum themes — solid gradient cards with a large faded index numeral
 * and a decorative circle clipped into the top-right corner. */
.sfn-theme-gradient-card {
	position: relative; overflow: hidden; border-radius: 24px; padding: 40px 36px; color: #fff;
	background: linear-gradient(135deg, var(--room-accent, var(--blue)) 0%, var(--room-accent-light, var(--blue)) 100%);
}
.sfn-theme-gradient-card::after {
	content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px;
	border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none;
}
.sfn-theme-gradient-num { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1; color: rgba(255, 255, 255, .35); margin: 0 0 8px; }
.sfn-theme-gradient-card .sfn-room-eyebrow { position: relative; z-index: 1; color: rgba(255, 255, 255, .9); }
.sfn-theme-gradient-card h4 { position: relative; z-index: 1; margin: 12px 0 10px; font-size: 22px; color: #fff; }
.sfn-theme-gradient-card p { position: relative; z-index: 1; color: rgba(255, 255, 255, .9); }

.sfn-area-card { background: #fff; border-radius: 20px; padding: 28px 26px; box-shadow: 0 14px 32px rgba(87, 38, 127, .1); border-left: 5px solid var(--room-accent, var(--blue)); }
.sfn-area-card h4 { margin: 0 0 10px; font-size: 21px; color: var(--room-accent, var(--blue)); }

/* Core Development Areas (Curriculum page) — plain card, no side border, with
 * a solid rounded badge pill instead. */
.sfn-skill-card { background: #fff; border-radius: 20px; padding: 26px 24px; box-shadow: rgba(0, 0, 0, .2) 0px 0px 10px; }
.sfn-skill-num {
	width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; font-size: 28px; margin-bottom: 14px;
	background: var(--room-accent-tint, #eaf3f9); color: var(--room-accent, var(--blue));
}
.sfn-skill-card h4 { margin: 0 0 8px; font-size: 20px; color: var(--room-accent, var(--blue)); }

.sfn-age-row {
	display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: center;
	border-radius: 24px; padding: 28px 34px;
	background: #fff; border-left: 5px solid var(--room-accent, var(--blue)); box-shadow: 0 14px 32px rgba(87, 38, 127, .1);
}
.sfn-age-row-left { display: flex; align-items: center; gap: 16px; }
.sfn-age-dot { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sfn-age-name { margin: 0 0 2px; font-size: 24px; color: var(--room-accent, var(--blue)); }
.sfn-age-badge { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--plum); }

/* =========================================================================
 *  Apply / Enquire page — the enquiry form (Gravity Forms ID 4). Two-column
 *  field grid; the sessions-of-interest checkbox group renders as pills
 *  (via the 'sfn-sessions-field' cssClass set on that field), while the
 *  consent checkbox keeps the footer form's plain circular-tick look (via
 *  'sfn-consent-field').
 * ========================================================================= */
.sfn-apply-form .gform_fields, .sfn-contact-form .gform_fields { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important; row-gap: 14px !important; }
/* GF's own theme framework now stamps every .gfield with grid-column:1/-1
 * (span both columns) regardless of type — reset to natural auto-placement
 * so two half-width fields share a row, then re-force full width below for
 * the specific fields (textarea, checkboxes, footer) that need it. */
.sfn-apply-form .gfield, .sfn-contact-form .gfield { grid-column: auto !important; }
.sfn-apply-form .gfield--type-textarea, .sfn-contact-form .gfield--type-textarea,
.sfn-apply-form .sfn-sessions-field, .sfn-contact-form .sfn-sessions-field,
.sfn-apply-form .sfn-enquiry-field, .sfn-contact-form .sfn-enquiry-field,
.sfn-apply-form .sfn-consent-field, .sfn-contact-form .sfn-consent-field,
.sfn-apply-form .gform_footer, .sfn-contact-form .gform_footer { grid-column: 1 / -1 !important; }
.sfn-apply-form .gfield_label, .sfn-contact-form .gfield_label,
.sfn-apply-form .gform_required_legend, .sfn-contact-form .gform_required_legend { display: none !important; }
.sfn-apply-form input:not([type=checkbox]):not([type=submit]), .sfn-contact-form input:not([type=checkbox]):not([type=submit]),
.sfn-apply-form textarea, .sfn-contact-form textarea {
	width: 100%; background: #fff; border: 0; border-radius: 50px !important;
	padding: 12px 16px; color: #808080 !important; font-size: 16px !important; font-weight: 700 !important; outline: none;
}
.sfn-apply-form input:focus, .sfn-contact-form input:focus,
.sfn-apply-form textarea:focus, .sfn-contact-form textarea:focus { box-shadow: 0 0 0 2.5px var(--gold); }
.sfn-apply-form ::placeholder, .sfn-contact-form ::placeholder { color: #808080 !important; font-weight: 700 !important; opacity: 1; }

.sfn-apply-form .sfn-sessions-field .gfield_label, .sfn-contact-form .sfn-enquiry-field .gfield_label { display: block !important; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.sfn-contact-form .sfn-enquiry-field .gfield_label { color: #808080; }
.sfn-apply-form .sfn-sessions-field .ginput_container_checkbox, .sfn-contact-form .sfn-enquiry-field .ginput_container_checkbox { width: 100% !important; max-width: none !important; }
.sfn-apply-form .sfn-sessions-field .gfield_checkbox, .sfn-contact-form .sfn-enquiry-field .gfield_checkbox {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start !important;
	width: 100% !important; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.sfn-apply-form .sfn-sessions-field .gchoice, .sfn-contact-form .sfn-enquiry-field .gchoice {
	display: block !important; width: auto !important; margin: 0 !important;
	/* Orbital markup (GF legacy mode off) renders choices as <div>s that
	 * stretch to fill the flex row by default — force back to content width,
	 * same fix as the footer form's legacy/Orbital toggle before it. */
	flex: 0 1 auto !important;
}
/* The native input stays in the DOM (clickable/focusable, toggled by its
 * label's `for`) but is visually hidden — the label carries all the pill
 * styling and draws the checkbox box itself via ::before, so the checked
 * look is driven purely by the input:checked + label sibling selector
 * rather than a container-level :has(). */
.sfn-apply-form .sfn-sessions-field input[type=checkbox], .sfn-contact-form .sfn-enquiry-field input[type=checkbox] {
	position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none;
}
/* GF's theme framework puts a left margin on inline checkbox/radio labels
 * (--gf-local-margin-x, 12px) meant for label-after-input spacing — our
 * checkbox labels already handle that spacing themselves, so zero it out. */
.sfn-apply-form .gfield--type-checkbox .gform-field-label--type-inline,
.sfn-contact-form .gfield--type-checkbox .gform-field-label--type-inline { margin-left: 0 !important; }

.sfn-apply-form .sfn-sessions-field .gchoice label, .sfn-contact-form .sfn-enquiry-field .gchoice label {
	position: relative; display: flex !important; align-items: center; width: auto;
	background: #fff !important; border: 1.5px solid #e4d8ef !important; border-radius: 999px !important; padding: 8px 16px 8px 34px !important;
	font-size: 13.5px; font-weight: 700; color: var(--plum); cursor: pointer; white-space: nowrap;
}
.sfn-apply-form .sfn-sessions-field .gchoice label::before, .sfn-contact-form .sfn-enquiry-field .gchoice label::before {
	content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; border: 2px solid var(--plum); border-radius: 5px; background-color: #fff;
	background-repeat: no-repeat; background-position: center; background-size: 10px 10px;
	transition: background-color .15s ease;
}
.sfn-apply-form .sfn-sessions-field input[type=checkbox]:checked + label::before,
.sfn-contact-form .sfn-enquiry-field input[type=checkbox]:checked + label::before {
	background-color: var(--plum);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sfn-apply-form .sfn-consent-field .gchoice, .sfn-contact-form .sfn-consent-field .gchoice { display: flex; align-items: center; gap: 9px; }
.sfn-apply-form .sfn-consent-field label, .sfn-contact-form .sfn-consent-field label { font-size: 13px; font-weight: 700; color: var(--plum); }
.sfn-apply-form .sfn-consent-field input[type=checkbox], .sfn-contact-form .sfn-consent-field input[type=checkbox] {
	appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important;
	accent-color: transparent !important; outline: none !important; box-shadow: none !important;
	width: 17px !important; height: 17px !important; margin: 0 !important; flex: 0 0 auto;
	border: 2px solid var(--plum) !important; border-radius: 50% !important; background-color: transparent !important; background-image: none !important; cursor: pointer;
}
.sfn-apply-form .sfn-consent-field input[type=checkbox]:checked, .sfn-contact-form .sfn-consent-field input[type=checkbox]:checked {
	background-color: var(--plum) !important; background-image: none !important; box-shadow: inset 0 0 0 3px #fff !important;
}
/* GF's theme framework injects its own checkbox glyph via ::before (an icon
 * font, unaffected by appearance:none) — it renders as a stray blue circle
 * on top of our custom circular checkbox, so kill the content outright. */
.sfn-apply-form .sfn-consent-field input[type=checkbox]::before, .sfn-contact-form .sfn-consent-field input[type=checkbox]::before {
	content: none !important; display: none !important;
}

.sfn-apply-form .gform_button, .sfn-contact-form .gform_button {
	background: var(--plum) !important; border: 0 !important; color: #fff !important;
	font-family: var(--font-ui) !important; font-weight: 700 !important; font-size: 17px !important;
	padding: 12px 30px !important; border-radius: 999px !important; cursor: pointer; width: max-content;
}
.sfn-apply-form .gform_button:hover, .sfn-contact-form .gform_button:hover { background: var(--brand-deep) !important; }
.sfn-apply-form .gform_confirmation_message, .sfn-contact-form .gform_confirmation_message { font-weight: 600; color: var(--plum); }

/* Both the Contact Us and Apply/Enquire forms now sit directly on a plain
 * white card, so inputs need a visible border. The submit button borrows
 * the footer form's gold outline-pill look directly. */
.sfn-apply-form input:not([type=checkbox]):not([type=submit]), .sfn-contact-form input:not([type=checkbox]):not([type=submit]),
.sfn-apply-form textarea, .sfn-contact-form textarea { border: 1.5px solid var(--plum) !important; }
.sfn-apply-form textarea, .sfn-contact-form textarea { border-radius: 30px !important; }
.sfn-apply-form input:focus, .sfn-contact-form input:focus, .sfn-apply-form textarea:focus, .sfn-contact-form textarea:focus { box-shadow: 0 0 0 2.5px var(--gold); }
.sfn-apply-form .gform_button, .sfn-contact-form .gform_button {
	background: transparent !important; border: 2px solid var(--gold) !important; color: var(--gold) !important;
	padding: 10px 28px !important;
}
.sfn-apply-form .gform_button:hover, .sfn-contact-form .gform_button:hover { background: var(--gold) !important; color: #fff !important; }

/* "What are you interested in?" / "How did you hear about us?" selects —
 * same pill treatment as the text inputs, with a custom chevron replacing
 * the native arrow since appearance is reset. */
.sfn-apply-form select, .sfn-contact-form select {
	width: 100%; background-color: #fff; border: 1.5px solid var(--plum) !important; border-radius: 50px !important;
	padding: 12px 40px 12px 16px; color: #808080 !important; font-size: 16px; font-weight: 700 !important; outline: none;
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; cursor: pointer;
}
.sfn-apply-form select:focus, .sfn-contact-form select:focus { box-shadow: 0 0 0 2.5px var(--gold); }
.sfn-apply-form .sfn-enquiry-field .gchoice label::before, .sfn-contact-form .sfn-enquiry-field .gchoice label::before { left: 8px; }

.sfn-apply-form .sfn-consent-field label, .sfn-contact-form .sfn-consent-field label { font-size: 14px; color: #808080; }

/* =========================================================================
 *  FAQ accordion (Contact Us page). max-height transition, same technique
 *  as the team-bio read-more toggle — JS measures scrollHeight so the
 *  animation always matches each answer's real length.
 * ========================================================================= */
.sfn-faq-item { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: rgba(87, 38, 127, .16) 0px 10px 30px; }
.sfn-faq-question { width: 100%; background: none; border: 0; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; cursor: pointer; font-family: var(--font-ui); }
.sfn-faq-question-text { font-size: 23px; font-weight: 800; color: var(--plum); line-height: 1.4; }
.sfn-faq-icon {
	position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; line-height: 1;
}
.sfn-faq-icon-plus, .sfn-faq-icon-minus {
	position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; background-color: #fff;
	-webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.sfn-faq-item.is-open .sfn-faq-icon-plus { display: none; }
.sfn-faq-item:not(.is-open) .sfn-faq-icon-minus { display: none; }
.sfn-faq-answer { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.sfn-faq-answer p { margin: 0; padding: 0 24px 16px; font-size: 15.5px; line-height: 1.7; font-weight: 600; color: var(--ink); }

@media (max-width: 1024px) {
	/* The connecting line only makes sense across a single row of 3 — once the
	 * grid wraps to 2 (then 1) columns below, drop it rather than misalign. */
	.sfn-rooms-line { display: none; }
	.sfn-rooms-overview-grid { grid-template-columns: repeat(2, 1fr); }
	.sfn-details-grid { grid-template-columns: 1fr !important; text-align: center; gap: 20px !important; }
	/* Single column now, so the desktop left/right "order" swap (image-right
	 * rooms like Blackberries) would otherwise leave the photo stranded below
	 * a big gap — pin it back to source order (photo always first). */
	.sfn-room-detail-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
	.sfn-room-detail-grid > * { order: unset !important; }
	.sfn-room-detail-grid > div > div { justify-content: center; }
	.sfn-team-grid-roster { grid-template-columns: repeat(2, 1fr); }
	.sfn-two-col-cards { grid-template-columns: 1fr !important; }
	.sfn-age-row { grid-template-columns: 1fr !important; text-align: center; border-left: 0 !important; border-top: 5px solid var(--room-accent, var(--blue)); }
	.sfn-age-row-left { flex-direction: column; }
	.sfn-apply-form .gform_fields, .sfn-contact-form .gform_fields { grid-template-columns: 1fr !important; }

	.sfn-faq-question-text { font-size: 17px !important; }
	.sfn-faq-question { padding: 14px 18px !important; }
	.sfn-faq-answer p { font-size: 14.5px !important; padding: 0 18px 14px !important; }

	.sfn-sessions-strip > div { padding: 20px 16px !important; }

	.sfn-theme-gradient-card { padding: 26px 22px !important; }

	.sfn-skill-card { padding: 18px 20px !important; }
	.sfn-skill-num { width: 36px !important; height: 36px !important; font-size: 22px !important; margin-bottom: 10px !important; }
	.sfn-team-grid-roster { gap: 16px !important; }

	/* Default body copy: 18px desktop → 16px tablet + mobile. */
	.sfn-body-copy,
	.sfn-room-card-desc,
	.sfn-expect-list li { font-size: 16px; }
}
@media (max-width: 767px) {
	.sfn-rooms-overview-grid { grid-template-columns: 1fr; }
	.sfn-team-grid-roster { grid-template-columns: 1fr; }
	.sfn-ratio-badge { font-size: 15px; padding: 10px 18px; }
}
