/* ============================================================
   VakilMe — Cooperation page
   Matches the existing VakilMe visual language without modifying
   the global theme stylesheet.
   ============================================================ */

.cooperation-page {
	max-width: 1168px;
	margin: 0 auto;
	padding: 30px 24px 100px;
	direction: rtl;
}

.cooperation-page,
.cooperation-page * {
	box-sizing: border-box;
}

.cooperation-hero {
	background: #fff;
	border: 1.5px solid var(--navy);
	border-radius: 28px;
	padding: 38px 42px 42px;
	box-shadow: 0 10px 28px rgba(0, 21, 68, .035);
}

.cooperation-heading {
	max-width: 760px;
	margin: 0 auto 30px;
	text-align: center;
}

.cooperation-heading .eyebrow {
	color: #078cae;
	margin-bottom: 9px;
}

.cooperation-page .page-title {
	margin: 0 0 10px;
	color: var(--navy);
	font-size: clamp(27px, 3vw, 38px);
	line-height: 1.45;
	font-weight: 800;
}

.cooperation-intro {
	margin: 0;
	color: #667085;
	font-size: 15px;
	line-height: 2;
}

/* ---------- Form ---------- */
.cooperation-form-panel {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	padding: 34px 38px 36px;
	border: 1px solid #cbd4df;
	border-radius: 24px;
	background: #fbfcfd;
	overflow: hidden;
}

.cooperation-form-panel::before {
	content: '';
	position: absolute;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(2, 253, 254, .12), rgba(2, 253, 254, 0) 68%);
	left: -105px;
	top: -110px;
	pointer-events: none;
}

.cooperation-form-content {
	position: relative;
	z-index: 2;
	max-width: 680px;
	margin: 0 auto;
}

.cooperation-form-content h2 {
	margin: 0 0 7px;
	font-size: 25px;
	font-weight: 800;
	color: var(--navy);
	text-align: center;
}

.cooperation-form-description {
	margin: 0 0 26px;
	text-align: center;
	color: #667085;
	font-size: 13px;
	line-height: 1.9;
}

.cooperation-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 16px;
}

.cooperation-form .form-field {
	min-width: 0;
}

.cooperation-form label {
	display: block;
	margin: 0 0 8px;
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
}

.cooperation-form input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #d8dee8;
	border-radius: 14px;
	background: #fff;
	color: var(--navy);
	outline: 0;
	box-shadow: 0 2px 8px rgba(0, 21, 68, .025);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.cooperation-form input::placeholder {
	color: #a0a9b8;
}

.cooperation-form input:focus {
	border-color: #02bde8;
	box-shadow: 0 0 0 3px rgba(2, 189, 232, .10);
}

.field-hint {
	display: block;
	margin-top: 6px;
	color: #7b8493;
	font-size: 10px;
}

.cooperation-submit {
	position: relative;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	border: 1px solid var(--gold);
	background: var(--gold);
	color: var(--navy);
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	box-shadow: 0 8px 18px rgba(243, 194, 104, .23);
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cooperation-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(243, 194, 104, .30);
}

.cooperation-submit:disabled {
	cursor: wait;
}

.telegram-rocket {
	display: grid;
	place-items: center;
	transition: opacity .15s ease;
}

.telegram-rocket svg {
	width: 31px;
	height: 31px;
	fill: currentColor;
}

.telegram-rocket svg path + path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.05;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cooperation-submit.is-flight-started .telegram-rocket {
	opacity: 0;
}

.cooperation-submit.is-flight-started {
	transform: scale(.97);
}

.cooperation-flight-rocket {
	position: fixed;
	z-index: 99999;
	margin: 0;
	pointer-events: none;
	fill: var(--navy);
	filter: drop-shadow(0 8px 10px rgba(0, 21, 68, .18));
	transform-origin: center;
	animation: cooperation-paper-plane-flight .78s cubic-bezier(.16, .76, .25, 1) forwards;
}

.cooperation-flight-rocket path + path {
	fill: none;
	stroke: var(--navy);
	stroke-width: 1.05;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes cooperation-paper-plane-flight {
	0% {
		opacity: 1;
		transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
	}
	55% {
		opacity: 1;
		transform: translate3d(-90px, -100px, 0) rotate(-9deg) scale(1.08);
	}
	100% {
		opacity: 0;
		transform: translate3d(-260px, -240px, 0) rotate(-17deg) scale(.72);
	}
}

.cooperation-message {
	grid-column: 1 / -1;
	min-height: 0;
	margin-top: -1px;
	padding: 0;
	opacity: 0;
	border-radius: 13px;
	font-size: 12px;
	line-height: 1.9;
	transition: opacity .2s ease, padding .2s ease;
}

.cooperation-message.is-visible {
	opacity: 1;
	padding: 12px 14px;
}

.cooperation-message.success {
	background: rgba(27, 160, 94, .08);
	border: 1px solid rgba(27, 160, 94, .22);
	color: #176b43;
}

.cooperation-message.error {
	background: rgba(190, 51, 51, .06);
	border: 1px solid rgba(190, 51, 51, .18);
	color: #9b2929;
}

/* ---------- Lawyers list ---------- */
.cooperation-lawyers {
	margin-top: 42px;
	padding: 32px 32px 27px;
	background: #fff;
	border: 1.5px solid var(--navy);
	border-radius: 28px;
	box-shadow: 0 10px 28px rgba(0, 21, 68, .025);
}

.cooperation-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.cooperation-section-header .eyebrow {
	margin-bottom: 6px;
	color: #078cae;
}

.cooperation-section-header h2 {
	margin: 0;
	font-size: 25px;
	font-weight: 800;
	color: var(--navy);
}

.cooperation-section-header p {
	max-width: 420px;
	margin: 0;
	color: #667085;
	font-size: 12px;
	line-height: 1.9;
	text-align: left;
}

.cooperation-carousel {
	position: relative;
	padding: 0 48px;
}

.cooperation-lawyers-scroll {
	overflow: hidden;
	border-radius: 20px;
}

.cooperation-lawyers-grid {
	direction: ltr;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 54px) / 4);
	grid-template-rows: 1fr;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 2px 2px 8px;
}

