/* =========================================================
   ALAN LANG CHILD THEME
   ========================================================= */

/**
Theme Name: Alan Lang
Author: Alan Lang
Author URI: https://alanlang.co.uk/
Description: Custom Astra child theme for alanlang.co.uk, providing controlled styling and template customisation for the Alan Lang website and LearnPress learning environment.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alan-lang
Template: astra
*/


/* =========================================================
   01. ROUTE CARDS
   ========================================================= */

.al-route-card {
	display: grid;
	grid-template-columns: 70px 1fr 32px;
	align-items: center;
	gap: 28px;
	width: 100%;
	min-height: 94px;
	padding: 18px 20px;
	background: linear-gradient(
		90deg,
		#23252A 0%,
		#151619 100%
	);
	border: 1px solid var(--ast-global-color-6);
	border-radius: 12px;
	text-decoration: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.al-route-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	background: var(--ast-global-color-4);
	border-radius: 50%;
	box-sizing: border-box;
}

.al-route-card__icon svg {
	width: 30px;
	height: 30px;
	fill: var(--ast-global-color-3);
}

.al-route-card__title {
	margin: 0;
	color: var(--ast-global-color-3);
	font-family: "Red Hat Text", sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

.al-route-card__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
}

.al-route-card__chevron svg {
	width: 28px;
	height: 28px;
	fill: var(--ast-global-color-3);
	transition:
		fill 0.2s ease,
		transform 0.2s ease;
}

.al-route-card:hover,
.al-route-card:focus-visible {
	border-color: var(--ast-global-color-1);
	outline: none;
}

.al-route-card:hover .al-route-card__chevron svg,
.al-route-card:focus-visible .al-route-card__chevron svg {
	fill: var(--ast-global-color-1);
	transform: translateX(3px);
}

@media (max-width: 767px) {

	.al-route-card {
		grid-template-columns: 60px 1fr 28px;
		gap: 16px;
		padding: 16px;
		min-height: 84px;
	}

	.al-route-card__icon {
		width: 60px;
		height: 60px;
	}

	.al-route-card__icon svg {
		width: 26px;
		height: 26px;
	}

	.al-route-card__title {
		font-size: 20px;
	}

	.al-route-card__chevron svg {
		width: 24px;
		height: 24px;
	}
}


/* =========================================================
   02. CONNECTED ORANGE-DOT LISTS
   ========================================================= */

.al-connect-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-left: 42px;
}

.al-connect-item {
	position: relative;
	display: flex;
	align-items: flex-start;
}

.al-connect-item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: -33px;
	top: 14px;
	width: 1px;
	height: calc(100% + 18px);
	background: #4A4E5A;
	z-index: 0;
}

.al-connect-dot {
	position: absolute;
	left: -42px;
	top: 5px;
	width: 19px;
	height: 19px;
	border: 2px solid #F97316;
	border-radius: 50%;
	background: #1C1D21;
	box-sizing: border-box;
	z-index: 1;
}

.al-connect-content {
	position: relative;
	z-index: 2;
}

.al-connect-content h3 {
	margin: 0 0 4px;
	font-family: "Red Hat Text", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: #F8FAFC;
}

.al-connect-content h4 {
	margin: 0 0 4px;
	font-family: "Red Hat Text", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: #F8FAFC;
}

.al-connect-content p {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #D6D9DE;
}


/* Variant: longer connector line */

.al-connect-list--extended .al-connect-item:not(:last-child)::after {
	height: calc(100% + 28px);
}


/* Variant: lighter/smaller H3 treatment */

.al-connect-list--compact .al-connect-content h3 {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}


/* Mobile */

@media (max-width: 767px) {

	.al-connect-list {
		gap: 24px;
		padding-left: 36px;
	}

	.al-connect-item:not(:last-child)::after {
		left: -28px;
		height: calc(100% + 24px);
	}

	.al-connect-dot {
		left: -36px;
		width: 17px;
		height: 17px;
	}

	.al-connect-content h3,
	.al-connect-content h4 {
		font-size: 20px;
	}

	.al-connect-content p {
		font-size: 16px;
	}
}


