/* ============================================================
   Contact Section — base + 4 styles + live chat
   Editable look is driven by CSS variables set inline on the
   .cs-contact container:
     --cs-icon-size  (icon glyph size, px)
     --cs-icon-color (icon glyph color)
     --cs-icon-bg    (icon background / accent color)
   ============================================================ */

.cs-contact {
	--cs-icon-size: 20px;
	--cs-icon-color: #ffffff;
	--cs-icon-bg: #3b82f6;
	--cs-chat-bg: #25d366;

	font-family: inherit;
	color: #1f2937;
}

.cs-contact * { box-sizing: border-box; }

.cs-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.cs-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.cs-contact__icon {
	flex: 0 0 auto;
	width: calc(var(--cs-icon-size) * 2.4);
	height: calc(var(--cs-icon-size) * 2.4);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
	transition: transform .15s ease;
}

.cs-contact__icon svg {
	width: var(--cs-icon-size);
	height: var(--cs-icon-size);
	display: block;
}

.cs-contact__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cs-contact__label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .6;
	line-height: 1.2;
}

.cs-contact__value {
	font-size: 1rem;
	line-height: 1.45;
	word-break: break-word;
}

.cs-contact__value a {
	color: inherit;
	text-decoration: none;
}
.cs-contact__value a:hover { text-decoration: underline; }

/* Hide any item/value left empty (e.g. a contact field with no data). */
.cs-contact__item:empty,
.cs-contact__value:empty { display: none; }

/* --- Social row --------------------------------------------- */
.cs-contact__social {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}
.cs-contact__social a {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
	transition: transform .15s ease, opacity .15s ease;
}
.cs-contact__social a:hover { transform: translateY(-2px); opacity: .92; }
.cs-contact__social svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   STYLE VARIATIONS — all built on the minimal "Style 4" family
   (icon on the left, content on the right). The editable look is
   driven by --cs-icon-size / --cs-icon-color / --cs-icon-bg, set
   inline on the .cs-contact container.
   ============================================================ */

/* ============================================================
   STYLE 4 — Minimal pills (base)
   ============================================================ */
.cs-style-4 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cs-style-4 .cs-contact__item {
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 14px;
	padding: 14px;
}
.cs-style-4 .cs-contact__icon { border-radius: 12px; }
.cs-style-4 .cs-contact__social { margin-top: 6px; }

/* ============================================================
   STYLE 5 — Frosted glass on a gradient
   ============================================================ */
