/**
 * Zafran contact form, blog grid and single posts – ITS DIGITAL INDIA
 */

/* ---------- Contact form ---------- */
.zcontact {
	display: grid;
	gap: 14px;
}

.zcontact__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.zcontact__field {
	display: block;
}

.zcontact input[type="text"],
.zcontact input[type="email"],
.zcontact input[type="tel"],
.zcontact textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(214, 180, 106, 0.35);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.02);
	box-shadow: none;
	color: #f2ead9;
	font-family: var(--z-sans);
	font-size: 15px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.zcontact input::placeholder,
.zcontact textarea::placeholder {
	color: rgba(242, 234, 217, 0.65);
}

.zcontact input:focus,
.zcontact textarea:focus {
	border-color: var(--z-gold-light);
	background: rgba(255, 255, 255, 0.05);
	outline: none;
}

.zcontact textarea {
	min-height: 140px;
	resize: vertical;
}

.zcontact__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(242, 234, 217, 0.75);
}

.zcontact__consent input {
	margin-top: 3px;
	accent-color: var(--z-gold);
}

.zcontact__consent a {
	color: var(--z-gold-light);
}

.zcontact .zcontact__submit {
	padding: 15px 20px;
	border: 0;
	border-radius: 0;
	background: var(--z-gold);
	color: var(--z-deep);
	font-family: var(--z-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.zcontact .zcontact__submit:hover,
.zcontact .zcontact__submit:focus-visible {
	background: #fff;
	color: var(--z-deep);
}

.zcontact__notice {
	margin: 0;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
}

.zcontact__notice--ok {
	border-left: 3px solid #7db356;
	background: rgba(125, 179, 86, 0.14);
	color: #e6f2dc;
}

.zcontact__notice--err {
	border-left: 3px solid var(--z-red);
	background: rgba(163, 48, 42, 0.18);
	color: #f6dcda;
}

/* Vertical divider with diamond between the two contact columns */
.zafran-vline {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--z-gold-light);
}

.zafran-vline::before,
.zafran-vline::after {
	content: "";
	width: 1px;
	height: 70px;
	background: rgba(214, 180, 106, 0.55);
}

@media (max-width: 1024px) {
	.zafran-vline {
		display: none;
	}
}

/* ---------- Blog grid ---------- */
.zblog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.zblog-card__link {
	position: relative;
	display: block;
	aspect-ratio: 4 / 4.1;
	overflow: hidden;
	text-decoration: none;
	color: #f7f0e4;
}

.zblog-card--arch .zblog-card__link {
	border-radius: 999px 999px 0 0;
}

.zblog-card__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
}

.zblog-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 43, 32, 0) 40%, rgba(13, 43, 32, 0.92) 100%);
}

.zblog-card__link:hover .zblog-card__img,
.zblog-card__link:focus-visible .zblog-card__img {
	transform: scale(1.06);
}

.zblog-card__body {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.zblog-card__date {
	align-self: flex-start;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--z-gold-light);
	font-family: var(--z-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.zblog-card__cat {
	font-family: var(--z-sans);
	font-size: 14px;
	color: var(--z-gold-light);
}

.zblog-card__title {
	font-family: var(--z-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
}

.zblog-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 46px 0 0;
	padding: 0;
	list-style: none;
}

.zblog-pagination a,
.zblog-pagination span {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	font-family: var(--z-sans);
	font-size: 15px;
	color: #f2ead9;
	text-decoration: none;
}

.zblog-pagination .current {
	background: var(--z-gold);
	color: var(--z-deep);
}

.zblog-pagination a:hover {
	color: var(--z-gold-light);
}

.zblog-empty {
	text-align: center;
	color: #f2ead9;
}

@media (max-width: 1024px) {
	.zblog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.zblog-grid {
		grid-template-columns: 1fr;
	}

	.zblog-card--arch .zblog-card__link {
		border-radius: 999px 999px 0 0 / 600px 600px 0 0;
	}
}

/* ---------- Single post ---------- */
.zpost-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 56vh;
	padding: 100px 16px 80px;
	background-color: var(--z-deep);
	background-size: cover;
	background-position: center;
	text-align: center;
}

.zpost-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 43, 32, 0.66);
}

.zpost-hero__inner {
	position: relative;
	max-width: 860px;
}

.zpost-hero__meta {
	margin: 0 0 14px;
	font-family: var(--z-sans);
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--z-gold-light);
}

.zpost-hero__title {
	margin: 0 0 18px;
	font-family: var(--z-serif);
	font-size: clamp(38px, 6vw, 68px);
	font-weight: 400;
	line-height: 1.08;
	color: #f7f0e4;
}

.zpost-hero__crumbs {
	margin: 0;
	font-size: 14px;
	color: rgba(242, 234, 217, 0.7);
}

.zpost-hero__crumbs a {
	color: #f2ead9;
	text-decoration: none;
}

.zpost-body {
	max-width: 780px;
	margin: 0 auto;
	padding: 70px 16px 90px;
}

.zpost-content {
	font-size: 17px;
	line-height: 1.85;
	color: var(--z-text);
}

.zpost-content h2,
.zpost-content h3 {
	margin: 1.8em 0 0.5em;
	font-family: var(--z-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--z-green);
}

