/* Tandem Centar — "Piši nam" contact modal */
.tc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(74, 59, 48, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 1.5rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.tc-modal-overlay.tc-open {
	display: flex;
	opacity: 1;
}
.tc-modal {
	background: var(--cream, #FFF8F2);
	color: var(--brown-dark, #4a3b30);
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 28px;
	position: relative;
	padding: 2.75rem;
	box-shadow: 0 30px 60px rgba(60, 40, 20, 0.35);
	font-family: var(--font-body, 'Inter', Helvetica, Arial, sans-serif);
	transform: translateY(12px);
	transition: transform 0.2s ease;
	box-sizing: border-box;
}
.tc-modal-overlay.tc-open .tc-modal {
	transform: translateY(0);
}
.tc-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--brown-dark, #4a3b30);
	cursor: pointer;
	padding: 0.25rem;
}
.tc-modal-close:hover {
	opacity: 0.7;
}
.tc-modal-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.5rem;
}
.tc-modal-brand img { height: 30px; width: auto; display: block; }
.tc-modal h2 {
	font-family: var(--font-title, 'Playfair Display', serif);
	font-weight: 800;
	text-align: left;
	font-size: 32px;
	margin: 0 0 6px;
	color: var(--brown-dark, #4a3b30);
}
.tc-modal-subtitle {
	margin: 0 0 1.75rem;
	font-size: 14px;
	color: var(--brown-text, #6b5a4c);
}
.tc-modal-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.tc-modal-form input,
.tc-modal-form textarea {
	font-family: inherit;
	font-size: 16px;
	background: #FFFFFF;
	border: 1px solid #e8dcc9;
	border-radius: 12px;
	padding: 14px 18px;
	color: var(--brown-dark, #4a3b30);
	resize: vertical;
	box-sizing: border-box;
	width: 100%;
}
.tc-modal-form input::placeholder,
.tc-modal-form textarea::placeholder {
	color: rgba(74, 59, 48, 0.5);
}
.tc-modal-form input:focus,
.tc-modal-form textarea:focus {
	outline: none;
	border-color: var(--brown, #5B4A3C);
}
.tc-modal-submit {
	width: 100%;
	background: var(--brown, #5B4A3C);
	color: var(--cream, #FFF8F2);
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 15px 0;
	border-radius: 999px;
	cursor: pointer;
	margin-top: 6px;
}
.tc-modal-submit:hover {
	opacity: 0.9;
}
.tc-modal-submit:disabled {
	opacity: 0.6;
	cursor: default;
}
.tc-modal-social {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 1.75rem;
}
.tc-modal-social a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--brown-dark, #4a3b30);
	color: var(--cream, #FFF8F2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tc-modal-social a:hover {
	opacity: 0.85;
}
.tc-modal-social svg {
	width: 18px;
	height: 18px;
}
.tc-modal-status {
	text-align: center;
	padding: 1.5rem 0;
}
.tc-modal-status h3 {
	font-family: var(--font-title, 'Playfair Display', serif);
	font-size: 1.8rem;
	margin: 0 0 0.5rem;
	color: var(--brown-dark, #4a3b30);
}
.tc-modal-error {
	color: #a3372a;
	font-size: 0.9rem;
	margin: 0.5rem 0 0;
}
@media (max-width: 640px) {
	.tc-modal {
		padding: 2rem 1.5rem;
	}
}

/* Back-to-top floating button */
.tc-back-to-top {
	position: fixed;
	right: 1.75rem;
	bottom: 1.75rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #624C40;
	color: #FAF6F2;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.tc-back-to-top.tc-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.tc-back-to-top:hover {
	opacity: 0.9;
}
.tc-back-to-top svg {
	width: 20px;
	height: 20px;
}
@media (max-width: 640px) {
	.tc-back-to-top {
		right: 1.1rem;
		bottom: 1.1rem;
		width: 44px;
		height: 44px;
	}
}

/* Hide Wix's original (non-functional, absolutely-positioned) social bar on the homepage */
#pagePinnedMiddleRight-hl19x {
	display: none !important;
}

/* Floating social sidebar, fixed to the right edge, follows scroll */
.tc-social-float {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 900;
	display: flex;
	flex-direction: column;
}
.tc-social-float a {
	display: block;
	width: 50px;
	height: 50px;
}
.tc-social-float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 640px) {
	.tc-social-float a {
		width: 40px;
		height: 40px;
	}
}
