/* ==========================================================================
   PurOstill V2 — contact page
   ========================================================================== */

.v2-contact { display: flex; flex-direction: column; gap: 2rem; padding-bottom: 3rem; }

/* Detail cards ------------------------------------------------------------ */

.v2-contact__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

.v2-contact__card {
	padding: 1.5rem;
	border: 1px solid var(--v2-line);
	border-radius: 18px;
	background: var(--v2-surface);
	box-shadow: 0 18px 40px rgba(var(--v2-ink-rgb), .06);
}
.v2-contact__icon {
	width: 44px; height: 44px; margin-bottom: .8rem;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: .7rem;
	background: rgba(var(--v2-accent-rgb), .12);
	color: var(--v2-accent);
}
.v2-contact__card h2 { margin-bottom: .4rem; font-size: 1.05rem; }
.v2-contact__value { display: inline-block; font-weight: 600; color: var(--v2-accent); line-height: 1.5; }
a.v2-contact__value:hover { text-decoration: underline; text-underline-offset: 3px; }
p.v2-contact__value { color: var(--v2-ink); font-weight: 500; }
.v2-contact__note { margin-top: .35rem; font-size: .87rem; color: var(--v2-muted); line-height: 1.45; }

/* Layout ------------------------------------------------------------------ */

/* Explicit tracks rather than auto-fit: the form deserves the wider half, and
   auto-fit was also leaving a third, empty column behind. */
.v2-contact__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

@media (max-width: 900px) {
	.v2-contact__layout { grid-template-columns: minmax(0, 1fr); }
}

/* Form -------------------------------------------------------------------- */

.v2-contact__form-card {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--v2-line);
	border-radius: 22px;
	background: var(--v2-surface);
	box-shadow: 0 22px 45px rgba(var(--v2-ink-rgb), .07);
}
.v2-contact__form-card h2 { margin-bottom: .5rem; font-size: 1.4rem; }
.v2-contact__form-text { margin-bottom: 1.5rem; color: var(--v2-muted); line-height: 1.6; }

.v2-contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.v2-contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.v2-contact__message { font-size: .95rem; font-weight: 600; color: var(--v2-ok); }
.v2-contact__message.is-error { color: var(--v2-sale); }

/* Side column -------------------------------------------------------------- */

.v2-contact__side { display: flex; flex-direction: column; gap: 1.5rem; }
.v2-contact__intro { font-size: .96rem; }

.v2-contact__faq {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--v2-line);
	border-radius: 24px;
	background: var(--v2-surface);
	box-shadow: 0 20px 55px rgba(var(--v2-ink-rgb), .06);
}
.v2-contact__faq h2 { margin-bottom: 1rem; font-size: 1.3rem; }

.v2-contact__faq-item + .v2-contact__faq-item { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--v2-line); }

.v2-contact__faq-q {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	width: 100%; padding: 0;
	border: none; background: none; cursor: pointer;
	font-family: inherit; font-size: 1rem; font-weight: 700; text-align: left;
	color: var(--v2-ink);
}
.v2-contact__faq-q:hover { color: var(--v2-accent); }
.v2-contact__faq-icon {
	flex: none;
	width: 26px; height: 26px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: rgba(var(--v2-accent-rgb), .12);
	color: var(--v2-accent);
	font-size: 1.1rem; line-height: 1;
	transition: transform .2s ease;
}
.v2-contact__faq-q[aria-expanded="true"] .v2-contact__faq-icon { transform: rotate(45deg); }

.v2-contact__faq-a { margin-top: .5rem; }
.v2-contact__faq-a p { color: var(--v2-muted); line-height: 1.6; font-size: .95rem; }

@media (max-width: 560px) {
	.v2-contact__row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
	.v2-contact { gap: 1.25rem; }

	.v2-contact__cards { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.v2-contact__card { padding: 1.15rem; border-radius: 1rem; }
	.v2-contact__icon { width: 40px; height: 40px; margin-bottom: .6rem; }

	.v2-contact__layout { gap: 1.25rem; }
	.v2-contact__form-card, .v2-contact__faq { padding: 1.25rem; border-radius: 1.25rem; }
	.v2-contact__form-card h2 { font-size: 1.2rem; }

	/* A tapped question should not need a second tap to read its answer. */
	.v2-contact__faq-q { font-size: .95rem; }
	.v2-contact__faq-icon { width: 30px; height: 30px; }
}

/* Reassurances beside the form --------------------------------------------- */

.v2-contact__promises {
	display: flex;
	flex-direction: column;
	padding: .35rem 0;
	border: 1px solid var(--v2-line);
	border-radius: 22px;
	background: var(--v2-surface);
}

.v2-contact__promise { display: flex; gap: .9rem; padding: 1.1rem 1.3rem; }
.v2-contact__promise + .v2-contact__promise { border-top: 1px solid color-mix(in srgb, var(--v2-line) 70%, transparent); }

.v2-contact__promise h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 700; }
.v2-contact__promise p { margin: 0; color: var(--v2-muted); font-size: .92rem; line-height: 1.55; }

.v2-contact__promise-icon {
	display: grid; place-items: center; flex: none;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--v2-accent) 12%, var(--v2-surface));
	color: var(--v2-accent);
}
.v2-contact__promise-icon .v2-icon { font-size: 20px; line-height: 1; }

/* Help links and social ----------------------------------------------------- */

.v2-contact__links {
	padding: 1.3rem;
	border: 1px solid var(--v2-line);
	border-radius: 22px;
	background: color-mix(in srgb, var(--v2-tint) 55%, var(--v2-surface));
}

.v2-contact__links h3 {
	margin: 0 0 .7rem;
	font-size: .78rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .12em;
	color: var(--v2-muted);
}

.v2-contact__help { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.v2-contact__help a { color: var(--v2-ink); font-size: .95rem; font-weight: 600; }
.v2-contact__help a:hover { color: var(--v2-accent); }

.v2-contact__social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.v2-contact__social a {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border: 1px solid var(--v2-line); border-radius: 50%;
	background: var(--v2-surface);
	color: var(--v2-muted);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.v2-contact__social a svg { width: 17px; height: 17px; fill: currentColor; }
.v2-contact__social a:hover {
	border-color: var(--v2-accent);
	background: var(--v2-accent);
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 640px) {
	.v2-contact__promise { padding: .95rem 1rem; }
	.v2-contact__links { padding: 1.1rem; border-radius: 1.25rem; }
	.v2-contact__promises { border-radius: 1.25rem; }
}
