/**
 * Urbangap – public styles (Nextwave Italia)
 *
 * Questo file contiene SOLO CSS strutturale (display, position, layout).
 * I colori e le dimensioni critiche che devono sopravvivere al tema Uncode
 * sono applicati inline direttamente dal PHP di ogni shortcode.
 *
 * Convenzione classi: prefisso ug- obbligatorio su tutto.
 */

/* ==========================================================================
   ug-nw-hero — Sezione Hero
   ========================================================================== */

:root {
	--ug-accent:       #0000FF;
	--ug-accent-rgb:   0, 0, 255;
	--ug-accent-hover: rgba( 0, 0, 255, 0.08 );

	/* Spacing scale */
	--ug-space-xs:  8px;
	--ug-space-sm:  16px;
	--ug-space-md:  24px;
	--ug-space-lg:  48px;
	--ug-space-xl:  80px;
}

.ug-nw-hero {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	text-align: center;
	/* padding gestito inline dal shortcode (padding_top / padding_bottom) */
}

.ug-nw-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ug-nw-hero__text {
	max-width: 650px;
	margin: 20px auto 48px;
	color: #475569;
	font-size: clamp( 1rem, 2.5vw, 1.25rem );
	line-height: 1.6;
}

.ug-nw-hero__btns {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ug-btn-dark-pill {
	transition: background 0.3s ease, color 0.3s ease;
}
.ug-btn-dark-pill:hover {
	background: transparent !important;
	color: #0F172A !important;
}

.ug-btn-outline-pill {
	transition: background 0.3s ease, color 0.3s ease;
}
.ug-btn-outline-pill:hover {
	background: #0F172A !important;
	color: #ffffff !important;
}

@media ( max-width: 768px ) {
	.ug-nw-hero__btns {
		flex-direction: column;
		align-items: center;
	}
	.ug-nw-hero__text {
		font-size: 1rem;
		margin-bottom: 32px;
	}
}

/* ==========================================================================
   ug-nw-pricing-grid — Sezione piani
   ========================================================================== */

.ug-nw-pricing-section {
	padding: 80px 0;
}

.ug-nw-pricing-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Intestazione */
.ug-nw-section-intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}

.ug-nw-section-title {
	margin-bottom: 0;
}

/* Card */
.ug-nw-price-card {
	background: #ffffff;
	padding: 48px 32px;
	border-radius: 32px;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ug-nw-price-card:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	transform: translateY( -2px );
}

.ug-nw-price-card__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 0;
}

/* Prezzo */
.ug-nw-price-value {
	margin: 16px 0 8px;
}

.ug-nw-price-amount-row {
	display: flex;
	align-items: baseline;
}

/* Feature list */
.ug-nw-price-features {
	list-style: none !important;
	list-style-type: none !important;
	padding: 0;
	margin: 24px 0 32px;
	flex-grow: 1;
}

.ug-nw-price-features li {
	font-size: 0.9rem;
	margin-bottom: 12px;
	padding-left: 25px;
	position: relative;
	color: #475569;
}

.ug-nw-price-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var( --ug-accent );
	font-weight: 900;
}

/* Pulsante CTA — hover outline */
.ug-nw-btn-price {
	padding: 16px 24px;
	border-radius: 16px;
	font-weight: 700;
	transition: background 0.3s ease, color 0.3s ease;
}

.ug-nw-btn-price:hover {
	background: transparent !important;
	color: var( --ug-accent ) !important;
}

/* Single card — span all columns and center */
.ug-nw-pricing-grid > .ug-nw-price-card:only-child {
	grid-column: 1 / -1;
	max-width: 380px;
	width: 100%;
	margin: 0 auto;
}

/* Responsive */
@media ( max-width: 1200px ) {
	.ug-nw-pricing-grid {
		grid-template-columns: 1fr !important;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-pricing-section {
		padding: 60px 0;
	}

	.ug-nw-price-card {
		padding: 32px 24px;
	}
}

/* ==========================================================================
   ug-nw-reasons-company — Sezione "Reasons"
   Sfondo e colori testo: dal tema Uncode / dalla riga WPBakery contenitore.
   Colori label e accento: iniettati inline dal PHP via <style> scopato.
   ========================================================================== */

.ug-nw-reasons-section {
	margin-top: 0 !important;
}

.ug-nw-reasons-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Intro */
.ug-nw-reasons-intro {
	max-width: 660px;
	margin-bottom: 64px;
}

/* Etichetta con dash decorativo — colore via <style> scopato sull'ID */
.ug-nw-reasons-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 20px;
}


