/* ==========================================================================
   Synceight – quote form, popup and contact section
   ========================================================================== */

/* ---------- Form ---------- */
.syn-form { position: relative; font-family: var(--syn-f-body); color: var(--syn-card-text); }
.syn-form [hidden] { display: none !important; }
.syn-form .syn-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.syn-form .syn-form__body { display: grid; gap: 18px; }
.syn-form .syn-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.syn-form .syn-form__field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.syn-form label, .syn-form legend {
	padding: 0;
	font-family: var(--syn-f-display); font-size: 14px; font-weight: 600; letter-spacing: .2px; line-height: 1.3;
	color: var(--syn-heading);
}
.syn-form legend { margin-bottom: 10px; }
.syn-form .syn-form__optional { font-weight: 400; color: #6b7684; }
.syn-form input[type="text"], .syn-form input[type="email"], .syn-form select, .syn-form textarea {
	width: 100%; margin: 0;
	padding: 12px 14px;
	font-family: var(--syn-f-body); font-size: 16px; line-height: 1.4; letter-spacing: .3px;
	color: var(--syn-ink);
	background: var(--syn-white);
	border: 1px solid rgba(31, 39, 50, .18); border-radius: 6px;
	box-shadow: none; outline: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.syn-form select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231f2732' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.syn-form textarea { min-height: 120px; resize: vertical; }
.syn-form input:focus, .syn-form select:focus, .syn-form textarea:focus { border-color: var(--syn-yellow); box-shadow: 0 0 0 3px rgba(254, 188, 61, .25); }
.syn-form .is-invalid { border-color: #d63638 !important; }

/* Service chips */
.syn-form .syn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.syn-form .syn-chip { position: relative; display: inline-flex; cursor: pointer; font-weight: 400; }
.syn-form .syn-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.syn-form .syn-chip span {
	display: inline-block;
	padding: 8px 14px;
	font-family: var(--syn-f-display); font-size: 14px; font-weight: 500; line-height: 1.2;
	color: var(--syn-heading);
	background: var(--syn-white);
	border: 1px solid rgba(31, 39, 50, .18); border-radius: 50px;
	transition: all .2s;
}
.syn-form .syn-chip:hover span { border-color: var(--syn-yellow); }
.syn-form .syn-chip input:checked + span { background: var(--syn-yellow); border-color: var(--syn-yellow); color: var(--syn-navy); }
.syn-form .syn-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(254, 188, 61, .35); }
.syn-form .syn-chip-desc { min-height: 0; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #4b5866; }
.syn-form .syn-chip-desc:empty { display: none; }

.syn-form .syn-form__error { margin: 0; padding: 10px 14px; border-radius: 6px; background: #fdecec; color: #a32020; font-size: 15px; }
.syn-form .syn-form__actions { display: flex; align-items: center; gap: 16px; }
.syn-form .syn-form__submit { cursor: pointer; font-size: 16px; padding: 10px 32px; }
.syn-form .syn-form__submit[disabled] { opacity: .7; cursor: progress; }
.syn-form.is-sending .syn-form__submit span::after { content: "…"; }

/* Success */
.syn-form .syn-form__success { text-align: center; padding: 30px 10px; outline: none; }
.syn-form .syn-form__tick {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
	background: var(--syn-yellow); color: var(--syn-navy);
	animation: syn-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.syn-form .syn-form__tick svg { width: 32px; height: 32px; }
.syn-form .syn-form__success h3 { margin: 0 0 8px; font-family: var(--syn-f-title); font-size: 30px; font-weight: 700; color: var(--syn-heading); }
.syn-form .syn-form__success p { margin: 0; font-size: 17px; }
@keyframes syn-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 575px) {
	.syn-form .syn-form__row { grid-template-columns: 1fr; }
	.syn-form .syn-form__submit { width: 100%; }
}

/* ---------- Popup ---------- */
.syn-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.syn-modal[hidden] { display: none; }
.syn-modal__overlay { position: fixed; inset: 0; background: rgba(31, 39, 50, .72); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; }
.syn-modal__panel {
	position: relative; width: 100%; max-width: 640px; margin: auto;
	padding: 44px 44px 40px;
	background: var(--syn-bg);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	opacity: 0; transform: translateY(30px) scale(.98);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.syn-modal.is-open .syn-modal__overlay { opacity: 1; }
.syn-modal.is-open .syn-modal__panel { opacity: 1; transform: none; }
.syn-modal .syn-modal__close {
	position: absolute; top: 14px; right: 14px;
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: var(--syn-white); color: var(--syn-navy);
	box-shadow: none; cursor: pointer; transition: background .2s, transform .2s;
}
.syn-modal .syn-modal__close:hover, .syn-modal .syn-modal__close:focus { background: var(--syn-yellow); color: var(--syn-navy); transform: rotate(90deg); }
.syn-modal .syn-modal__close svg { width: 20px; height: 20px; }
.syn-modal .syn-modal__head { margin-bottom: 24px; padding-right: 30px; }
.syn-modal .syn-modal__title { margin: 0 0 8px; font-family: var(--syn-f-title); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--syn-heading); }
.syn-modal .syn-modal__intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--syn-body); }
body.syn-modal-open { overflow: hidden; }
@media (max-width: 575px) {
	.syn-modal { padding: 12px; }
	.syn-modal__panel { padding: 32px 20px 24px; border-radius: 12px; }
	.syn-modal .syn-modal__title { font-size: 30px; }
}

/* ---------- Contact section widget ---------- */
.syn-contact { padding: var(--syn-space) 0; }
.syn-contact .syn-contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.syn-contact .syn-eyebrow {
	display: inline-block; margin-bottom: 14px; padding-bottom: 4px;
	border-bottom: 1px solid var(--syn-yellow);
	font-family: var(--syn-f-display); font-size: 16px; font-weight: 700; color: var(--syn-heading);
}
.syn-contact .syn-contact__text { margin: 0 0 20px; font-size: 20px; line-height: 1.7; color: var(--syn-ink); }
.syn-contact .syn-contact__email { margin: 0; font-size: 17px; }
.syn-contact .syn-contact__email a { color: var(--syn-blue); text-decoration: underline; text-underline-offset: 3px; }
.syn-contact .syn-contact__card { padding: 44px; background: var(--syn-white); border-radius: 0; }
@media (max-width: 991px) { .syn-contact .syn-contact__grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 575px) { .syn-contact .syn-contact__card { padding: 24px 18px; } .syn-contact .syn-contact__text { font-size: 17px; } }

@media (prefers-reduced-motion: reduce) {
	.syn-modal__panel, .syn-modal__overlay { transition: none; }
}