/* =========================================================
   03. CONTACT FORM
   ========================================================= */

.alan-contact-form .wpforms-field-label {
	display: block;
	margin-bottom: 8px;
	color: #F8FAFC;
	font-family: "DM Sans", sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
}

.alan-contact-form .wpforms-required-label {
	color: #F97316;
}

.alan-contact-form .wpforms-field-name input,
.alan-contact-form .wpforms-field-email input {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 58px;
	padding: 16px 18px;
	background: #23252A;
	border: 1px solid #3A3D45;
	border-radius: 12px;
	color: #F8FAFC;
	font-family: "DM Sans", sans-serif;
	font-size: 17px;
	line-height: 1.5;
	box-sizing: border-box;
}

.alan-contact-form .wpforms-field-textarea textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 180px;
	padding: 16px 18px;
	background: #23252A;
	border: 1px solid #3A3D45;
	border-radius: 12px;
	color: #F8FAFC;
	font-family: "DM Sans", sans-serif;
	font-size: 17px;
	line-height: 1.5;
	box-sizing: border-box;
	resize: vertical;
}

.alan-contact-form input::placeholder,
.alan-contact-form textarea::placeholder {
	color: #A8ADB7;
	opacity: 1;
}

.alan-contact-form .wpforms-field-name input:focus,
.alan-contact-form .wpforms-field-email input:focus,
.alan-contact-form .wpforms-field-textarea textarea:focus {
	border-color: #F97316;
	outline: 2px solid rgba(249, 115, 22, 0.25);
	outline-offset: 2px;
	box-shadow: none;
}

.alan-contact-form .wpforms-submit-container {
	margin-top: 8px;
	padding: 0;
}

