/* ==========================================================================
   Contact Page
   ========================================================================== */

/* Hero */

.contact-hero {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 400px;
	padding: clamp(80px, 12vw, 120px) 0;
	background: #d9d9d9;
}

.contact-hero__inner {
	display: flex;
	justify-content: center;
}

.contact-hero__title {
	margin: 0;
	font-size: clamp(36px, 5vw + 0.5rem, 60px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--color-text);
	text-align: center;
}

/* Overview */

.contact-overview {
	padding: clamp(80px, 12vw, 160px) 0 0;
}

.contact-overview__heading {
	margin: 0;
	font-size: clamp(32px, 4vw + 0.5rem, 48px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: -0.01em;
	text-align: center;
}

/* Form */

.contact-form-section {
	padding: clamp(80px, 12vw, 160px) 0;
}

.contact-form {
	max-width: 945px;
	margin: 0 auto;
}

.contact-form__notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.contact-form__notice--success {
	background: #eef6ee;
	color: #1f5f2d;
}

.contact-form__notice--error {
	background: #fdeeee;
	color: #8b1f1f;
}

.contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 20px;
	padding: 0 20px;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-form__field--full {
	grid-column: 1 / -1;
}

.contact-form__field--align-end {
	justify-content: flex-end;
}

.contact-form__label {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--color-text);
}

.contact-form__input,
.contact-form__select {
	width: 100%;
	height: 40px;
	padding: 0 20px;
	border: none;
	border-radius: 0;
	background: #efefef;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--color-text-secondary);
}

.contact-form__input::placeholder {
	color: #666;
}

.contact-form__input:focus,
.contact-form__select:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
}

.contact-form__select-wrap {
	position: relative;
}

.contact-form__select {
	appearance: none;
	padding-right: 44px;
	cursor: pointer;
}

.contact-form__select-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 20px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--color-text-secondary);
	border-bottom: 2px solid var(--color-text-secondary);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.contact-form__select option {
	color: var(--color-text);
}

.contact-form__radios {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 40px;
}

.contact-form__radio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.contact-form__radio input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--color-text);
}

.contact-form__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
}

.contact-form__check {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.contact-form__check input {
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	flex-shrink: 0;
	accent-color: var(--color-text);
}

.contact-form__checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.contact-form__checkbox input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--color-text);
}

.contact-form__privacy-toggle {
	padding: 0;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.contact-form__privacy-detail {
	margin-top: 12px;
	padding: 16px;
	background: #f4f4f4;
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-text-secondary);
}

.contact-form__privacy-detail ul {
	margin: 8px 0 0;
	padding-left: 1.2em;
}

.contact-form__privacy-detail li + li {
	margin-top: 4px;
}

.contact-form__submit {
	width: 100%;
	justify-content: space-between;
}

.contact-page .contact-form__submit.btn--outline {
	padding: 12px 16px;
	font-size: 16px;
}

@media (max-width: 768px) {
	.contact-hero {
		min-height: 280px;
		padding: 64px 0 48px;
	}

	.contact-overview {
		padding-top: 64px;
	}

	.contact-form-section {
		padding: 64px 0;
	}

	.contact-form__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.contact-form__field--align-end {
		justify-content: flex-start;
	}

	.contact-form__checks {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.contact-hero__title {
		font-size: 32px;
	}

	.contact-overview__heading {
		font-size: 28px;
	}

	.contact-form__radios {
		gap: 24px;
	}

	.contact-form__check {
		font-size: 15px;
	}
}
