/*
 * SkillGrox Contact page. Loaded only on the Contact page (inc/contact-page.php); everything is scoped to .sgx-ct or
 * body.sgx-contact-page. Values follow the design prototype (/contact). The form is the site's Formidable Forms form: this file
 * only styles its markup, it does not replace it.
 */

body.sgx-contact-page,
body.sgx-contact-page .sgx-site--own { background: #FAFCF9; }

.sgx-ct { color: #14251D; padding-bottom: 80px; } /* design: footer margin-top 5rem */
.sgx-ct .sgx-ct__wrap { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 640px) { .sgx-ct .sgx-ct__wrap { padding-top: 56px; padding-bottom: 56px; } }

/* heading */
.sgx-ct__head { max-width: 42rem; }
.sgx-ct .sgx-ct__eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4B6156; }
.sgx-ct .sgx-ct__title { margin: 8px 0 0; padding: 0; font-family: var(--sgx-font-head, inherit); font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -.01em; color: #14251D; }
@media (min-width: 640px) { .sgx-ct .sgx-ct__title { font-size: 48px; line-height: 1; } }
.sgx-ct .sgx-ct__intro { margin: 12px 0 0; font-size: 18px; line-height: 28px; color: #4B6156; }

/* grid: details on the left, form on the right */
.sgx-ct__grid { display: grid; gap: 32px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.sgx-ct__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
	.sgx-ct__grid.is-single, .sgx-ct__grid.no-form { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
}
.sgx-ct__aside > * + * { margin-top: 16px; }

/* chat card */
.sgx-site .sgx-ct .sgx-ct__chat {
	display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; background: #167A41; color: #fff; text-decoration: none;
}
.sgx-site .sgx-ct .sgx-ct__chat:hover { filter: brightness(1.1); color: #fff; }
.sgx-site .sgx-ct .sgx-ct__chat--brand { background: #1E7A4C; }
.sgx-site .sgx-ct .sgx-ct__chat--sand { background: #C9F27B; color: #14251D; }
.sgx-site .sgx-ct .sgx-ct__chat--sand:hover { color: #14251D; }
.sgx-ct .sgx-ct__chat-icon { display: grid; flex: none; }
.sgx-ct .sgx-ct__chat-icon .sgx-icon { width: 32px; height: 32px; stroke-width: 1.6; }
.sgx-ct .sgx-ct__chat-title { display: block; font-weight: 800; line-height: 1.6; }
.sgx-ct .sgx-ct__chat-sub { display: block; font-size: 14px; line-height: 25.6px; opacity: .85; } /* design: the sub line sits in the 1.6 line box of the card */

/* details card */
.sgx-ct .sgx-ct__card { padding: 20px; border: 1px solid #D5E3D9; border-radius: 20px; background: #fff; }
.sgx-ct .sgx-ct__row { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.sgx-ct .sgx-ct__card > .sgx-ct__row + .sgx-ct__row { margin-top: 16px; }
.sgx-ct .sgx-ct__row-icon { flex: none; margin-top: 2px; line-height: 0; }
.sgx-ct .sgx-ct__row-icon .sgx-icon { width: 20px; height: 20px; stroke-width: 2; }
.sgx-ct .sgx-ct__row-label { display: block; font-weight: 700; }
.sgx-ct .sgx-ct__row-text { color: #4B6156; }
.sgx-ct .sgx-ct__row-text a { color: #1E7A4C; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sgx-ct .sgx-ct__row-text a:hover { text-decoration-color: rgba(30, 122, 76, .4); }
.sgx-ct .sgx-ct__image { display: block; width: 100%; height: auto; border-radius: 20px; }
.sgx-ct .sgx-ct__faq { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: #4B6156; }
.sgx-ct .sgx-ct__faq a { color: #14251D; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* form card */
.sgx-ct .sgx-ct__formcard { padding: 20px; border: 1px solid #D5E3D9; border-radius: 20px; background: #fff; }
@media (min-width: 640px) { .sgx-ct .sgx-ct__formcard { padding: 32px; } }
.sgx-ct .sgx-ct__formtitle { margin: 0 0 20px; font-family: var(--sgx-font-head, inherit); font-size: 24px; line-height: 1.2; font-weight: 700; color: #14251D; }
.sgx-ct .sgx-ct__missing { margin: 0; padding: 12px 14px; border: 1px solid #D5E3D9; border-radius: 14px; background: #FAFCF9; color: #4B6156; }
.sgx-ct .sgx-ct__note { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: #4B6156; }
.sgx-ct .sgx-ct__note a { color: #1E7A4C; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- Formidable Forms markup, styled like the design's fields (scoped; the form itself is untouched) ---- */
.sgx-ct .sgx-ct__form .frm_forms { margin: 0; max-width: none; padding: 0; background: transparent; }
.sgx-ct .sgx-ct__form form { margin: 0; }
.sgx-ct .sgx-ct__form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sgx-ct .sgx-ct__form .frm_fields_container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
@media (min-width: 640px) { .sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_fields_container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sgx-ct .sgx-ct__form .frm_form_field { float: none; width: auto; max-width: none; margin: 0; padding: 0; clear: none; }
.sgx-ct .sgx-ct__form .frm_fields_container > * { grid-column: span 1 !important; } /* Formidable spans fields over a 12-column grid; here every field takes one column of ours */
@media (min-width: 640px) {
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_form_field:has(textarea),
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_form_field.frm_full,
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_form_field.frm12,
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_section_heading,
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_html_container,
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_submit,
	.sgx-ct .sgx-ct__formcard--2 .sgx-ct__form .frm_captcha { grid-column: 1 / -1 !important; }
}
.sgx-ct .sgx-ct__form .frm_primary_label,
.sgx-ct .sgx-ct__form label.frm_primary_label {
	display: block; margin: 0 0 6px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: #14251D; text-align: left;
}
.sgx-ct .sgx-ct__form .frm_required { color: #B3261E; }
.sgx-ct .sgx-ct__form .frm_description, .sgx-ct .sgx-ct__form .frm_pro_tip { margin: 6px 0 0; font-size: 14px; color: #4B6156; }
.sgx-ct .sgx-ct__form .with_frm_style input[type="text"],
.sgx-ct .sgx-ct__form .with_frm_style input[type="email"],
.sgx-ct .sgx-ct__form .with_frm_style input[type="tel"],
.sgx-ct .sgx-ct__form .with_frm_style input[type="url"],
.sgx-ct .sgx-ct__form .with_frm_style input[type="number"],
.sgx-ct .sgx-ct__form .with_frm_style input[type="password"],
.sgx-ct .sgx-ct__form .with_frm_style select,
.sgx-ct .sgx-ct__form .with_frm_style textarea,
.sgx-ct .sgx-ct__form input[type="text"], .sgx-ct .sgx-ct__form input[type="email"], .sgx-ct .sgx-ct__form input[type="tel"], .sgx-ct .sgx-ct__form select, .sgx-ct .sgx-ct__form textarea {
	display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: none !important; min-height: 48px !important; margin: 0 !important;
	padding: 10px 16px !important; border: 1px solid #D5E3D9 !important; border-radius: 14px !important; background-color: #fff !important; box-shadow: none !important;
	color: #14251D !important; font-family: inherit !important; font-size: 16px !important; line-height: 1.6 !important; font-weight: 400 !important;
}
.sgx-ct .sgx-ct__form .with_frm_style textarea, .sgx-ct .sgx-ct__form textarea { min-height: 150px !important; resize: vertical; }
.sgx-ct .sgx-ct__form .with_frm_style select, .sgx-ct .sgx-ct__form select { -webkit-appearance: menulist; appearance: auto; }
.sgx-ct .sgx-ct__form input::placeholder, .sgx-ct .sgx-ct__form textarea::placeholder { color: #8AA091; opacity: 1; }
.sgx-ct .sgx-ct__form .with_frm_style input:focus, .sgx-ct .sgx-ct__form .with_frm_style select:focus, .sgx-ct .sgx-ct__form .with_frm_style textarea:focus,
.sgx-ct .sgx-ct__form input:focus, .sgx-ct .sgx-ct__form select:focus, .sgx-ct .sgx-ct__form textarea:focus {
	border-color: #1E7A4C !important; outline: none !important; box-shadow: 0 0 0 2px rgba(30, 122, 76, .2) !important;
}
.sgx-ct .sgx-ct__form .frm_blank_field input, .sgx-ct .sgx-ct__form .frm_blank_field select, .sgx-ct .sgx-ct__form .frm_blank_field textarea { border-color: #B3261E !important; }
.sgx-ct .sgx-ct__form .frm_error { margin: 6px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: #B3261E; }
.sgx-ct .sgx-ct__form .frm_error_style { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(179, 38, 30, .4); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 600; color: #B3261E; }
.sgx-ct .sgx-ct__form .frm_message, .sgx-ct .sgx-ct__form .frm_success_style { margin: 0; padding: 32px 8px; border: 0; background: transparent; color: #14251D; font-size: 18px; text-align: center; }
.sgx-ct .sgx-ct__form .frm_opt_container, .sgx-ct .sgx-ct__form .frm_radio, .sgx-ct .sgx-ct__form .frm_checkbox { margin: 0 0 6px; }
.sgx-ct .sgx-ct__form .frm_radio label, .sgx-ct .sgx-ct__form .frm_checkbox label { font-size: 15px; font-weight: 400; color: #14251D; }

/* submit row: the button and the privacy note side by side (the note is moved here by assets/js/skillgrox-contact.js) */
.sgx-ct .sgx-ct__form .frm_submit { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 0; }
@media (min-width: 640px) { .sgx-ct .sgx-ct__form .frm_submit { flex-direction: row; align-items: center; } }
.sgx-ct .sgx-ct__form .frm_submit .sgx-ct__note { margin: 0; }
.sgx-ct .sgx-ct__form .frm_submit button, .sgx-ct .sgx-ct__form .frm_submit input[type="submit"], .sgx-ct .sgx-ct__form .frm_button_submit {
	display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: auto !important; min-height: 44px !important; margin: 0 !important;
	padding: 10px 20px !important; border: 0 !important; border-radius: 9999px !important; background: #1E7A4C !important; box-shadow: 0 6px 16px -8px rgba(30, 122, 76, .6) !important;
	color: #fff !important; font-family: inherit !important; font-size: 15px !important; line-height: 24px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; transition: background-color .15s;
}
.sgx-ct .sgx-ct__form .frm_submit button:hover, .sgx-ct .sgx-ct__form .frm_submit input[type="submit"]:hover, .sgx-ct .sgx-ct__form .frm_button_submit:hover { background: #155C39 !important; }
.sgx-ct .sgx-ct__form .frm_submit button:focus-visible, .sgx-ct .sgx-ct__form .frm_button_submit:focus-visible { outline: 3px solid #1E7A4C !important; outline-offset: 3px; }
@media (max-width: 639.98px) { .sgx-ct .sgx-ct__form .frm_submit button, .sgx-ct .sgx-ct__form .frm_button_submit { width: 100% !important; } }

/* the design's "placeholder contact details" demo tag (switchable in ACF once real details are in) */
.sgx-ct .sgx-ct__demo { display: inline-flex; align-items: center; margin-top: 8px; padding: 2px 10px; border-radius: 9999px; background: #EEF6F0; color: #4B6156; font-size: 11px; line-height: 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