.zpost-content h2 {
	font-size: 32px;
}

.zpost-content h3 {
	font-size: 24px;
}

.zpost-content > p:first-child::first-letter {
	float: left;
	margin: 6px 10px 0 0;
	font-family: var(--z-serif);
	font-size: 64px;
	line-height: 0.8;
	color: var(--z-gold);
}

.zpost-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 22px;
	border-left: 2px solid var(--z-gold);
	font-family: var(--z-serif);
	font-size: 22px;
	font-style: italic;
	color: var(--z-green);
}

.zpost-content img {
	height: auto;
}

.zpost-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 16px;
	align-items: center;
	margin-top: 60px;
	padding-top: 26px;
	border-top: 1px solid var(--z-line);
	font-size: 15px;
}

.zpost-nav a {
	color: var(--z-green);
	text-decoration: none;
}

.zpost-nav a:hover {
	color: var(--z-gold);
}

.zpost-nav__next {
	text-align: right;
}

.zpost-nav__all {
	padding: 10px 18px;
	border: 1px solid var(--z-green);
	font-family: var(--z-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.zpost-nav {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.zpost-nav__next {
		text-align: center;
	}
}

/* Beat the global Elementor link colour (Site Settings) inside the dark sections */
.zblog-grid a.zblog-card__link,
.zblog-grid a.zblog-card__link:hover {
	color: #f7f0e4;
}

.zblog-grid .zblog-card__cat {
	color: var(--z-gold-light);
}

.zcontact .zcontact__consent a {
	color: var(--z-gold-light);
	text-decoration: underline;
}

.zcontact .zcontact__consent a:hover {
	color: #fff;
}

/* ---------- Contact form: Fluent Forms in the ZAFRAN design ---------- */
.zcontact--fluent {
	display: block;
}

.zcontact--fluent .fluentform .ff-el-group {
	margin-bottom: 14px;
}

.zcontact--fluent .fluentform .ff-el-input--label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.zcontact--fluent .fluentform .ff-el-form-control,
.zcontact--fluent .fluentform input[type="text"],
.zcontact--fluent .fluentform input[type="email"],
.zcontact--fluent .fluentform input[type="tel"],
.zcontact--fluent .fluentform textarea {
	width: 100%;
	height: auto;
	padding: 14px 16px;
	border: 1px solid rgba(214, 180, 106, 0.35);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.02);
	box-shadow: none;
	color: #f2ead9;
	font-family: var(--z-sans);
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.zcontact--fluent .fluentform .ff-el-form-control::placeholder {
	color: rgba(242, 234, 217, 0.65);
	opacity: 1;
}

.zcontact--fluent .fluentform .ff-el-form-control:focus {
	border-color: var(--z-gold-light);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: none;
	outline: none;
}

.zcontact--fluent .fluentform textarea.ff-el-form-control {
	min-height: 140px;
	resize: vertical;
}

/* Consent checkbox */
.zcontact--fluent .fluentform .ff-el-tc,
.zcontact--fluent .fluentform .ff_t_c,
.zcontact--fluent .fluentform .ff-el-form-check-label {
	font-family: var(--z-sans);
	font-size: 15px;
	line-height: 1.6;
	color: rgba(242, 234, 217, 0.75);
}

.zcontact--fluent .fluentform .ff-el-tc label,
.zcontact--fluent .fluentform .ff-el-form-check-label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.zcontact--fluent .fluentform input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 4px;
	accent-color: var(--z-gold);
}

.zcontact--fluent .fluentform .ff-el-tc a,
.zcontact--fluent .fluentform .ff_t_c a {
	color: var(--z-gold-light);
	text-decoration: underline;
}

.zcontact--fluent .fluentform .ff-el-tc a:hover {
	color: #fff;
}

/* Submit button */
.zcontact--fluent .fluentform .ff_submit_btn_wrapper {
	margin-top: 6px;
}

.zcontact--fluent .fluentform .ff-btn-submit,
.zcontact--fluent .fluentform button[type="submit"] {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 0;
	background: var(--z-gold) !important;
	color: var(--z-deep) !important;
	font-family: var(--z-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	opacity: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.zcontact--fluent .fluentform .ff-btn-submit:hover,
.zcontact--fluent .fluentform .ff-btn-submit:focus-visible {
	background: #fff !important;
	color: var(--z-deep) !important;
}

/* Errors and success message */
.zcontact--fluent .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #e0786f;
}

.zcontact--fluent .fluentform .error,
.zcontact--fluent .fluentform .text-danger {
	margin-top: 6px;
	font-size: 14px;
	color: #f2b6b0;
}

.zcontact--fluent .ff-message-success,
.zcontact--fluent .ff-errors-in-stack {
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-left: 3px solid #7db356;
	border-radius: 0;
	background: rgba(125, 179, 86, 0.14);
	box-shadow: none;
	color: #e6f2dc;
	font-family: var(--z-sans);
	font-size: 15px;
	line-height: 1.5;
}

.zcontact--fluent .ff-errors-in-stack {
	border-left-color: var(--z-red);
	background: rgba(163, 48, 42, 0.18);
	color: #f6dcda;
}
