/* ==========================================================================
   KZT Contact Form — стилизован под тему kaztheatre2025
   Шрифты, цвета и компоненты соответствуют существующим секциям сайта.
   ========================================================================== */

/* Section wrapper */
.kzt-contact-section {
	background: #fff;
	padding: 60px 0 70px;
	border-top: 1px solid #eeeef2;
}

/* Two-column layout: heading | form */
.kzt-contact-inner {
	display: flex;
	gap: 64px;
	align-items: flex-start;
}

/* ── Left: heading ── */
.kzt-contact-left {
	flex: 0 0 280px;
	padding-top: 6px;
}

.kzt-contact-heading {
	font-family: 'Merriweather', serif;
	font-size: 2.1rem;
	font-weight: 700;
	color: #222;
	line-height: 1.25;
	margin: 0 0 20px;
}

/* Decorative gold line under heading — matches site's accent */
.kzt-heading-line {
	display: block;
	width: 48px;
	height: 3px;
	background: linear-gradient(90deg, #FFAF01, #FFD700);
	border-radius: 2px;
}

/* ── Right: form ── */
.kzt-contact-right {
	flex: 1;
	min-width: 0;
}

.kzt-contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Field group */
.kzt-field-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Visually hidden label (accessible, not shown — placeholder acts as label) */
.kzt-label {
	font-family: 'Merriweather', serif;
	font-size: 0.78rem;
	font-weight: 700;
	color: #555;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	display: none; /* hidden by default; placeholder serves as label */
}

/* Inputs & textarea */
.kzt-input {
	width: 100%;
	padding: 13px 16px;
	font-family: 'Merriweather', serif;
	font-size: 0.95rem;
	color: #333;
	background: #fff;
	border: 1px solid #b8b8b8;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.kzt-input::placeholder {
	color: #999;
	font-weight: 300;
}

.kzt-input:focus {
	border-color: #FFAF01;
	box-shadow: 0 0 0 3px rgba(255, 175, 1, 0.18);
}

/* Error state */
.kzt-input.kzt-error {
	border-color: #a52a2a;
	box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.12);
}

/* Textarea */
.kzt-textarea {
	resize: vertical;
	min-height: 130px;
	line-height: 1.6;
}

/* Submit row */
.kzt-submit-group {
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* Submit button — matches .all-show style from the theme */
.kzt-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 44px;
	background: linear-gradient(45deg, #FFD700, #FFAA00, #FFD700);
	background-size: 200% auto;
	color: #1a1a1a;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(255, 175, 1, 0.28);
	transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.kzt-submit-btn:hover:not(:disabled) {
	background-position: right center;
	transform: scale(1.04);
	box-shadow: 0 6px 24px rgba(255, 175, 1, 0.45);
}

.kzt-submit-btn:active:not(:disabled) {
	transform: scale(0.97);
}

.kzt-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Loader icon inside button */
.kzt-btn-loader {
	display: none;
	flex-shrink: 0;
}

.kzt-submit-btn.is-loading .kzt-btn-text {
	opacity: 0.5;
}

.kzt-submit-btn.is-loading .kzt-btn-loader {
	display: block;
}

/* Response message */
.kzt-response {
	font-family: 'Merriweather', serif;
	font-size: 0.9rem;
	line-height: 1.55;
	border-radius: 6px;
	transition: opacity 0.3s ease;
	empty-cells: hide;
}

.kzt-response:empty {
	display: none;
}

.kzt-response.is-success {
	padding: 12px 16px;
	color: #1e5c1e;
	background: #f0faf0;
	border: 1px solid #a5d6a7;
}

.kzt-response.is-error {
	padding: 12px 16px;
	color: #8b0000;
	background: #fff5f5;
	border: 1px solid #f5a0a0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.kzt-contact-inner {
		gap: 40px;
	}

	.kzt-contact-left {
		flex: 0 0 220px;
	}

	.kzt-contact-heading {
		font-size: 1.7rem;
	}
}

@media (max-width: 680px) {
	.kzt-contact-section {
		padding: 48px 0 56px;
	}

	.kzt-contact-inner {
		flex-direction: column;
		gap: 28px;
	}

	.kzt-contact-left {
		flex: none;
	}

	.kzt-contact-heading {
		font-size: 1.5rem;
		margin-bottom: 14px;
	}

	.kzt-submit-btn {
		width: 100%;
	}
}
