/* ==========================================================================
   The Capital — Events Enquiry Modal
   ========================================================================== */

/* ── Body lock ──────────────────────────────────────────────────────────── */
.tc-ecm-body-lock {
	overflow: hidden;
}

/* ── Overlay ────────────────────────────────────────────────────────────── */
.tc-ecm-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 9000;
}

.tc-ecm-overlay--open {
	display: block;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.tc-ecm {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	z-index: 9001;
	width: min( 780px, calc( 100vw - 40px ) );
	max-height: calc( 100vh - 60px );
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.25 );
}

.tc-ecm--open {
	display: flex;
	flex-direction: column;
}

/* ── Close button ───────────────────────────────────────────────────────── */
.tc-ecm__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #888;
	transition: color 0.2s;
	z-index: 1;
}

.tc-ecm__close:hover {
	color: #111;
}

.tc-ecm__close svg {
	width: 20px;
	height: 20px;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.tc-ecm__body {
	padding: 40px 40px 32px;
}

.tc-ecm__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	font-weight: 700;
	color: var( --tc-dark, #1a1a1a );
	line-height: 1.2;
}

.tc-ecm__subtitle {
	margin: 0 0 28px;
	font-size: 0.9rem;
	color: #666;
}

/* ── Form grid ──────────────────────────────────────────────────────────── */
.tc-ecm-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-bottom: 16px;
}

.tc-ecm-row--date {
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

/* ── Fields ─────────────────────────────────────────────────────────────── */
.tc-ecm-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tc-ecm-field label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #444;
}

.tc-ecm-field label span {
	color: #c00;
}

.tc-ecm-field input[type="text"],
.tc-ecm-field input[type="email"],
.tc-ecm-field input[type="tel"],
.tc-ecm-field input[type="date"],
.tc-ecm-field input[type="number"],
.tc-ecm-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	background: #fff;
	font-size: 0.9rem;
	color: #222;
	outline: none;
	transition: border-color 0.2s;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.tc-ecm-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 32px;
	cursor: pointer;
}

.tc-ecm-field input:focus,
.tc-ecm-field select:focus {
	border-color: var( --tc-gold, #EBA318 );
}

.tc-ecm-field__hint {
	font-size: 0.75rem;
	color: #888;
	margin-top: 2px;
}

/* ── Date + radios ──────────────────────────────────────────────────────── */
.tc-ecm-field--date {
	gap: 5px;
}

.tc-ecm-radios {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}

.tc-ecm-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #555;
	cursor: pointer;
}

.tc-ecm-radio input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: var( --tc-gold, #EBA318 );
	cursor: pointer;
	flex-shrink: 0;
}

.tc-ecm-radio--checked {
	color: var( --tc-gold, #EBA318 );
	font-weight: 600;
}

/* ── Pair (seats + banqueting) ──────────────────────────────────────────── */
.tc-ecm-field-pair {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: start;
}

.tc-ecm-field-pair .tc-ecm-field:last-child {
	min-width: 110px;
}

/* ── Actions row ────────────────────────────────────────────────────────── */
.tc-ecm-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

.tc-ecm-submit {
	padding: 14px 36px;
	background: var( --tc-dark, #1a1a1a );
	color: #fff;
	border: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
	border-radius: 0;
}

.tc-ecm-submit:hover {
	background: #333;
}

.tc-ecm-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Status messages ────────────────────────────────────────────────────── */
.tc-ecm-status {
	font-size: 0.85rem;
	min-height: 1.2em;
}

.tc-ecm-status--success {
	color: #2a7a2a;
}

.tc-ecm-status--error {
	color: #c00;
}

.tc-ecm-status--loading::after {
	content: 'Sending…';
	color: #666;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.tc-ecm__footer {
	padding: 20px 40px;
	background: #f5f5f5;
	border-top: 1px solid #e0e0e0;
}

.tc-ecm__footer-label {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var( --tc-dark, #1a1a1a );
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tc-ecm__footer-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.tc-ecm__footer-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var( --tc-gold, #EBA318 );
	text-decoration: none;
}

.tc-ecm__footer-link svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.tc-ecm__footer-link:hover {
	text-decoration: underline;
}

/* ── Meeting room card Contact button ───────────────────────────────────── */
.tc-mr-card__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tc-mr-contact-btn {
	flex-shrink: 0;
	padding: 6px 18px;
	border: 1px solid var( --tc-gold, #EBA318 );
	background: transparent;
	color: var( --tc-gold, #EBA318 );
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	border-radius: 2px;
}

.tc-mr-contact-btn.mobile-only {
	display: none;
}

.tc-mr-contact-btn:hover {
	background: var( --tc-gold, #EBA318 );
	color: #fff;
}

/* ── Standalone button ──────────────────────────────────────────────────── */
.tc-events-contact-standalone-btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	background: var( --tc-gold, #EBA318 );
	color: #fff;
	border: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
	border-radius: 2px;
}

.tc-events-contact-standalone-btn:hover {
	background: #d4940e;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 860px ) {
	.tc-mr-contact-btn.desktop-only {
		display: none;
	}
	.tc-mr-contact-btn.mobile-only {
		display: flex;
		margin-top: 30px;
	}
}

@media ( max-width: 620px ) {
	.tc-ecm__body {
		padding: 28px 20px 24px;
	}

	.tc-ecm__footer {
		padding: 16px 20px;
	}

	.tc-ecm-row,
	.tc-ecm-row--date {
		grid-template-columns: 1fr;
	}

	.tc-ecm-field-pair {
		grid-template-columns: 1fr 1fr;
	}

	.tc-ecm__title {
		font-size: 1.3rem;
	}
}