.cooperation-lawyers-grid::-webkit-scrollbar {
	display: none;
}

.cooperation-lawyer-card {
	direction: rtl;
	display: block;
	min-width: 0;
	min-height: 250px;
	overflow: hidden;
	border: 1.5px solid var(--navy);
	border-radius: 21px;
	background: #fff;
	color: var(--navy);
	scroll-snap-align: start;
	transition: transform .22s ease, box-shadow .22s ease;
}

.cooperation-lawyer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 21, 68, .09);
}

.cooperation-lawyer-photo {
	height: 168px;
	display: grid;
	place-items: center;
	background: #fafbfc;
	color: #d1d9e5;
	overflow: hidden;
}

.cooperation-lawyer-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cooperation-lawyer-photo svg {
	width: 72px;
	height: 72px;
}

.cooperation-lawyer-info {
	min-height: 81px;
	padding: 13px 15px 12px;
	background: #f1f2f4;
	border-radius: 19px 19px 0 0;
}

.cooperation-lawyer-info h3 {
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 800;
}

.cooperation-lawyer-info .dots {
	width: 70px;
	margin-bottom: 8px;
	border-bottom: 3px dotted #02bde8;
}

.cooperation-lawyer-info small {
	font-size: 9px;
	color: #334155;
}

.cooperation-carousel-btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: 1px solid var(--navy);
	border-radius: 50%;
	background: #fff;
	color: var(--navy);
	display: grid;
	place-items: center;
	box-shadow: 0 4px 12px rgba(0, 21, 68, .07);
	transition: background .2s ease, transform .2s ease;
}

.cooperation-carousel-btn:hover {
	background: #f7f9fc;
	transform: translateY(-1px);
}

.cooperation-carousel-btn.prev {
	left: 0;
}

.cooperation-carousel-btn.next {
	right: 0;
}

.cooperation-carousel-btn svg {
	width: 18px;
	height: 18px;
}

.cooperation-scrollbar {
	position: relative;
	height: 5px;
	margin: 15px 56px 0;
	border-radius: 99px;
	background: #e8edf3;
	overflow: hidden;
}

.cooperation-scrollbar-thumb {
	position: absolute;
	top: 0;
	right: auto;
	left: 0;
	height: 100%;
	min-width: 20px;
	border-radius: 99px;
	background: var(--gold);
	transition: left .18s ease, width .18s ease;
}

.cooperation-note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 10px;
	color: #8a94a3;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.cooperation-page {
		padding-left: 18px;
		padding-right: 18px;
	}

	.cooperation-form {
		grid-template-columns: 1fr 1fr;
	}

	.cooperation-submit {
		grid-column: 1 / -1;
		justify-self: center;
	}

	.cooperation-lawyers-grid {
		grid-auto-columns: calc((100% - 18px) / 2);
	}
}

@media (max-width: 640px) {
	.cooperation-page {
		padding: 20px 12px 70px;
	}

	.cooperation-hero {
		padding: 27px 15px 25px;
		border-radius: 22px;
	}

	.cooperation-heading {
		margin-bottom: 22px;
	}

	.cooperation-page .page-title {
		font-size: 26px;
	}

	.cooperation-intro {
		font-size: 12px;
	}

	.cooperation-form-panel {
		padding: 24px 16px 25px;
		border-radius: 19px;
	}

	.cooperation-form-content h2 {
		font-size: 21px;
	}

	.cooperation-form-description {
		font-size: 11px;
		margin-bottom: 21px;
	}

	.cooperation-form {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.cooperation-submit {
		grid-column: auto;
		width: 58px;
		height: 58px;
		margin-top: 4px;
	}

	.cooperation-message {
		grid-column: auto;
	}

	.cooperation-lawyers {
		margin-top: 28px;
		padding: 24px 12px 21px;
		border-radius: 22px;
	}

	.cooperation-section-header {
		display: block;
		text-align: center;
		margin-bottom: 18px;
	}

	.cooperation-section-header h2 {
		font-size: 22px;
	}

	.cooperation-section-header p {
		max-width: none;
		margin-top: 7px;
		text-align: center;
		font-size: 10px;
	}

	.cooperation-carousel {
		padding: 0 37px;
	}

	.cooperation-lawyers-grid {
		grid-auto-columns: 100%;
		gap: 12px;
	}

	.cooperation-lawyer-card {
		min-height: 240px;
	}

	.cooperation-lawyer-photo {
		height: 160px;
	}

	.cooperation-carousel-btn {
		width: 34px;
		height: 34px;
		margin-top: -17px;
	}

	.cooperation-carousel-btn.prev {
		left: 0;
	}

	.cooperation-carousel-btn.next {
		right: 0;
	}

	.cooperation-scrollbar {
		margin-left: 40px;
		margin-right: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cooperation-page *,
	.cooperation-page *::before,
	.cooperation-page *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.cooperation-flight-rocket {
		display: none !important;
	}
}
