/* DriveGuide UK – makes Elementor-built pages use the theme design.
   Every rule is scoped to .dg-el (pages built with Elementor) or .elementor-editor-active. */

/* ---------- Neutralise Elementor spacing so theme classes control layout ---------- */
.dg-el .elementor .e-con {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--margin-top: 0px; --margin-bottom: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
	--container-max-width: 100%;
	--content-width: 100%;
	min-height: 0;
}
.dg-el .elementor .elementor-widget:not(:last-child) { margin-block-end: 0; margin-bottom: 0; }
.dg-el .elementor .elementor-widget-container { padding: 0; margin: 0; }
.dg-el .elementor .e-con > .elementor-widget { max-width: 100%; }

/* Containers that carry theme layout classes */
.dg-el .e-con.wrap { max-width: var(--wrap); width: 100%; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dg-el .e-con.wrap.narrow { max-width: 820px; }
.dg-el .e-con.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.dg-el .e-con.hero-grid,
.dg-el .e-con.help-grid,
.dg-el .e-con.ready-grid,
.dg-el .e-con.fees-grid,
.dg-el .e-con.faq-teaser,
.dg-el .e-con.two-col,
.dg-el .e-con.guide-layout,
.dg-el .e-con.about-grid,
.dg-el .e-con.form-layout { display: grid; }
.dg-el .e-con.hero-grid { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- Typography inside widgets ---------- */
.dg-el .elementor-heading-title { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
.dg-el h1.elementor-heading-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.dg-el h2.elementor-heading-title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; }
.dg-el h3.elementor-heading-title { font-size: 1.15rem; font-weight: 600; }
.dg-el .hero h1.elementor-heading-title { margin-bottom: 20px; max-width: 14ch; }
.dg-el .page-hero .elementor-heading-title,
.dg-el .never-card .elementor-heading-title,
.dg-el .cta-band .elementor-heading-title { color: #fff; }
.dg-el .page-hero h1.elementor-heading-title { max-width: 20ch; position: relative; }
.dg-el .contact-wa .elementor-heading-title { font-size: 1.4rem; color: #0d3f22; }
.dg-el .ask-box .elementor-heading-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.dg-el .guide-h .elementor-heading-title { margin-top: 1.8em; }
.dg-el .guide > .guide-h:first-child .elementor-heading-title { margin-top: 0; }
.dg-el .guide-h { scroll-margin-top: 110px; }

.dg-el .elementor-widget-text-editor { color: inherit; font-family: var(--f-body); font-size: inherit; line-height: 1.6; }
.dg-el .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.dg-el .section-head .elementor-widget-text-editor { color: var(--muted); font-size: 1.08rem; }
.dg-el .section-head .elementor-widget-text-editor p { margin-bottom: 1em; }
.dg-el .section-head .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.dg-el .section-head .elementor-widget-text-editor .text-link { font-size: 1rem; }
.dg-el .lead.elementor-widget-text-editor { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.dg-el .hero .lead.elementor-widget-text-editor { margin-bottom: 30px; }
.dg-el .page-hero .lead.elementor-widget-text-editor { color: #c9d6f2; position: relative; }
.dg-el .cta-band .elementor-widget-text-editor { color: #c9d6f2; max-width: 52ch; }
.dg-el .never-card .elementor-widget-text-editor { margin-top: 18px; font-size: .95rem; color: #d6e0f5; }
.dg-el .contact-wa .elementor-widget-text-editor { color: #25553a; margin-bottom: 16px; }
.dg-el .ask-box .elementor-widget-text-editor { margin-bottom: 16px; }
.dg-el .about-badge .elementor-widget-text-editor { font: 700 1.1rem var(--f-display); color: var(--navy); }
.dg-el .muted.elementor-widget-text-editor { color: var(--muted); margin-top: 18px; }
.dg-el .small.elementor-widget-text-editor { font-size: .92rem; }
.dg-el .guide .elementor-widget-text-editor ul,
.dg-el .guide .elementor-widget-text-editor ol:not(.num-list) { display: grid; gap: 6px; }
.dg-el .guide .elementor-widget-text-editor table { margin-bottom: 1em; }

/* ---------- Section / layout pieces ---------- */
.dg-el .e-con.section-head { margin-bottom: 40px; max-width: 640px; }
.dg-el .e-con.section-head.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }
.dg-el .e-con.section-head.split { max-width: none; display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dg-el .help-grid .e-con.section-head,
.dg-el .fees-grid .e-con.section-head,
.dg-el .faq-teaser .e-con.section-head { margin-bottom: 0; }
.dg-el .rating-summary { margin: 0; }
.dg-el .e-con.hero-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.dg-el .e-con.cta-inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.dg-el .e-con.cta-text { width: auto; flex: 1 1 420px; }
.dg-el .e-con.cta-actions, .dg-el .e-con.center-actions { display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap; width: auto; }
.dg-el .e-con.center-actions { justify-content: center; width: 100%; margin-top: 32px; }
.dg-el .e-con.page-hero, .dg-el .e-con.cta-band, .dg-el .e-con.hero { display: block; }
.dg-el .page-hero > .elementor-widget-html, .dg-el .cta-band > .elementor-widget-html { position: static; }
.dg-el .e-con.ready-card, .dg-el .e-con.never-card { display: block; }
.dg-el .e-con.ask-box { display: flex; align-items: center; text-align: center; margin-top: 40px; padding: 32px; }
.dg-el .e-con.contact-side { display: grid; gap: 24px; align-content: start; }
.dg-el .e-con.contact-wa { display: block; padding: 28px; }
.dg-el .e-con.guide-toc { display: block; }
.dg-el .e-con.guide-toc .dg-btn .elementor-button { width: 100%; }
.dg-el .e-con.prose { display: block; }
.dg-el .e-con.about-badge { display: block; }
.dg-el .about-badge img { width: 100%; max-width: 340px; margin: 0 auto 16px; border-radius: 50%; box-shadow: var(--shadow); }
.dg-el .e-con.col { display: block; }
.dg-el .rating-line { margin-bottom: 28px; }
.dg-el .rating-line .rating-summary { font-size: 1.05rem; }
.dg-el .hero-visual-wrap { justify-self: end; width: 100%; max-width: 560px; }
.dg-el .hero-visual-wrap .hero-visual { max-width: none; }

/* ---------- Buttons ---------- */
.dg-el .dg-btn .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 50px; padding: 0 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 700 1rem/1 var(--f-body); text-decoration: none; letter-spacing: 0; text-transform: none;
	transition: background-color .15s, border-color .15s, color .15s;
	fill: currentColor;
}
.dg-el .dg-btn .elementor-button-content-wrapper { display: flex; align-items: center; gap: .55em; }
.dg-el .dg-btn .elementor-button-icon { font-size: 1.35em; margin: 0; display: inline-flex; }
.dg-el .dg-btn .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }
.dg-el .dg-btn-wa .elementor-button { background: var(--wa); color: #fff; }
.dg-el .dg-btn-wa .elementor-button:hover, .dg-el .dg-btn-wa .elementor-button:focus { background: var(--wa-hover); color: #fff; }
.dg-el .dg-btn-ghost .elementor-button { background: transparent; color: var(--navy); border-color: var(--navy); }
.dg-el .dg-btn-ghost .elementor-button:hover, .dg-el .dg-btn-ghost .elementor-button:focus { background: var(--navy); color: #fff; }
.dg-el .dg-btn-ondark .elementor-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.dg-el .dg-btn-ondark .elementor-button:hover, .dg-el .dg-btn-ondark .elementor-button:focus { background: #fff; color: var(--navy); }
.dg-el .dg-btn-primary .elementor-button { background: var(--navy); color: #fff; }

/* ---------- Icon lists (ticks and crosses) ---------- */
.dg-el .dg-list .elementor-icon-list-items { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.dg-el .dg-list.small .elementor-icon-list-items { gap: 10px; font-size: .95rem; }
.dg-el .dg-list .elementor-icon-list-item { display: flex; align-items: flex-start; gap: 12px; padding: 0 !important; margin: 0 !important; }
.dg-el .dg-list .elementor-icon-list-item::after { display: none; }
.dg-el .dg-list .elementor-icon-list-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; margin-top: 1px; padding: 0; }
.dg-el .dg-list .elementor-icon-list-icon i { font-size: 12px; }
.dg-el .dg-list .elementor-icon-list-icon svg { width: 12px; height: 12px; }
.dg-el .dg-list-tick .elementor-icon-list-icon { background: #e6f6ec; color: var(--ok); fill: var(--ok); }
.dg-el .dg-list-tick .elementor-icon-list-icon i { color: var(--ok); }
.dg-el .dg-list-cross .elementor-icon-list-icon { background: rgba(215, 38, 46, .14); color: var(--red); fill: var(--red); }
.dg-el .dg-list-cross .elementor-icon-list-icon i { color: var(--red); }
.dg-el .never-card .dg-list-cross .elementor-icon-list-icon { background: var(--red); fill: #fff; }
.dg-el .never-card .dg-list-cross .elementor-icon-list-icon i { color: #fff; }
.dg-el .dg-list .elementor-icon-list-text { color: var(--ink); padding-left: 0 !important; font-size: inherit; line-height: 1.5; }
.dg-el .never-card .dg-list .elementor-icon-list-text { color: #fff; font-weight: 600; }
.dg-el .guide .dg-list { margin-bottom: 1em; }

/* ---------- FAQ (Toggle widget) ---------- */
.dg-el .dg-faq .elementor-toggle { display: grid; gap: 12px; }
.dg-el .dg-faq .elementor-toggle-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 !important; }
.dg-el .dg-faq .elementor-tab-title { position: relative; display: block; margin: 0; padding: 20px 56px 20px 22px; border: 0 !important; font: 600 1.05rem/1.4 var(--f-display); color: var(--navy); cursor: pointer; }
.dg-el .dg-faq .elementor-tab-title a, .dg-el .dg-faq .elementor-toggle-title { color: var(--navy); text-decoration: none; }
.dg-el .dg-faq .elementor-toggle-icon { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--blue); width: auto; }
.dg-el .dg-faq .elementor-toggle-icon svg { fill: var(--blue); width: 14px; height: 14px; }
.dg-el .dg-faq .elementor-toggle-icon i { color: var(--blue); }
.dg-el .dg-faq .elementor-tab-content { padding: 0 22px 20px; border: 0 !important; color: var(--muted); }
.dg-el .dg-faq .elementor-tab-content p { margin: 0; }

/* ---------- Image ---------- */
.dg-el .elementor-widget-image img { height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.dg-el .e-con.hero-grid,
	.dg-el .e-con.help-grid,
	.dg-el .e-con.ready-grid,
	.dg-el .e-con.faq-teaser,
	.dg-el .e-con.two-col,
	.dg-el .e-con.form-layout,
	.dg-el .e-con.guide-layout,
	.dg-el .e-con.about-grid { grid-template-columns: 1fr; }
	.dg-el .hero h1.elementor-heading-title { max-width: none; }
	.dg-el .hero-visual-wrap { order: -1; justify-self: center; max-width: 440px; margin-bottom: -10px; }
	.dg-el .about-badge img { max-width: 220px; }
}
@media (max-width: 640px) {
	.dg-el .e-con.hero-actions .dg-btn, .dg-el .e-con.cta-actions .dg-btn { flex: 1 1 100%; }
	.dg-el .e-con.hero-actions .elementor-button, .dg-el .e-con.cta-actions .elementor-button { width: 100%; }
	.dg-el .e-con.section-head.split .dg-btn, .dg-el .e-con.section-head.split .elementor-button { width: 100%; }
}

/* ---------- Elementor 4: spacing set through its own variables (higher specificity) ---------- */
.dg-el .elementor .e-con.hero-grid { --column-gap: 40px; --row-gap: 40px; gap: 40px; }
.dg-el .elementor .e-con.help-grid { --column-gap: clamp(32px, 6vw, 80px); --row-gap: 32px; gap: 32px clamp(32px, 6vw, 80px); }
.dg-el .elementor .e-con.ready-grid { --column-gap: 28px; --row-gap: 28px; gap: 28px; }
.dg-el .elementor .e-con.fees-grid,
.dg-el .elementor .e-con.faq-teaser { --column-gap: 40px; --row-gap: 32px; gap: 32px 40px; }
.dg-el .elementor .e-con.two-col { --column-gap: clamp(32px, 6vw, 72px); --row-gap: 40px; gap: 40px clamp(32px, 6vw, 72px); }
.dg-el .elementor .e-con.guide-layout,
.dg-el .elementor .e-con.form-layout { --column-gap: clamp(32px, 5vw, 64px); --row-gap: 32px; gap: 32px clamp(32px, 5vw, 64px); }
.dg-el .elementor .e-con.about-grid { --column-gap: clamp(32px, 6vw, 80px); --row-gap: 32px; gap: 32px clamp(32px, 6vw, 80px); }
.dg-el .elementor .e-con.contact-side { --row-gap: 24px; gap: 24px; }
.dg-el .elementor .e-con.hero-actions,
.dg-el .elementor .e-con.cta-actions,
.dg-el .elementor .e-con.center-actions { --column-gap: 12px; --row-gap: 12px; gap: 12px; }
.dg-el .elementor .e-con.cta-inner { --column-gap: 32px; --row-gap: 24px; gap: 24px 32px; }
.dg-el .elementor .e-con.section-head.split { --column-gap: 24px; --row-gap: 16px; gap: 16px 24px; }

.dg-el .elementor .e-con.ready-card,
.dg-el .elementor .e-con.never-card {
	--padding-top: clamp(28px, 4vw, 44px); --padding-bottom: clamp(28px, 4vw, 44px);
	--padding-left: clamp(28px, 4vw, 44px); --padding-right: clamp(28px, 4vw, 44px);
	padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
}
.dg-el .elementor .e-con.never-card { background: var(--navy); color: #d6e0f5; }
.dg-el .elementor .e-con.ready-card { border: 1px solid var(--line); }
.dg-el .elementor .e-con.cta-band {
	--padding-top: clamp(56px, 7vw, 88px); --padding-bottom: clamp(96px, 10vw, 130px);
	padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(96px, 10vw, 130px);
}
.dg-el .elementor .e-con.page-hero {
	--padding-top: clamp(48px, 7vw, 88px); --padding-bottom: clamp(64px, 8vw, 100px);
	padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 100px);
}
.dg-el .elementor .e-con.ask-box { --padding-top: 32px; --padding-bottom: 32px; --padding-left: 32px; --padding-right: 32px; padding: 32px; border-radius: var(--r-lg); background: var(--sky); }
.dg-el .elementor .e-con.contact-wa { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px; padding: 28px; border-radius: var(--r-lg); background: #e8f7ee; }
.dg-el .elementor .e-con.guide-toc { --padding-top: 24px; --padding-bottom: 24px; --padding-left: 24px; --padding-right: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--sky); position: sticky; top: 100px; }
.dg-el .elementor .e-con.wrap { --padding-left: var(--gutter); --padding-right: var(--gutter); }
.dg-el .elementor .e-con.section { --padding-top: clamp(56px, 7vw, 104px); --padding-bottom: clamp(56px, 7vw, 104px); }
.dg-el .elementor .e-con.hero-grid { --padding-top: clamp(40px, 6vw, 80px); --padding-bottom: clamp(56px, 7vw, 96px); }
.dg-el .cta-band > .elementor-widget-html { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 900px) {
	.dg-el .elementor .e-con.guide-toc { position: static; }
}

/* ---------- Fine-tuning ---------- */
.dg-el .elementor .e-con.split-text { --width: auto; width: auto; flex: 1 1 320px; }
.dg-el .elementor .e-con.guide-toc { align-self: start; }
.dg-el .elementor .e-con.contact-side, .dg-el .elementor .e-con.form-intro { align-self: start; }
.dg-el .prose:not(.guide) > .elementor-widget-heading:not(:first-child) .elementor-heading-title { margin-top: 1.4em; }
.dg-el .prose .dg-list { margin-bottom: 1em; }
