/**
 * Contact page — Elementor widget styles.
 *
 * Ported from src/pages/Contact.tsx (SectionLabel is the only imported
 * component; everything else is inline markup on that page).
 *
 * Selectors are scoped under an `ig-contact-` prefix to avoid collisions with
 * the base widgets.css classes (`ig-hero`, `ig-card`, …). Brand tokens are
 * re-used from the base stylesheet — the same `--ig-*` names and values are
 * declared on these page wrappers (mirroring the per-widget token pattern in
 * widgets.css). We do NOT redefine :root.
 */

/* =========================================================================
   Brand tokens (re-used from widgets.css — same names/values, page-scoped)
   ========================================================================= */
.ig-contact-hero,
.ig-contact-offices,
.ig-contact-support {
	--ig-navy: hsl(225 70% 17%);
	--ig-navy-light: hsl(225 50% 30%);
	--ig-gold: hsl(38 91% 55%);
	--ig-gold-light: hsl(38 91% 70%);
	--ig-teal: hsl(174 60% 42%);
	--ig-teal-light: hsl(174 50% 60%);
	--ig-background: var(--ig-surface, hsl(0 0% 100%));
	--ig-foreground: var(--ig-ink, hsl(225 70% 17%));
	--ig-muted: hsl(220 20% 96%);
	--ig-muted-foreground: hsl(220 10% 46%);
	--ig-border: hsl(220 20% 90%);
	--ig-input: hsl(220 20% 90%);
	--ig-card: hsl(0 0% 100%);
	--ig-radius: 0.75rem;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
}

.ig-contact-hero *,
.ig-contact-offices *,
.ig-contact-support * {
	box-sizing: border-box;
}

/* Local container — matches the base .ig-container (max 1400px, 2rem pad). */
.ig-contact-container {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* =========================================================================
   Hero + form (Contact.tsx — first <section>, ribbon-section, 2-col grid)
   ========================================================================= */
.ig-contact-hero {
	position: relative;
	overflow: hidden;
	background: var(--ig-surface, var(--ig-navy));
}

/* Navy diagonal gradient (from-primary via-navy-light to-primary). */
.ig-contact-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom right,
		var(--ig-navy),
		var(--ig-navy-light),
		var(--ig-navy)
	);
}

/* Ribbon accents — gold bottom-left, teal top-right (index.css .ribbon-section). */
.ig-contact-hero__ribbon {
	position: absolute;
	z-index: 1;
	pointer-events: none;
}

.ig-contact-hero__ribbon--gold {
	left: -60px;
	bottom: -40px;
	width: 220px;
	height: 350px;
	background: var(--ig-gold);
	clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.ig-contact-hero__ribbon--teal {
	right: -40px;
	top: -40px;
	width: 200px;
	height: 320px;
	background: var(--ig-teal);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.ig-contact-hero__inner {
	position: relative;
	z-index: 10;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

@media (min-width: 1024px) {
	.ig-contact-hero__inner {
		padding-top: 7rem;
		padding-bottom: 7rem;
	}
}

.ig-contact-hero__grid {
	display: grid;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.ig-contact-hero__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 4rem;
	}
}

@media (min-width: 1024px) {
	.ig-contact-hero__intro {
		padding-top: 2rem;
	}
}

.ig-contact-hero__eyebrow {
	color: var(--ig-gold-light);
	margin-bottom: 1rem;
	display: block;
}

.ig-contact-hero__heading {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 1.5rem;
}

.ig-contact-hero__heading .ig-contact-hero__accent {
	color: var(--ig-gold);
}

.ig-contact-hero__sub {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.8);
	max-width: 32rem;
	margin: 0 0 2rem;
	line-height: 1.6;
}

.ig-contact-hero__links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ig-contact-hero__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ig-contact-hero__link:hover {
	color: var(--ig-gold);
}

.ig-contact-hero__link-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--ig-radius);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ig-contact-hero__link-icon svg,
.ig-contact-hero__link-icon i {
	width: 1rem;
	height: 1rem;
	font-size: 1rem;
	color: var(--ig-gold);
}

.ig-contact-hero__link-text {
	font-size: 1rem;
	font-weight: 600;
}

/* --- Form card --- */
.ig-contact-form {
	background: var(--ig-card);
	border-radius: 1rem;
	padding: 2rem;
	border: 1px solid var(--ig-border);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ig-contact-form__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 0.25rem;
}

.ig-contact-form__note {
	font-size: 0.875rem;
	color: var(--ig-muted-foreground);
	margin: 0;
}

