/**
 * Contact Template Styles
 *
 * @package ceron
 */

/* Contact Banner */
.contact-banner {
	height: 500px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.contact-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(37, 19, 56, 0.4);
	z-index: 1;
}

/* Contact Section */
.contact-section {
	background: #ffffff;
	padding: 100px 119px;
}

.contact-section-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* Contact Header */
.contact-header {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.contact-header h1 {
	font-weight: 300;
	font-size: 50px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.registration-dates {
	display: flex;
	flex-direction: column;
	gap: 0;
	text-align: center;
}

.registration-dates p {
	font-size: 22px;
	line-height: 34px;
	color: #666666;
	margin: 0;
}

.registration-dates strong {
	font-weight: 700;
}

/* Contact Grid */
.contact-grid {
	display: flex;
	gap: 100px;
	align-items: flex-start;
}

/* Contact Info (Left Column) */
.contact-info {
	width: 469px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.contact-info-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.contact-info-section h3 {
	font-weight: 300;
	font-size: 28px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.contact-info-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-info-item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.contact-icon {
	width: 40px;
	height: 40px;
	background: #180a2c;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-icon img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.contact-info-item p {
	font-size: 18px;
	line-height: 30px;
	color: #666666;
	margin: 0;
	flex: 1;
}

.contact-info-item p a {
	font-family: var(--font-primary);
	color: #666666;
	text-decoration: none;
	transition: color 0.3s;
}

.contact-info-item p a:hover {
	color: #180a2c;
}

.contact-info-section > p {
	font-size: 18px;
	line-height: 30px;
	color: #666666;
	margin: 0;
}

.contact-info-section > p strong {
	font-weight: 700;
}

/* Map */
.contact-map {
	margin-top: 20px;
	width: 100%;
	overflow: hidden;
}

.contact-map img {
	width: 100%;
	height: auto;
	display: block;
}

/* Contact Form Wrapper (Right Column) */
.contact-form-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-form-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-form-header h3 {
	font-weight: 300;
	font-size: 28px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.contact-form-header p {
	font-size: 18px;
	line-height: 30px;
	color: #666666;
	margin: 0;
}

/* Contact Form */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-divider {
	width: 100%;
	height: 1px;
	background: #d9d9d9;
}

.form-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form-section h4 {
	font-weight: 300;
	font-size: 22px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.form-row {
	display: flex;
	gap: 13px;
}

.form-field {
	flex: 1;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
	width: 100%;
	background: #f5f5f5;
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	line-height: 30px;
	color: #666666;
	box-sizing: border-box;
	font-weight: 300;
}

.form-field select {
	cursor: pointer;
	appearance: none;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.form-field textarea {
	resize: vertical;
	min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
	color: #666666;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	outline: none;
	background: #eeeeee;
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f5f5f5;
}

.form-field select:disabled {
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-color: #f5f5f5;
}

/* Radio Buttons */
.form-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	align-items: center;
}

.form-radio {
	display: flex;
	gap: 16px;
	align-items: center;
	cursor: pointer;
	position: relative;
}

.form-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.radio-custom {
	width: 16px;
	height: 16px;
	background: #f5f5f5;
	border-radius: 4px;
	position: relative;
	flex-shrink: 0;
}

.form-radio input[type="radio"]:checked + .radio-custom::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	background: #180a2c;
	border-radius: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.radio-label {
	font-size: 18px;
	line-height: 30px;
	color: #666666;
}

/* Checkboxes */
.form-checkbox-grid {
	display: grid;
	grid-template-columns: 0.8fr 1fr 1fr;
	align-items: center;
}

.form-checkbox {
	display: flex;
	gap: 11px;
	align-items: center;
	cursor: pointer;
	position: relative;
}

.form-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.checkbox-custom {
	width: 16px;
	height: 16px;
	background: #f5f5f5;
	border-radius: 4px;
	position: relative;
	flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	background: #180a2c;
	border-radius: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.checkbox-label {
	font-size: 17px;
	line-height: 30px;
	color: #666666;
}

.checkbox-label a {
	font-family: var(--font-primary);
	color: #666666;
	text-decoration: underline;
}

/* Three Column Layout */
.form-three-col {
	display: flex;
	gap: 36px;
	align-items: flex-start;
}

.form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form-group h4 {
	font-weight: 300;
	font-size: 20px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.form-group .form-field {
	width: 100%;
}

/* Form Footer */
.form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Form Status Message */
.form-status {
	margin-top: 16px;
	font-size: 16px;
	line-height: 24px;
}

.form-status-success {
	color: #1a7a3c;
}

.form-status-error {
	color: #b3261e;
}

.submit-button {
	background: #180a2c;
	color: #ffffff;
	border: none;
	border-radius: 100px;
	padding: 8px 40px 10px 40px;
	font-family: 'IvyPresto Text', serif;
	font-weight: 300;
	font-size: 20px;
	line-height: normal;
	cursor: pointer;
	transition: background 0.3s;
}

.submit-button:hover {
	background: #2a1a3e;
}

/* Registration Section */
.registration-section {
	background: #f5f5f5;
	padding: 100px 119px;
}

.registration-section-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.registration-section h2 {
	font-family: var(--font-headline);
	font-weight: 300;
	font-size: 50px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
	text-align: center;
}

/* Registration Grid */
.registration-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 102px;
}

.registration-column {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 472px;
}

.registration-item {
	display: flex;
	gap: 24px;
	align-items: center;
}

.registration-number {
	width: 48px;
	height: 48px;
	background: #180a2c;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.registration-number span {
	font-family: var(--font-headline);
	font-weight: 300;
	font-size: 20px;
	line-height: normal;
	color: #ffffff;
}

.registration-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.registration-content h4 {
	font-weight: 300;
	font-size: 28px;
	line-height: normal;
	color: #180a2c;
	margin: 0;
}

.registration-content p {
	font-size: 16px;
	line-height: 26px;
	color: #666666;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 1280px) {
	.contact-section {
		padding: 80px 40px;
	}

	.registration-section {
		padding: 80px 40px;
	}

	.contact-grid {
		gap: 60px;
	}

	.registration-grid {
		gap: 60px;
	}
}

@media (max-width: 1024px) {
	.contact-banner {
		height: 400px;
	}

	.contact-section {
		padding: 60px 40px;
	}

	.registration-section {
		padding: 60px 40px;
	}

	.contact-header h1,
	.registration-section h2 {
		font-size: 40px;
	}

	.contact-grid {
		flex-direction: column;
		gap: 50px;
	}

	.contact-info {
		width: 100%;
		order: 2;
	}

	.contact-form-wrapper {
		order: 1;
	}

	.registration-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.contact-banner {
		height: 300px;
	}

	.contact-section {
		padding: 50px 24px;
	}

	.registration-section {
		padding: 50px 24px;
	}

	.contact-header h1,
	.registration-section h2 {
		font-size: 36px;
	}

	.registration-dates p {
		font-size: 18px;
		line-height: 28px;
	}

	.contact-info-section h3,
	.contact-form-header h3,
	.registration-content h4 {
		font-size: 24px;
	}

	.contact-info-item p,
	.contact-info-section > p,
	.contact-form-header p {
		font-size: 16px;
		line-height: 26px;
	}

	.contact-map {
		height: 300px;
	}

	.registration-content p {
		font-size: 15px;
		line-height: 24px;
	}
}

@media (max-width: 480px) {
	.contact-section {
		padding: 40px 16px;
	}

	.registration-section {
		padding: 40px 16px;
	}

	.contact-header h1,
	.registration-section h2 {
		font-size: 32px;
	}

	.registration-dates p {
		font-size: 16px;
		line-height: 26px;
	}

	.contact-info-section h3,
	.contact-form-header h3,
	.registration-content h4 {
		font-size: 22px;
	}

	.registration-item {
		gap: 16px;
	}

	.registration-number {
		width: 40px;
		height: 40px;
	}

	.registration-number span {
		font-size: 18px;
	}

	.form-row {
		flex-direction: column;
		gap: 12px;
	}

	.form-three-col {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.form-three-col .form-group {
		width: 100%;
	}

	.form-checkbox-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 20px;
	}

	.form-footer {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}

	.submit-button {
		width: 100%;
	}
}

@media (min-width: 801px)  {
	.form-three-col .form-group:first-child {
		flex: 0 0 127px;
	}
}