/* Titolo e testo — colori ereditati dal tema */
.ug-nw-reasons-title {
	margin-bottom: 16px;
}

.ug-nw-reasons-text {
	font-size: clamp( 0.9rem, 1.5vw, 1.05rem );
	line-height: 1.7;
	margin: 0;
}

/* Griglia card */
.ug-nw-reasons-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
	margin-bottom: 64px;
}

/* Card — struttura senza colori fissi */
.ug-nw-reason-card {
	border-left: 3px solid var( --ug-accent );
	border-radius: 24px;
	padding: 40px 36px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ug-nw-reason-card:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.08 );
}


.ug-nw-reason-card__title {
	font-size: 1.05rem;
	font-weight: 800;
	margin-bottom: 14px;
}

.ug-nw-reason-card__text {
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
}

/* CTA row */
.ug-nw-reasons-cta {
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

/* Pulsante — sfondo via inline PHP, struttura qui */
.ug-nw-btn-teal {
	padding: 16px 24px;
	border-radius: 16px;
	font-weight: 700;
	transition: opacity 0.3s ease;
}

.ug-nw-btn-teal:hover {
	opacity: 0.85;
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ug-nw-reasons-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 16px;
	}

	.ug-nw-reasons-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-reasons-intro {
		margin-bottom: 40px;
	}

	.ug-nw-reasons-grid {
		grid-template-columns: 1fr;
	}

	.ug-nw-reason-card {
		padding: 28px 24px;
	}
}

/* ==========================================================================
   ug-nw-steps — Stepper orizzontale
   Colore cerchi e connettore: iniettato via <style> scopato sull'ID.
   Sfondo e colori testo: ereditati dal tema.
   ========================================================================== */

.ug-nw-steps-section {
	margin-top: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.ug-nw-steps-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Intro */
.ug-nw-steps-intro {
	max-width: 640px;
	margin-bottom: 72px;
}

/* Etichetta con dash — colore via tema o override CSS esterno */
.ug-nw-steps-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 20px;
	color: var( --ug-accent );
}


.ug-nw-steps-title {
	margin-bottom: 16px;
}

.ug-nw-steps-text {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0;
}

/* Stepper grid — colonne e connettore posizionati via <style> scopato */
.ug-nw-stepper {
	position: relative;
	display: grid;
	/* grid-template-columns: impostato via <style> scopato */
	gap: 0;
	margin-bottom: 56px;
}

/* Connettore orizzontale — background e left/right via <style> scopato */
.ug-nw-stepper::before {
	content: '';
	position: absolute;
	top: 27px; /* metà altezza cerchio (56px / 2 - 1px linea) */
	height: 2px;
	z-index: 0;
}

/* Singolo step */
.ug-nw-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 32px;
	position: relative;
	z-index: 1;
}

/* Cerchio numerato — bg e box-shadow via inline PHP */
.ug-nw-step-num {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
	flex-shrink: 0;
}

.ug-nw-step-title {
	font-size: 1.05rem;
	font-weight: 800;
	margin-bottom: 12px;
}

.ug-nw-step-text {
	font-size: 0.88rem;
	line-height: 1.7;
	margin: 0;
	max-width: 280px;
}

/* Pill garanzia */
.ug-nw-garanzia-wrap {
	display: flex;
	justify-content: center;
}

