/**
 * Stylesheet: CG Corporate Contact Widget
 * Deep blue A2LA aesthetic styled lead form fields, hover animations, soft icon badges, and maps frame.
 */

.cg-contact-section-wrapper {
	position: relative;
	background-color: #ffffff;
	overflow: hidden;
	width: 100%;
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.cg-contact-section-wrapper * {
	box-sizing: border-box;
}

/* ==========================================
 * 1. SECTION HEADER BLOCK
 * ========================================== */

.cg-contact-header-block {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 45px;
}

.cg-contact-heading {
	font-size: 38px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 12px 0;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.cg-contact-subtitle {
	font-size: 16px;
	line-height: 1.5;
	color: #475569;
	margin: 0 0 20px 0;
	max-width: 680px;
}

/* Sparkle Alert Link */
.cg-contact-alert-wrapper {
	margin-top: 5px;
}

.cg-contact-alert-link {
	display: inline-flex;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: #154683;
	text-decoration: none;
	gap: 8px;
	background-color: rgba(21, 70, 131, 0.04);
	border: 1px solid rgba(21, 70, 131, 0.08);
	padding: 8px 24px;
	border-radius: 50px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 8px rgba(21, 70, 131, 0.02);
}

.cg-contact-alert-icon {
	font-size: 14px;
	display: inline-block;
	animation: cg-sparkle-wiggle 2.5s infinite ease-in-out;
}

@keyframes cg-sparkle-wiggle {
	0%, 100% { transform: rotate(0deg) scale(1); }
	50% { transform: rotate(15deg) scale(1.15); }
}

.cg-contact-alert-link:hover {
	background-color: rgba(21, 70, 131, 0.07);
	border-color: #6DC05A;
	color: #6DC05A;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(109, 192, 90, 0.1);
}

/* ==========================================
 * 2. COLUMNS GRID LAYOUT
 * ========================================== */

.cg-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 55px;
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

/* ==========================================
 * 3. LEFT COLUMN: LEAD GENERATION FORM CARD
 * ========================================== */

.cg-contact-form-column {
	z-index: 5;
}

.cg-contact-form-card {
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 35px 30px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.015);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cg-contact-form-card:hover {
	border-color: rgba(21, 70, 131, 0.15);
	box-shadow: 0 10px 30px rgba(21, 70, 131, 0.025);
}

.cg-contact-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.cg-contact-form-label {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}

.cg-contact-form-input,
.cg-contact-form-textarea {
	font-family: inherit;
	font-size: 14px;
	color: #334155;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 16px;
	width: 100%;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-contact-form-input::placeholder,
.cg-contact-form-textarea::placeholder {
	color: #94a3b8;
}

.cg-contact-form-input:focus,
.cg-contact-form-textarea:focus {
	outline: none;
	border-color: #154683;
	background-color: #ffffff;
	box-shadow: 0 0 0 3.5px rgba(21, 70, 131, 0.12);
}

/* AJAX Submit Button */
.cg-contact-form-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	background-color: #154683;
	border: none;
	border-radius: 6px;
	padding: 14px 28px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	width: 100%;
	box-shadow: 0 4px 10px rgba(21, 70, 131, 0.1);
}

.cg-contact-form-submit:hover {
	background-color: #6DC05A;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(109, 192, 90, 0.25);
}

.cg-contact-form-submit:active {
	transform: translateY(0);
}

/* Spinner */
.cg-contact-form-submit-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cg-btn-spin 0.8s linear infinite;
	margin-left: 10px;
}

@keyframes cg-btn-spin {
	to { transform: rotate(360deg); }
}

/* Form Sending States */
.cg-contact-form-submit.sending {
	pointer-events: none;
	opacity: 0.8;
}

.cg-contact-form-submit.sending .cg-contact-form-submit-spinner {
	display: inline-block;
}

/* AJAX Alert Notice Panel */
.cg-contact-form-alert-box {
	display: none;
	margin-bottom: 20px;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	transition: all 0.3s ease;
}

.cg-contact-form-alert-box.success {
	display: block;
	background-color: rgba(109, 192, 90, 0.1);
	border: 1px solid rgba(109, 192, 90, 0.2);
	color: #1b6e08;
}

.cg-contact-form-alert-box.error {
	display: block;
	background-color: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.15);
	color: #991b1b;
}

/* ==========================================
 * 4. RIGHT COLUMN: DETAILS LISTS & MAP
 * ========================================== */

.cg-contact-details-column {
	display: flex;
	flex-direction: column;
	z-index: 5;
}

.cg-contact-details-heading {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 25px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.cg-contact-details-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 35px;
}

.cg-contact-detail-row {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	color: inherit;
	padding: 4px 0;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a.cg-contact-detail-row:hover {
	transform: translateX(4px);
}

/* Icon Badges */
.cg-contact-detail-icon-badge {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background-color: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.cg-contact-detail-row:hover .cg-contact-detail-icon-badge {
	background-color: #154683;
}

.cg-contact-detail-icon-badge svg {
	fill: #154683;
	transition: fill 0.3s ease, transform 0.3s ease;
}

a.cg-contact-detail-row:hover .cg-contact-detail-icon-badge svg {
	fill: #ffffff;
	transform: scale(1.05);
}

.cg-contact-detail-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cg-contact-detail-label {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	line-height: 1.1;
}

.cg-contact-detail-value {
	font-size: 15px;
	font-weight: 600;
	color: #334155;
	line-height: 1.35;
	transition: color 0.2s ease;
}

a.cg-contact-detail-row:hover .cg-contact-detail-value {
	color: #154683;
}

/* stylized Maps Card */
.cg-contact-map-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #cbd5e1;
	box-shadow: 0 10px 25px -5px rgba(21, 70, 131, 0.04), 0 8px 10px -6px rgba(21, 70, 131, 0.02);
	height: 220px;
	width: 100%;
}

.cg-contact-map-iframe {
	width: 100%;
	height: 220px;
	display: block;
}

/* Floating overlay Maps action button */
.cg-contact-map-overlay-btn {
	position: absolute;
	bottom: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	color: #154683;
	background-color: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(21, 70, 131, 0.15);
	padding: 8px 14px;
	border-radius: 6px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(21, 70, 131, 0.08);
	backdrop-filter: blur(6px);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 5;
}

.cg-contact-map-overlay-btn:hover {
	background-color: #ffffff;
	color: #6DC05A;
	border-color: #6DC05A;
	transform: translateY(-1px);
	box-shadow: 0 6px 15px rgba(109, 192, 90, 0.15);
}

.cg-contact-map-overlay-btn:hover svg {
	fill: #6DC05A;
}

/* ==========================================
 * 5. RESPONSIVE ADJUSTMENTS
 * ========================================== */

@media (max-width: 991px) {
	.cg-contact-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cg-contact-heading {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.cg-contact-heading {
		font-size: 28px;
	}

	.cg-contact-form-card {
		padding: 25px 20px;
	}

	.cg-contact-alert-link {
		font-size: 14px;
		padding: 8px 20px;
	}
}
