/**
 * Contact page styles — 상담안내
 *
 * @package AriawellTheme
 */

body:has(.contact-page) {
	background: var(--fp-color-white);
	color: var(--fp-color-text);
}

.contact-page {
	font-family: var(--fp-font-sans);
}

/* ── Buttons ── */
.contact-btn {
	align-items: center;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--fp-font-sans);
	font-size: 18px;
	font-weight: 600;
	gap: 8px;
	line-height: 1.4;
	padding: 14px 24px;
	text-decoration: none;
	transition: opacity 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}

.contact-btn img {
	display: block;
	flex-shrink: 0;
	height: 20px;
	width: 20px;
}

.contact-btn:hover {
	opacity: 0.85;
}

.contact-btn--outline {
	background: var(--fp-color-white);
	border: 1px solid #dadee4;
	color: var(--fp-color-text-sub2);
}

.contact-btn--primary {
	background: var(--fp-color-brand);
	border: none;
	border-radius: 100px;
	color: var(--fp-color-white);
	justify-content: space-between;
	min-width: 180px;
	padding: 12px 20px 12px 24px;
}

.contact-btn--sm {
	font-size: 16px;
	font-weight: 500;
	padding: 12px 14px;
}

.contact-btn--sm img {
	height: 20px;
	width: 20px;
}

/* ── Hero ── */
.contact-hero {
	padding-block: 140px 80px;
}

.contact-hero__content {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: center;
}

.contact-hero__title {
	color: var(--fp-color-text);
	font-family: var(--fp-font-serif);
	font-size: 48px;
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.5;
	margin: 0;
	-webkit-text-stroke-width: 0.1px;
	-webkit-text-stroke-color: var(--fp-color-text);
}

.contact-hero__desc {
	color: var(--fp-color-text-sub1);
	font-size: 20px;
	line-height: 1.5;
	margin: 0;
}

.contact-hero .fade-up--onload.is-visible {
	animation-duration: 1.4s;
}

.contact-hero .fade-up--onload[data-fade-delay="1"].is-visible {
	animation-delay: 0.35s;
}

.contact-form-section__inner.fade-up--onload.is-visible {
	animation-duration: 1.05s;
}

.contact-form-section__inner.fade-up--onload[data-fade-delay="2"].is-visible {
	animation-delay: 1.05s;
}

/* ── Form section ── */
.contact-form-section {
	padding-block: 40px 160px;
}

.contact-form-section__inner {
	align-items: flex-start;
	display: flex;
	gap: 40px;
	justify-content: space-between;
}

.contact-form-section__visual {
	aspect-ratio: 555 / 372;
	border-radius: 10px;
	flex: 0 1 555px;
	max-width: 555px;
	overflow: hidden;
	width: 100%;
}

.contact-form-section__visual img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.contact-form {
	display: flex;
	flex: 0 1 670px;
	flex-direction: column;
	gap: 32px;
	max-width: 670px;
	width: 100%;
}

.contact-form__status {
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
	padding: 12px 20px;
}

.contact-form__status--success {
	background-color: #edf7ed;
	color: #1e4620;
}

.contact-form__status--error {
	background-color: #fdecea;
	color: #611a15;
}

.contact-form__notice {
	align-items: center;
	background-color: #f1f1f1;
	border-radius: 8px;
	color: var(--fp-color-text-sub1);
	display: flex;
	font-size: 16px;
	font-weight: 400;
	gap: 8px;
	line-height: 1.6;
	margin: 0;
	padding: 12px 20px;
}

.contact-form__notice img {
	flex-shrink: 0;
	height: 20px;
	width: 20px;
}

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

.contact-form__field label {
	color: var(--fp-color-text-sub1);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
	background: var(--fp-color-white);
	border: 1px solid #dadee4;
	border-radius: 8px;
	color: var(--fp-color-text);
	font-family: var(--fp-font-sans);
	font-size: 16px;
	font-weight: 400;
	height: 56px;
	padding: 12px;
	width: 100%;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
	color: var(--fp-color-text-sub3);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field select:focus {
	border-color: var(--fp-color-brand);
	outline: none;
}

.contact-form__field textarea {
	height: auto;
	min-height: 140px;
	resize: none;
}

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

.contact-form__select-wrap select {
	appearance: none;
	padding-right: 48px;
}

.contact-form__select-wrap img {
	height: 24px;
	pointer-events: none;
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
}

.contact-form__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	margin-top: 10px;
}

.contact-form__privacy {
	align-items: center;
	color: var(--fp-color-text-sub1);
	cursor: pointer;
	display: flex;
	font-size: 14px;
	font-weight: 400;
	gap: 8px;
}

.contact-form__privacy input {
	accent-color: var(--fp-color-brand);
	flex-shrink: 0;
	height: 24px;
	width: 24px;
}

.contact-form__privacy strong {
	color: var(--fp-color-text);
	font-weight: 600;
}

.contact-form__actions .contact-btn--primary {
	border-radius: 100px;
	justify-content: space-between;
	min-width: 180px;
}

/* ── Tablet (≤1279px) ── */
@media (max-width: 1279px) {
	.contact-hero {
		padding-block: 100px 60px;
	}

	.contact-hero__title {
		font-size: 48px;
	}

	.contact-hero__desc {
		font-size: 18px;
	}

	.contact-form-section {
		padding-block: 32px 120px;
	}

	.contact-form-section__inner {
		flex-direction: column;
	}

	.contact-form-section__visual {
		flex: none;
		max-width: none;
		width: 100%;
	}

	.contact-form {
		flex: none;
		gap: 28px;
		max-width: none;
	}

	.contact-form__field label {
		font-size: 17px;
	}

	.contact-form__notice {
		font-size: 15px;
		padding: 12px 16px;
	}
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
	.contact-hero {
		padding-block: 80px 40px;
	}

	.contact-hero__title {
		font-size: 32px;
	}

	.contact-hero__desc {
		font-size: 16px;
	}

	.contact-form-section {
		padding-block: 24px 80px;
	}

	.contact-form__notice {
		font-size: 14px;
		padding: 10px 16px;
	}

	.contact-form__field label {
		font-size: 16px;
	}

	.contact-form {
		gap: 24px;
	}

	.contact-form__field input,
	.contact-form__field textarea,
	.contact-form__field select {
		font-size: 14px;
		height: 48px;
		padding: 10px 12px;
	}

	.contact-form__field textarea {
		min-height: 120px;
	}

	.contact-form__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		margin-top: 0;
	}

	.contact-form__actions .contact-btn--primary {
		justify-content: center;
		min-width: 0;
		width: 100%;
	}
}