.ug-nw-garanzia {
	text-align: center;
	font-size: 0.9rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 50px;
	padding: 18px 48px;
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ug-nw-stepper {
		grid-template-columns: 1fr !important;
		gap: 48px;
	}

	.ug-nw-stepper::before {
		display: none;
	}

	.ug-nw-step {
		align-items: flex-start;
		text-align: left;
		flex-direction: row;
		gap: 24px;
	}

	.ug-nw-step-num {
		margin-bottom: 0;
	}

	.ug-nw-step-text {
		max-width: none;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-steps-section {
		padding: 60px 0;
	}

	.ug-nw-steps-intro {
		margin-bottom: 48px;
	}

	.ug-nw-step {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 0 8px;
	}

	.ug-nw-step-num {
		margin-bottom: 20px;
	}

	.ug-nw-garanzia {
		padding: 16px 24px;
	}
}

/* ==========================================================================
   ug-nw-comparison — Comparison table
   Background inherited from WPBakery row (no hardcoded bg on section).
   The section itself is the card: border-radius + padding mirror the
   original .comparison-section from the HTML mockup.
   Center column (ug-nw-col-highlight) colored via inline PHP style.
   ========================================================================== */

/* The element IS the card — border-radius and padding are structural */
.ug-nw-comparison-section {
	margin-top: 0 !important;
	border-radius: 64px;
	padding: 80px 60px;
	background-color: rgba( 255, 255, 255, 0.02 );
}

.ug-nw-comparison-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ug-nw-comparison-header {
	margin-bottom: 48px;
}

.ug-nw-comparison-title {
	margin-bottom: 0;
}

/* Inner table card — mirrors .table-container from the mockup */
.ug-nw-table-container {
	border-radius: 40px;
	padding: 40px;
	background-color: rgba( 255, 255, 255, 0.05 );
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ug-nw-comparison-table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	table-layout: fixed;
}

/* All cells — reset theme borders, keep only bottom separator */
.ug-nw-comparison-table th,
.ug-nw-comparison-table td {
	border: none !important;
	border-bottom: 1px solid rgba( 128, 128, 128, 0.12 ) !important;
	padding: 25px;
	text-align: left;
	font-size: 0.9rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Explicit reset on individual column classes — Uncode may target these directly */
.ug-nw-col-feature,
.ug-nw-col-highlight,
.ug-nw-col-other,
.ug-nw-col-feature-header,
.ug-nw-col-other-header {
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
}

/* Last row — no bottom border */
.ug-nw-comparison-table tbody tr:last-child td {
	border-bottom: none !important;
}

/* Header row */
.ug-nw-comparison-table thead th {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Raised effect on highlight column */
.ug-nw-comparison-table thead .ug-nw-col-highlight {
	box-shadow: inset 0 3px 0 0 var( --ug-accent );
}

/* Responsive — 1024px: reduce padding */
@media ( max-width: 1024px ) {
	.ug-nw-comparison-section {
		padding: 60px 32px;
		border-radius: 40px;
	}

	.ug-nw-table-container {
		padding: 24px;
		border-radius: 24px;
	}
}

@media ( max-width: 860px ) {
	.ug-nw-table-container {
		padding: 20px 16px;
		border-radius: 20px;
	}
}

/* Responsive — 768px: card layout (no horizontal scroll) */
@media ( max-width: 768px ) {
	.ug-nw-comparison-section {
		padding: 40px 0;
		border-radius: 16px;
	}

	.ug-nw-table-container {
		padding: 8px 0;
		border-radius: 16px;
		overflow-x: visible;
		overflow-x: unset;
	}

	/* Hide header row — labels come from data-label on each cell */
	.ug-nw-comparison-table thead {
		display: none;
	}

	.ug-nw-comparison-table,
	.ug-nw-comparison-table tbody {
		display: block;
	}

	/* Each row becomes a card */
	.ug-nw-comparison-table tbody tr {
		display: block;
		border: 1px solid rgba( 128, 128, 128, 0.15 );
		border-radius: 16px;
		margin-bottom: 12px;
		overflow: hidden;
	}

	.ug-nw-comparison-table tbody tr:last-child {
		margin-bottom: 0;
	}

	/* Each cell becomes a row inside the card */
	.ug-nw-comparison-table td {
		display: flex;
		align-items: baseline;
		gap: 12px;
		padding: 14px 16px;
		box-sizing: border-box;
		width: 100%;
		border: none !important;
		border-bottom: 1px solid rgba( 128, 128, 128, 0.1 ) !important;
		font-size: 0.88rem;
	}

	.ug-nw-comparison-table td:last-child {
		border-bottom: none !important;
	}

	/* Column label from data-label attribute */
	.ug-nw-comparison-table td::before {
		content: attr( data-label );
		font-size: 0.72rem;
		font-weight: 800;
		letter-spacing: 1px;
		text-transform: uppercase;
		opacity: 0.5;
		white-space: nowrap;
		flex-shrink: 0;
		min-width: 90px;
	}

	/* Highlight cell keeps its bg color on mobile */
	.ug-nw-col-highlight {
		/* background and color set inline — preserved in card layout */
	}
}

/* ==========================================================================
   ug-nw-testimonials — Testimonials with fade rotation + stats
   Star color injected via scoped <style>. Text colors from theme.
   ========================================================================== */

.ug-nw-testimonials-section {
	padding: 80px 0;
	margin-top: 0 !important;
}

.ug-nw-testimonials-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Header row — label+title left, rating box right */
.ug-nw-testimonials-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 48px;
	gap: 40px;
	flex-wrap: wrap;
}

.ug-nw-t-header-text {
	flex: 1;
	min-width: 200px;
}

.ug-nw-t-title {
	margin-bottom: 0;
}

/* Rating box */
.ug-nw-rating-box {
	text-align: center;
	border-radius: 24px;
	padding: 28px 40px;
	border: 1px solid rgba( 128, 128, 128, 0.15 );
	flex-shrink: 0;
	background-color: #ffffff;
}

.ug-nw-rating-num {
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -2px;
	display: block;
	line-height: 1;
	margin-bottom: 6px;
}

.ug-nw-rating-stars {
	display: block;
	font-size: 1.1rem;
	letter-spacing: 2px;
	margin-bottom: 6px;
}

.ug-nw-rating-count {
	font-size: 0.8rem;
	margin: 0;
	opacity: 0.6;
}

/* Testimonials grid */
.ug-nw-t-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 32px;
	margin-bottom: 48px;
}

/* Individual card */
.ug-nw-t-card {
	padding: 40px;
	border-radius: 32px;
	border: 1px solid rgba( 128, 128, 128, 0.12 );
	transition: opacity 0.8s cubic-bezier( 0.4, 0, 0.2, 1 ),
	            transform 0.3s ease,
	            box-shadow 0.3s ease;
	background-color: #ffffff;
}

.ug-nw-t-card:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.08 );
}

