/**
 * Registration Page Stylesheet (DawnEvents)
 * Matches the summit hero and Contact Form 7 layout from the design mockup.
 *
 * @package DawnEvents
 */

/* ==========================================================================
   RESET & WRAPPER
   ========================================================================== */
:root {
	--font-ui: 'Plus Jakarta Sans', sans-serif;
}

.tis-registration-page-wrapper {
	width: 100%;
	background-color: #FAF8F5;
	min-height: 100vh;
	box-sizing: border-box;
}

.tis-registration-page-wrapper * {
	box-sizing: border-box;
}

/* ==========================================================================
   HERO BANNER (MATCHING SCREENSHOT)
   ========================================================================== */
.tis-reg-hero {
	position: relative;
	background-color: #031512;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	width: 100%;
	aspect-ratio: 2560 / 534;
	min-height: 180px;
	max-height: 480px;
	padding: 0;
	color: #ffffff;
	overflow: hidden;
}

.tis-reg-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.tis-reg-hero__container {
	position: relative;
	z-index: 2;
	max-width: 1120px;
	margin: 0 auto;
}

/* Brand line overline */
.tis-reg-hero__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.tis-reg-hero__brand-bar {
	display: inline-block;
	width: 26px;
	height: 2px;
	background-color: #c5a059;
	border-radius: 2px;
}

.tis-reg-hero__brand-text {
	color: #c5a059;
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Main Heading */
.tis-reg-hero__title {
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif);
	font-size: clamp(34px, 4.2vw, 54px);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 14px 0;
	letter-spacing: -0.5px;
}

/* Subtitle */
.tis-reg-hero__subtitle {
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif);
	font-size: clamp(15px, 1.8vw, 17px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 28px 0;
	font-weight: 400;
}

/* Thin horizontal divider */
.tis-reg-hero__divider {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.16);
	margin-bottom: 22px;
}

/* Meta badge row below divider */
.tis-reg-hero__meta {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.tis-reg-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.tis-reg-hero__icon {
	width: 17px;
	height: 17px;
	stroke: currentColor;
	flex-shrink: 0;
}

/* ==========================================================================
   FORM CONTAINER & CARD
   ========================================================================== */
.tis-reg-form-section {
	background-color: #FAF8F5;
	padding: 60px 24px 100px;
}

.tis-reg-form-container {
	max-width: 820px;
	margin: 0 auto;
}

.tis-reg-card {
	background: #FAF8F5;
	width: 100%;
}

/* Remove default WP / CF7 margins and br tags interfering with layout */
.tis-reg-card p {
	margin: 0 !important;
	padding: 0 !important;
}

.tis-reg-card br {
	display: none !important;
}

.tis-reg-card .wpcf7 form > p {
	margin: 0 !important;
	padding: 0 !important;
}

/* Form Inner Layout */
.tis-reg-form-inner {
	width: 100%;
	background-color: #FAF8F5;
}

/* Full Width Field */
.tis-reg-field {
	margin-bottom: 22px;
	width: 100%;
}

.tis-reg-field--full {
	width: 100%;
}

/* Two Column Grid Row */
.tis-reg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 22px;
	width: 100%;
}

.tis-reg-col {
	width: 100%;
}

/* Labels */
.tis-reg-label {
	display: block;
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 8px;
	line-height: 1.3;
}

.tis-req {
	color: #dc2626;
	font-weight: 700;
	margin-left: 2px;
}

/* Inputs & Select */
.tis-reg-input,
.tis-reg-select,
.tis-reg-card input[type="text"],
.tis-reg-card input[type="email"],
.tis-reg-card input[type="tel"],
.tis-reg-card select {
	width: 100% !important;
	height: 48px !important;
	padding: 0 16px !important;
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif) !important;
	font-size: 15px !important;
	color: #111827 !important;
	background-color: #ffffff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
}

.tis-reg-input:focus,
.tis-reg-select:focus,
.tis-reg-card input[type="text"]:focus,
.tis-reg-card input[type="email"]:focus,
.tis-reg-card input[type="tel"]:focus,
.tis-reg-card select:focus {
	border-color: #0b3b2c !important;
	box-shadow: 0 0 0 3px rgba(11, 59, 44, 0.12) !important;
}

/* Custom Dropdown Chevron */
.tis-reg-select,
.tis-reg-card select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 15px !important;
	padding-right: 42px !important;
	cursor: pointer !important;
}

/* Submit Button */
.tis-reg-field--submit {
	margin-top: 28px;
	margin-bottom: 0;
	width: 100%;
}

.tis-reg-submit,
.tis-reg-card input[type="submit"] {
	width: auto !important;
	height: 50px !important;
	padding: 0 36px !important;
	background: #142B4A !important;
	color: #ffffff !important;
	font-family: 'Plus Jakarta Sans', var(--font-ui, sans-serif) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	letter-spacing: 0.2px !important;
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
}

.tis-reg-submit:hover,
.tis-reg-card input[type="submit"]:hover {
	background: #0d1e35 !important;
	box-shadow: 0 4px 12px rgba(20, 43, 74, 0.25) !important;
}

.tis-reg-submit:active,
.tis-reg-card input[type="submit"]:active {
	transform: scale(0.995) !important;
}

/* ==========================================================================
   CONTACT FORM 7 VALIDATION & ALERTS
   ========================================================================== */
.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.wpcf7-not-valid-tip {
	color: #dc2626 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	margin-top: 6px !important;
	display: block !important;
}

.wpcf7-form-control.wpcf7-not-valid {
	border-color: #dc2626 !important;
	background-color: #fffaf0 !important;
}

.wpcf7-response-output {
	border-radius: 6px !important;
	padding: 14px 18px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.6 !important;
	white-space: pre-line !important;
	margin: 22px 0 0 0 !important;
	text-align: center !important;
	border-width: 1px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
	background-color: #ecfdf5 !important;
	border-color: #a7f3d0 !important;
	color: #065f46 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
	background-color: #fef2f2 !important;
	border-color: #fecaca !important;
	color: #991b1b !important;
}

.wpcf7-spinner {
	display: block !important;
	margin: 12px auto 0 !important;
	visibility: hidden;
}

.wpcf7 form.submitting .wpcf7-spinner {
	visibility: visible !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
	.tis-reg-hero {
		min-height: 140px;
	}

	.tis-reg-row {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 20px;
	}

	.tis-reg-field {
		margin-bottom: 20px;
	}

	.tis-reg-form-section {
		padding: 40px 16px 70px;
	}
}