.alan-contact-form .alan-contact-submit {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 52px;
	padding: 14px 28px !important;
	background: #F97316 !important;
	border: 1px solid #F97316 !important;
	border-radius: 8px !important;
	color: #F8FAFC !important;
	font-family: "Red Hat Text", sans-serif !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.alan-contact-form .alan-contact-submit:hover {
	background: #EA580C !important;
	border-color: #EA580C !important;
	color: #F8FAFC !important;
}

.alan-contact-form .alan-contact-submit:focus-visible {
	outline: 2px solid #F8FAFC;
	outline-offset: 3px;
}

.alan-contact-form .alan-contact-submit::before {
	content: "";
	display: inline-block;
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	background-color: currentColor;

	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.7 2.3a1 1 0 0 0-1-.24l-18 7a1 1 0 0 0 .08 1.89l7.1 2.37 2.37 7.1a1 1 0 0 0 .9.68h.05a1 1 0 0 0 .92-.59l7.9-17.2a1 1 0 0 0-.32-1.01ZM11.1 12.1 5.9 10.37l11.74-4.56-6.54 6.29Zm2.53 5.99-1.73-5.19 6.29-6.54-4.56 11.73Z'/%3E%3C/svg%3E")
		center / contain no-repeat;

	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.7 2.3a1 1 0 0 0-1-.24l-18 7a1 1 0 0 0 .08 1.89l7.1 2.37 2.37 7.1a1 1 0 0 0 .9.68h.05a1 1 0 0 0 .92-.59l7.9-17.2a1 1 0 0 0-.32-1.01ZM11.1 12.1 5.9 10.37l11.74-4.56-6.54 6.29Zm2.53 5.99-1.73-5.19 6.29-6.54-4.56 11.73Z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.alan-contact-form .wpforms-submit-spinner {
	margin-left: 10px;
}

@media (max-width: 768px) {

	.alan-contact-form .wpforms-field {
		margin-bottom: 20px;
	}

	.alan-contact-form .wpforms-field-name input,
	.alan-contact-form .wpforms-field-email input {
		min-height: 56px;
		padding: 15px 16px;
	}

	.alan-contact-form .wpforms-field-textarea textarea {
		min-height: 170px;
		padding: 15px 16px;
	}

	.alan-contact-form .alan-contact-submit {
		width: auto;
	}
}


/* Browser autofill */

.alan-contact-form input:-webkit-autofill,
.alan-contact-form input:-webkit-autofill:hover,
.alan-contact-form input:-webkit-autofill:focus,
.alan-contact-form input:-webkit-autofill:active {
	-webkit-text-fill-color: #F8FAFC !important;
	caret-color: #F8FAFC;
	-webkit-box-shadow: 0 0 0 1000px #23252A inset !important;
	box-shadow: 0 0 0 1000px #23252A inset !important;
	border: 1px solid #3A3D45 !important;
	transition: background-color 9999s ease-in-out 0s;
}


/* Confirmation message */

.alan-contact-form .wpforms-confirmation-container,
.alan-contact-form .wpforms-confirmation-container p {
	color: #D6D9DE !important;
}


/* =========================================================
   04. SPECTRA MODALS
   ========================================================= */

div.uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg {
	width: 21px;
	height: 21px;
}

.uagb-modal-popup-content,
.uagb-modal-popup-wrap {
	scrollbar-width: auto !important;
	scrollbar-color: #F97316 #23252A !important;
	scrollbar-gutter: stable;
}

.uagb-modal-popup-content::-webkit-scrollbar,
.uagb-modal-popup-wrap::-webkit-scrollbar {
	width: 12px !important;
}

.uagb-modal-popup-content::-webkit-scrollbar-track,
.uagb-modal-popup-wrap::-webkit-scrollbar-track {
	background: #23252A;
	border-radius: 10px;
}

.uagb-modal-popup-content::-webkit-scrollbar-thumb,
.uagb-modal-popup-wrap::-webkit-scrollbar-thumb {
	background: #F97316;
	border-radius: 10px;
	border: 2px solid #23252A;
}

.uagb-modal-popup-content::-webkit-scrollbar-thumb:hover,
.uagb-modal-popup-wrap::-webkit-scrollbar-thumb:hover {
	background: #EA580C;
}

/* =========================================================
   CONNECTED LIST — EXTENDED CONNECTOR VARIANT
   ========================================================= */

.al-connect-list--extended .al-connect-item:not(:last-child)::after {
	height: calc(100% + 28px);
}

/* =========================================================
   CONNECTED LIST — COMPACT HEADING VARIANT
   ========================================================= */

.al-connect-list--compact .al-connect-content h3 {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

/* =========================================================
   Mobile / tablet off-canvas account alignment
   ========================================================= */

/*
 * Astra centres the navigation menu independently,
 * but the Header Account component keeps its own
 * alignment. Centre Login / Enrol and Account so they
 * share the same axis as the off-canvas navigation.
 */

@media (max-width: 1024px) {

	#ast-mobile-popup
	.ast-mobile-popup-content
	> .ast-header-account {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: 100% !important;

		margin: 0 0 18px !important;

		text-align: center !important;
	}


	#ast-mobile-popup
	.ast-mobile-popup-content
	.ast-header-account-wrap,
	#ast-mobile-popup
	.ast-mobile-popup-content
	.ast-header-account-inner-wrap {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: 100% !important;
	}


	#ast-mobile-popup
	.ast-mobile-popup-content
	.ast-header-account-link {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: auto !important;

		text-align: center !important;
	}
}

/* =========================================================
   REAL COOKIE BANNER — SCROLLBAR
   ========================================================= */

/* Firefox */
body > div:has([role="heading"][aria-level="2"]) * {
	scrollbar-width: thin !important;
	scrollbar-color: #2A2C32 #151619 !important;
}

/* Chrome, Edge and Safari */
body > div:has([role="heading"][aria-level="2"]) *::-webkit-scrollbar {
	width: 8px !important;
	height: 8px !important;
}

body > div:has([role="heading"][aria-level="2"]) *::-webkit-scrollbar-track {
	background: #151619 !important;
}

body > div:has([role="heading"][aria-level="2"]) *::-webkit-scrollbar-thumb {
	background: #2A2C32 !important;
	border-radius: 4px !important;
}

body > div:has([role="heading"][aria-level="2"]) *::-webkit-scrollbar-thumb:hover {
	background: #3A3D45 !important;
}