.ug-nw-t-stars {
	display: block;
	font-size: 1.1rem;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.ug-nw-t-text {
	font-style: italic;
	margin: 0 0 16px;
	line-height: 1.6;
}

.ug-nw-t-author {
	font-size: 0.9rem;
}


/* Testimonials rotation dots */
.ug-nw-t-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.ug-nw-t-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba( 128, 128, 128, 0.25 );
	transition: background 0.3s ease, transform 0.3s ease;
	cursor: default;
}

.ug-nw-t-dot.is-active {
	background: var( --ug-accent );
	transform: scale( 1.3 );
}

/* Stats grid */
.ug-nw-stats-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 32px;
}

.ug-nw-stat-item {
	padding: 48px 40px;
	border-radius: 32px;
	text-align: center;
	border: 1px solid rgba( 128, 128, 128, 0.12 );
	background-color: #ffffff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ug-nw-stat-item:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.08 );
}

.ug-nw-stat-number {
	font-size: 4rem;
	font-weight: 800;
	display: block;
	letter-spacing: -2px;
	line-height: 1;
	margin-bottom: 12px;
}

.ug-nw-stat-label {
	margin: 0;
	font-size: 0.9rem;
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ug-nw-t-grid,
	.ug-nw-stats-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.ug-nw-testimonials-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-testimonials-section {
		padding: 60px 0;
	}

	.ug-nw-t-grid,
	.ug-nw-stats-grid {
		grid-template-columns: 1fr;
	}

	.ug-nw-stat-item {
		padding: 32px 24px;
	}

	.ug-nw-stat-number {
		font-size: clamp( 2.5rem, 8vw, 4rem );
	}

	.ug-nw-t-card {
		padding: 28px 24px;
	}
}

/* ==========================================================================
   ug-nw-cta — CTA banner (referral)
   Gradient background applied inline via PHP colorpickers.
   Button colors applied inline via PHP colorpickers.
   ========================================================================== */

.ug-nw-cta-section {
	padding: var( --ug-space-xl ) 0;
	margin-top: 0 !important;
}

.ug-nw-cta-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ug-nw-cta-wrapper {
	border-radius: 56px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 48px;
	width: 100%;
}

.ug-nw-cta-content {
	flex: 1;
}

/* Button hover */
.ug-nw-cta-btn {
	padding: 16px 24px;
	border-radius: 16px;
	font-weight: 700;
	transition: opacity 0.3s ease;
}