.ig-contact-form__row {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ig-contact-form__row {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ig-contact-form__field,
.ig-contact-form__select,
.ig-contact-form__textarea {
	width: 100%;
	border-radius: var(--ig-radius);
	border: 1px solid var(--ig-input);
	background: var(--ig-background);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--ig-foreground);
	line-height: 1.4;
}

.ig-contact-form__field::placeholder,
.ig-contact-form__textarea::placeholder {
	color: var(--ig-muted-foreground);
}

.ig-contact-form__select {
	color: var(--ig-muted-foreground);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 1rem;
	padding-right: 2.5rem;
}

.ig-contact-form__textarea {
	resize: none;
}

.ig-contact-form__field:focus,
.ig-contact-form__select:focus,
.ig-contact-form__textarea:focus {
	outline: none;
	border-color: var(--ig-gold);
	box-shadow: 0 0 0 2px hsl(38 91% 55% / 0.4);
}

/* Full-width gold pill submit (Button variant used in React). */
.ig-contact-form__submit {
	width: 100%;
	border: none;
	cursor: pointer;
	border-radius: 9999px;
	background: var(--ig-gold);
	color: var(--ig-navy);
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	transition: background-color 0.2s ease;
}

.ig-contact-form__submit:hover {
	background: var(--ig-gold-light);
}

/* =========================================================================
   Offices (Contact.tsx — second <section>, 2-up image cards)
   ========================================================================= */
.ig-contact-offices {
	padding: 5rem 0;
	background: var(--ig-background);
}

.ig-contact-offices__intro {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 3rem;
}

.ig-contact-offices__heading {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0.75rem 0 1rem;
}

.ig-contact-offices__lead {
	color: var(--ig-muted-foreground);
	line-height: 1.7;
	margin: 0;
}

.ig-contact-offices__grid {
	display: grid;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.ig-contact-offices__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ig-contact-office {
	background: var(--ig-card);
	border-radius: 1rem;
	border: 1px solid var(--ig-border);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.ig-contact-office:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
}

.ig-contact-office__img {
	width: 100%;
	height: 12rem;
	object-fit: cover;
	display: block;
}

.ig-contact-office__body {
	padding: 2rem;
}

.ig-contact-office__head {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ig-contact-office__icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	background: hsl(38 91% 55% / 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ig-contact-office__icon svg,
.ig-contact-office__icon i {
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.25rem;
	color: var(--ig-gold);
}

.ig-contact-office__role {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ig-teal);
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.ig-contact-office__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0;
}

.ig-contact-office__address {
	padding-left: 4rem;
}

.ig-contact-office__address-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ig-navy);
	margin: 0 0 0.25rem;
}

.ig-contact-office__address-line {
	font-size: 0.875rem;
	color: var(--ig-muted-foreground);
	margin: 0;
	line-height: 1.5;
}

/* =========================================================================
   24/7 Support (Contact.tsx — third <section>, navy gradient panel)
   ========================================================================= */
.ig-contact-support {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-muted));
}

.ig-contact-support__panel {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	padding: 2.5rem;
	background: linear-gradient(
		to bottom right,
		var(--ig-navy),
		var(--ig-navy-light),
		var(--ig-navy)
	);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.ig-contact-support__panel {
		padding: 3.5rem;
	}
}

/* Decorative blurred glows. */
.ig-contact-support__glow {
	position: absolute;
	width: 12rem;
	height: 12rem;
	border-radius: 9999px;
	filter: blur(48px);
	pointer-events: none;
}

.ig-contact-support__glow--gold {
	top: -3rem;
	right: -3rem;
	background: hsl(38 91% 55% / 0.2);
}

.ig-contact-support__glow--teal {
	bottom: -3rem;
	left: -3rem;
	background: hsl(174 60% 42% / 0.2);
}

.ig-contact-support__grid {
	position: relative;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.ig-contact-support__grid {
		grid-template-columns: 1fr 2fr;
	}
}

.ig-contact-support__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: hsl(38 91% 55% / 0.2);
	border: 1px solid hsl(38 91% 55% / 0.3);
	margin-bottom: 1.25rem;
}

.ig-contact-support__badge-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: var(--ig-gold);
	animation: ig-contact-pulse 2s ease-in-out infinite;
}

.ig-contact-support__badge-text {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ig-gold-light);
}

.ig-contact-support__heading {
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 0.75rem;
}

.ig-contact-support__heading .ig-contact-support__accent {
	color: var(--ig-gold);
}

.ig-contact-support__lead {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	margin: 0;
}

.ig-contact-support__cards {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ig-contact-support__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ig-contact-support__card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	padding: 1.5rem;
}

.ig-contact-support__card-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.ig-contact-support__card-icon--gold {
	background: hsl(38 91% 55% / 0.2);
	border: 1px solid hsl(38 91% 55% / 0.3);
}

.ig-contact-support__card-icon--teal {
	background: hsl(174 60% 42% / 0.2);
	border: 1px solid hsl(174 60% 42% / 0.3);
}

.ig-contact-support__card-icon svg,
.ig-contact-support__card-icon i {
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.25rem;
}

.ig-contact-support__card-icon--gold svg,
.ig-contact-support__card-icon--gold i {
	color: var(--ig-gold);
}

.ig-contact-support__card-icon--teal svg,
.ig-contact-support__card-icon--teal i {
	color: var(--ig-teal);
}

.ig-contact-support__card-title {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.75rem;
}

.ig-contact-support__contacts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ig-contact-support__contact {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s ease;
}

.ig-contact-support__contact:hover {
	color: var(--ig-gold);
}

.ig-contact-support__contact svg,
.ig-contact-support__contact i {
	width: 1rem;
	height: 1rem;
	font-size: 1rem;
	flex-shrink: 0;
}

.ig-contact-support__contact--gold svg,
.ig-contact-support__contact--gold i {
	color: var(--ig-gold);
}

.ig-contact-support__contact--teal svg,
.ig-contact-support__contact--teal i {
	color: var(--ig-teal);
}

.ig-contact-support__contact-label {
	font-weight: 600;
}

.ig-contact-support__contact-value {
	word-break: break-word;
}

.ig-contact-support__fine {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0.75rem 0 0;
	line-height: 1.5;
}

@keyframes ig-contact-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
	.ig-contact-support__badge-dot {
		animation: none !important;
	}
}