.cs-style-5.cs-contact {
	background: linear-gradient(135deg, #6366f1, #ec4899);
	padding: 26px;
	border-radius: 22px;
	color: #fff;
	box-shadow: 0 24px 60px rgba(99, 102, 241, .35);
}
.cs-style-5 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cs-style-5 .cs-contact__item {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 16px;
	padding: 16px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.cs-style-5 .cs-contact__icon { border-radius: 14px; }
.cs-style-5 .cs-contact__label { opacity: .85; }
.cs-style-5 .cs-contact__social a {
	background: rgba(255, 255, 255, .2);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.cs-style-5 .cs-contact__social a:hover { background: rgba(255, 255, 255, .35); }

/* ============================================================
   STYLE 6 — Gradient chips (pill row)
   ============================================================ */
.cs-style-6 .cs-contact__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.cs-style-6 .cs-contact__item {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 999px;
	padding: 8px 20px 8px 8px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
	transition: transform .15s ease;
}
.cs-style-6 .cs-contact__item:hover { transform: translateY(-2px); }
.cs-style-6 .cs-contact__icon {
	width: calc(var(--cs-icon-size) * 2);
	height: calc(var(--cs-icon-size) * 2);
	border-radius: 999px;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
	background: linear-gradient(135deg, var(--cs-icon-bg), color-mix(in srgb, var(--cs-icon-bg) 55%, #ffffff));
}
.cs-style-6 .cs-contact__label { display: none; }
.cs-style-6 .cs-contact__body { justify-content: center; }
.cs-style-6 .cs-contact__social { margin-top: 14px; }

/* ============================================================
   STYLE 7 — Dark bento grid
   ============================================================ */
.cs-style-7 .cs-contact__list {
	grid-template-columns: repeat(2, 1fr);
}
.cs-style-7 .cs-contact__item {
	background: #0f172a;
	color: #e5e7eb;
	border: 1px solid #1e293b;
	border-radius: 18px;
	padding: 18px;
	transition: transform .15s ease, border-color .15s ease;
}
.cs-style-7 .cs-contact__item:hover { transform: translateY(-2px); border-color: var(--cs-icon-bg); }
.cs-style-7 .cs-contact__item:nth-child(1),
.cs-style-7 .cs-contact__item:nth-child(6) { grid-column: span 2; }
.cs-style-7 .cs-contact__icon { border-radius: 14px; }
.cs-style-7 .cs-contact__label { color: #94a3b8; opacity: 1; }
.cs-style-7 .cs-contact__social a { background: rgba(255, 255, 255, .08); color: #fff; }
.cs-style-7 .cs-contact__social a:hover { background: var(--cs-icon-bg); }

/* ============================================================
   STYLE 8 — Neo outline (fills on hover)
   ============================================================ */
.cs-style-8 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cs-style-8 .cs-contact__item {
	background: #fff;
	border: 1.5px solid var(--cs-icon-bg);
	border-radius: 16px;
	padding: 14px;
	transition: background .2s ease, transform .15s ease;
}
.cs-style-8 .cs-contact__item:hover {
	background: var(--cs-icon-bg);
	transform: translateY(-2px);
}
.cs-style-8 .cs-contact__icon {
	background: transparent;
	color: var(--cs-icon-bg);
	border: 2px solid var(--cs-icon-bg);
	border-radius: 12px;
	transition: color .2s ease, border-color .2s ease;
}
.cs-style-8 .cs-contact__item:hover .cs-contact__icon {
	color: var(--cs-icon-color);
	border-color: var(--cs-icon-color);
}
.cs-style-8 .cs-contact__item:hover .cs-contact__label,
.cs-style-8 .cs-contact__item:hover .cs-contact__value { color: var(--cs-icon-color); }
.cs-style-8 .cs-contact__social { margin-top: 6px; }
.cs-style-8 .cs-contact__social a {
	background: transparent;
	color: var(--cs-icon-bg);
	border: 2px solid var(--cs-icon-bg);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cs-style-8 .cs-contact__social a:hover {
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
	border-color: var(--cs-icon-bg);
}

/* ============================================================
   STYLE 11 — Informal / playful (tilted cards, dashed, casual)
   ============================================================ */
.cs-style-11 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cs-style-11 .cs-contact__item {
	background: #fff;
	border: 2px dashed var(--cs-icon-bg);
	border-radius: 20px;
	padding: 16px;
	transform: rotate(-1deg);
	transition: transform .15s ease;
}
.cs-style-11 .cs-contact__item:nth-child(even) { transform: rotate(1deg); }
.cs-style-11 .cs-contact__item:hover { transform: rotate(0) translateY(-2px); }
.cs-style-11 .cs-contact__icon {
	border-radius: 14px;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
	transform: rotate(-6deg);
}
.cs-style-11 .cs-contact__label { font-style: italic; opacity: .7; }
.cs-style-11 .cs-contact__social a {
	border-radius: 50%;
	border: 2px dashed var(--cs-icon-bg);
	background: transparent;
	color: var(--cs-icon-bg);
}
.cs-style-11 .cs-contact__social a:hover { background: var(--cs-icon-bg); color: var(--cs-icon-color); }

/* ============================================================
   STYLE 13 — Sharp minimal (0px radius, hairline, clean)
   ============================================================ */
.cs-style-13 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cs-style-13 .cs-contact__item {
	background: #fff;
	color: #111;
	border: 1px solid #111;
	border-radius: 0;
	padding: 14px 16px;
}
.cs-style-13 .cs-contact__icon {
	border-radius: 0;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
}
.cs-style-13 .cs-contact__label {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .65rem;
	opacity: .6;
}
.cs-style-13 .cs-contact__social a { border-radius: 0; }

/* ============================================================
   STYLE 14 — Torn paper note (ragged bottom edge via SVG mask)
   ============================================================ */
.cs-style-14 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cs-style-14 .cs-contact__item {
	background: #fffdf7;
	color: #3f3f46;
	border: 1px solid #ececdf;
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	padding: 18px 18px 24px;
	position: relative;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}
/* a strip of "paper" hanging below the card, clipped to a torn edge */
.cs-style-14 .cs-contact__item::after {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	bottom: -15px;
	height: 15px;
	background-color: #fffdf7;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0,6 L5,9 L9,4 L14,8 L19,5 L24,9 L29,4 L34,8 L39,5 L44,9 L49,4 L54,8 L59,5 L64,9 L69,4 L74,8 L79,5 L84,9 L89,4 L94,8 L99,5 L104,9 L109,4 L114,8 L119,6 L120,7 L120,16 L0,16 Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0,6 L5,9 L9,4 L14,8 L19,5 L24,9 L29,4 L34,8 L39,5 L44,9 L49,4 L54,8 L59,5 L64,9 L69,4 L74,8 L79,5 L84,9 L89,4 L94,8 L99,5 L104,9 L109,4 L114,8 L119,6 L120,7 L120,16 L0,16 Z' fill='%23000'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .06));
}
/* a little piece of tape holding the note */
.cs-style-14 .cs-contact__item::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%) rotate(-2deg);
	width: 72px;
	height: 20px;
	background: rgba(255, 255, 255, .6);
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.cs-style-14 .cs-contact__icon {
	border-radius: 12px;
	background: var(--cs-icon-bg);
	color: var(--cs-icon-color);
}
.cs-style-14 .cs-contact__label { opacity: .6; }
.cs-style-14 .cs-contact__social { margin-top: 24px; }

/* ============================================================
   STYLE 15 — Android / Material (FAB icons, elevation, Roboto)
   ============================================================ */
.cs-style-15 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}
.cs-style-15 .cs-contact__item {
	background: #fff;
	border-radius: 24px;
	padding: 16px;
	align-items: center;
	font-family: Roboto, "Segoe UI", system-ui, sans-serif;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 16px rgba(0, 0, 0, .10);
	transition: transform .15s ease, box-shadow .15s ease;
}
.cs-style-15 .cs-contact__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 10px 24px rgba(0, 0, 0, .14);
}
.cs-style-15 .cs-contact__icon {
	width: calc(var(--cs-icon-size) * 2.6);
	height: calc(var(--cs-icon-size) * 2.6);
	border-radius: 50%;                 /* Material FAB */
	background: #3ddc84;               /* Android green */
	color: #fff;
	box-shadow: 0 4px 10px rgba(61, 220, 132, .45);
}
.cs-style-15 .cs-contact__label {
	color: #3ddc84;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .62rem;
}
.cs-style-15 .cs-contact__value { font-size: 1.02rem; color: #202124; }
.cs-style-15 .cs-contact__social { margin-top: 18px; }
.cs-style-15 .cs-contact__social a {
	background: #3ddc84;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(61, 220, 132, .4);
}

/* ============================================================
   STYLE 16 — Apple / macOS (translucent, SF, squircle app icons)
   ============================================================ */
.cs-style-16.cs-contact {
	background: #f5f5f7;
	border-radius: 22px;
	padding: 20px;
}
.cs-style-16 .cs-contact__list {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cs-style-16 .cs-contact__item {
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 18px;
	padding: 14px 16px;
	align-items: center;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	transition: transform .15s ease;
}
.cs-style-16 .cs-contact__item:hover { transform: translateY(-2px); }
.cs-style-16 .cs-contact__icon {
	border-radius: 22%;                /* squircle-ish app icon */
	background: linear-gradient(160deg, #0a84ff, #0060df);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 113, 227, .35);
}
.cs-style-16 .cs-contact__label {
	color: #6e6e73;
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: -.01em;
}
.cs-style-16 .cs-contact__value {
	color: #1d1d1f;
	font-size: 1rem;
	letter-spacing: -.01em;
}
.cs-style-16 .cs-contact__social { margin-top: 18px; }
.cs-style-16 .cs-contact__social a {
	background: linear-gradient(160deg, #0a84ff, #0060df);
	color: #fff;
	border-radius: 22%;
}

/* ============================================================
   LIVE CHAT widget
   ============================================================ */
.cs-chat__bubble {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--cs-chat-bg);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
	z-index: 9999;
	transition: transform .15s ease;
}
.cs-chat__bubble:hover { transform: scale(1.06); }
.cs-chat__bubble svg { width: 28px; height: 28px; }

.cs-chat__panel {
	position: fixed;
	right: 20px;
	bottom: 90px;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, .28);
	z-index: 9999;
	overflow: hidden;
	font-family: inherit;
	transform: translateY(12px);
	opacity: 0;
	pointer-events: none;
	transition: transform .2s ease, opacity .2s ease;
}
.cs-chat__panel.is-open { transform: none; opacity: 1; pointer-events: auto; }

.cs-chat__header {
	background: var(--cs-chat-bg);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
}
.cs-chat__body { padding: 14px 16px; color: #111827; font-size: .9rem; }
.cs-chat__greeting { margin: 0 0 10px; line-height: 1.4; }
.cs-chat__input {
	width: 100%;
	height: 70px;
	resize: none;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 8px 10px;
	font: inherit;
}
.cs-chat__input:focus { outline: 2px solid var(--cs-chat-bg); border-color: transparent; }
.cs-chat__send {
	margin-top: 10px;
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 10px;
	background: var(--cs-chat-bg);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