.ug-nw-cta-btn:hover {
	opacity: 0.85;
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ug-nw-cta-wrapper {
		flex-direction: column;
		text-align: center;
		gap: 32px;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-cta-wrapper {
		border-radius: 32px;
	}
}

/* ==========================================================================
   ug-nw-contact-form — Contact form
   ========================================================================== */

.ug-nw-contact-section {
	padding: 80px 0;
	margin-top: 0 !important;
}

.ug-nw-contact-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Two-column layout: info left, form right */
.ug-nw-contact-flex {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 80px;
	align-items: start;
}

/* Grid children must have min-width: 0 to allow shrinking below content size */
.ug-nw-contact-flex > * {
	min-width: 0;
}

.ug-nw-contact-title {
	margin-bottom: 16px;
}

.ug-nw-contact-text {
	font-size: clamp( 0.9rem, 1.5vw, 1.05rem );
	line-height: 1.7;
	margin: 0;
	opacity: 0.7;
}

/* Form grid — 2 columns, full-width overrides */
.ug-nw-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
	width: 100%;
	box-sizing: border-box;
}

/* Grid children must have min-width: 0 */
.ug-nw-form-grid > .ug-nw-form-group {
	min-width: 0;
}

.ug-nw-form-group--full {
	grid-column: 1 / -1;
}

/* Form element */
.ug-nw-contact-form {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Input / select / textarea shared styles */
.ug-nw-contact-form input[type="text"],
.ug-nw-contact-form input[type="email"],
.ug-nw-contact-form input[type="tel"],
.ug-nw-contact-form select,
.ug-nw-contact-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 16px 20px;
	border-radius: 12px;
	border: 1px solid rgba( 128, 128, 128, 0.25 );
	background: transparent;
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.ug-nw-contact-form input:focus,
.ug-nw-contact-form select:focus,
.ug-nw-contact-form textarea:focus {
	outline: none;
	border-color: var( --ug-accent );
	box-shadow: 0 0 0 3px rgba( var( --ug-accent-rgb ), 0.12 );
}

.ug-nw-contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* Select arrow */
.ug-nw-form-group {
	position: relative;
}

.ug-nw-contact-form select {
	cursor: pointer;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

/* Privacy row */
.ug-nw-form-privacy {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.85rem;
}

.ug-nw-form-privacy input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	cursor: pointer;
	accent-color: var( --ug-accent );
}

.ug-nw-form-privacy label {
	line-height: 1.5;
	cursor: pointer;
}

.ug-nw-form-privacy a {
	color: var( --ug-accent );
	text-decoration: underline;
}

/* Submit button */
.ug-nw-form-submit,
.ug-nw-contact-form input[type="submit"] {
	display: block;
	width: 100%;
	padding: 16px 24px !important;
	border: none;
	border-radius: 16px !important;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700 !important;
	cursor: pointer;
	transition: opacity 0.3s ease;
	margin-top: 20px;
}

.ug-nw-form-submit:hover,
.ug-nw-contact-form input[type="submit"]:hover {
	opacity: 0.85;
}


/* Form loading state */
.ug-nw-contact-form.is-loading .ug-nw-form-submit {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.ug-nw-contact-form.is-loading .ug-nw-form-submit::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba( 255, 255, 255, 0.4 );
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ugSpin 0.7s linear infinite;
}

@keyframes ugSpin {
	to { transform: rotate( 360deg ); }
}

/* Feedback messages */
.ug-nw-form-feedback {
	margin-top: 16px;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 600;
}

.ug-nw-form-feedback--success {
	background: rgba( 34, 197, 94, 0.1 );
	color: #166534;
	border: 1px solid rgba( 34, 197, 94, 0.3 );
}

.ug-nw-form-feedback--error {
	background: rgba( 239, 68, 68, 0.1 );
	color: #991b1b;
	border: 1px solid rgba( 239, 68, 68, 0.3 );
}

/* Responsive */
@media ( max-width: 1024px ) {
	.ug-nw-contact-flex {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}

@media ( max-width: 768px ) {
	.ug-nw-contact-section {
		padding: 60px 0;
	}

	.ug-nw-form-grid {
		grid-template-columns: 1fr;
	}

	.ug-nw-form-group--full {
		grid-column: auto;
	}
}

/* ==========================================================================
   ug-nw-faq — FAQ accordion
   Accent color (toggle icon, open border) injected via scoped <style>.
   Background and text colors inherited from theme.
   ========================================================================== */

.ug-nw-faq-section {
	padding: 80px 0;
	margin-top: 0 !important;
}

.ug-nw-faq-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ug-nw-faq-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}

.ug-nw-faq-title {
	margin-bottom: 0;
}

/* FAQ list */
.ug-nw-faq-list {
	max-width: 800px;
	margin: 0 auto;
}

/* Single item */
.ug-nw-faq-item {
	border-bottom: 1px solid rgba( 128, 128, 128, 0.2 );
	transition: border-left 0.2s ease, padding-left 0.2s ease;
}

.ug-nw-faq-item:first-child {
	border-top: 1px solid rgba( 128, 128, 128, 0.2 );
}

/* Question button */
.ug-nw-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 28px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	gap: 16px;
}

