/* Contact, Webinars, Self-paced and shared page pieces */
.page-banner img { width: 100%; height: auto; }

/* Contact */
.contact-body { padding: 40px 15px 0; }
.contact-lead { color: var(--purple); font-size: 16px; font-weight: 400; margin-bottom: 20px; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.contact-form .form-full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
	width: 100%; border: 1px solid #ECECEC; border-radius: 5px; padding: 10px 12px; color: var(--text); background: #fff;
}
.contact-form input { height: 48px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(130, 83, 162, .35); border-color: var(--purple); }
.contact-form .btn-send { margin-top: 24px; height: 44px; padding: 0 24px; }
@media (max-width: 767px) { .contact-form .form-grid { grid-template-columns: 1fr; } }

/* Webinars gallery */
.cvg-banner img { width: 100%; height: 530px; object-fit: cover; background: #000; }
.cvg-root { background: var(--bg-lilac); padding: 60px; font-family: Arial, Helvetica, sans-serif; }
.cvg-heading { text-align: center; color: var(--purple); font-family: Arial, Helvetica, sans-serif; font-size: 42px; margin: 0 0 40px; }
.cvg-heading--soon { margin-top: 60px; }
.cvg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1400px; margin: 0 auto; }
.cvg-card {
	display: flex; flex-direction: column; text-align: center; background: #fff; border-radius: 15px; border: 2px solid transparent; padding: 0 0 18px;
	box-shadow: 0 5px 15px rgba(130, 83, 162, .15); cursor: pointer; overflow: hidden; font: inherit; color: inherit; transition: transform .2s, border-color .2s;
}
.cvg-card:hover, .cvg-card:focus-visible { transform: translateY(-4px); border-color: var(--purple); }
.cvg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cvg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cvg-play {
	position: absolute; top: 50%; left: 50%; width: 75px; height: 75px; margin: -37.5px 0 0 -37.5px; border-radius: 50%;
	background: rgba(130, 83, 162, .9); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; padding-left: 5px;
}
.cvg-title { display: block; color: var(--purple); font-weight: 700; font-size: 16px; line-height: 1.35; padding: 14px 14px 0; }
.cvg-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cvg-modal[hidden] { display: none; }
.cvg-modal__inner { position: relative; width: 100%; max-width: 960px; }
.cvg-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.cvg-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.cvg-modal__close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }
@media (max-width: 1199px) { .cvg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .cvg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
	.cvg-banner img { height: 130px; }
	.cvg-root { padding: 40px 15px; }
	.cvg-heading { font-size: 30px; }
	.cvg-grid { grid-template-columns: 1fr; }
}

/* Self-paced courses (course archive page) */
.sp-cover {
	min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff;
	background: url("../img/category-cover.png") center / cover no-repeat;
}
.sp-cover h1 { color: #fff; font-size: 36px; margin-bottom: 12px; }
.sp-count { display: inline-block; background: rgba(255, 255, 255, .2); border-radius: 20px; padding: 6px 16px; margin: 0; }
.sp-body { padding-top: 40px; }
@media (max-width: 767px) { .sp-cover { min-height: 160px; } .sp-cover h1 { font-size: 24px; } }

/* Landing pages sit closer to the footer on the original */
.page-certification .site-footer, .page-level-2 .site-footer { margin-top: 150px; }
@media (max-width: 767px) { .page-certification .site-footer, .page-level-2 .site-footer { margin-top: 140px; } }

/* Tutor LMS + WooCommerce brand colours */
:root {
	--tutor-color-primary: #8253A2;
	--tutor-color-primary-rgb: 130, 83, 162;
	--tutor-color-primary-hover: #F58220;
}
.tutor-btn-primary:hover, .tutor-btn-primary:focus { background-color: var(--orange) !important; border-color: var(--orange) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) {
	background-color: var(--purple); color: #fff; border-radius: 5px; font-family: var(--font);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background-color: var(--orange); color: #fff; }
.tutor-wrap, .tutor-container { font-family: var(--font); }