.ug-nw-faq-question-text {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
	flex: 1;
}

/* Toggle icon — color via scoped <style> */
.ug-nw-faq-toggle {
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	display: block;
	width: 24px;
	text-align: center;
}

.ug-nw-faq-item.is-open .ug-nw-faq-toggle {
	transform: rotate( 45deg );
}

/* Answer panel — closed state: snappy ease-in collapse */
.ug-nw-faq-answer {
	overflow: hidden;
	height: 0;
	opacity: 0;
	transition: height  0.28s cubic-bezier( 0.4, 0, 1, 1 ),
	            opacity 0.2s  ease-in;
}

.ug-nw-faq-answer[hidden] {
	display: block; /* JS removes [hidden] on init; keep display for transition */
}

/* Answer panel — open state: smooth ease-out expansion */
/* height is set via JS to the exact scrollHeight value */
.ug-nw-faq-item.is-open .ug-nw-faq-answer {
	opacity: 1;
	transition: height  0.38s cubic-bezier( 0, 0, 0.2, 1 ),
	            opacity 0.3s  ease-out 0.04s;
}

.ug-nw-faq-answer p {
	padding: 0 0 28px;
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
	opacity: 0.75;
}

/* Responsive */
@media ( max-width: 768px ) {
	.ug-nw-faq-section {
		padding: 60px 0;
	}

	.ug-nw-faq-question-text {
		font-size: 0.95rem;
	}
}

/* ==========================================================================
   ug-nw-sponsor-banner — Sponsor banner
   Background color applied inline via PHP colorpicker.
   Border-left accent color injected via scoped <style>.
   ========================================================================== */

.ug-nw-sponsor-section {
	padding: var( --ug-space-xl ) 0;
	margin-top: 0 !important;
}

.ug-nw-sponsor-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ug-nw-sponsor-flex {
	display: flex;
	align-items: center;
	gap: 64px;
}

/* Logo column */
.ug-nw-sponsor-logo-col {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ug-nw-sponsor-logo {
	display: block;
}

/* Text column */
.ug-nw-sponsor-text-col {
	flex: 1;
}

.ug-nw-sponsor-title {
	font-size: clamp( 1.4rem, 2.5vw, 2rem );
	font-weight: 800;
	line-height: 1.2;
}

/* Responsive */
@media ( max-width: 768px ) {
	.ug-nw-sponsor-section {
		padding: 48px 0;
	}

	.ug-nw-sponsor-flex {
		flex-direction: column;
		gap: 40px;
		text-align: center;
	}

	.ug-nw-sponsor-text-col {
		border-left: none !important;
		padding-left: 0 !important;
		padding-top: 32px;
	}
}

/* ==========================================================================
   File upload — visually consistent with other form fields
   ========================================================================== */

/* Hide the native input, show the styled label */
.ug-nw-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

/* Styled label — matches input/select appearance */
.ug-nw-file-label {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 16px 20px;
	border-radius: 12px;
	border: 1px solid rgba( 128, 128, 128, 0.25 );
	background: transparent;
	font-family: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.ug-nw-file-label:hover,
.ug-nw-file-label:focus-within {
	border-color: var( --ug-accent );
	box-shadow: 0 0 0 3px rgba( var( --ug-accent-rgb ), 0.12 );
}

.ug-nw-file-label-icon {
	flex-shrink: 0;
	font-size: 1rem;
	line-height: 1;
}

.ug-nw-file-label-text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.6;
}

/* When a file is selected, show full name */
.ug-nw-file-label.has-file .ug-nw-file-label-text {
	opacity: 1;
}
