/**
 * Sam4Tech — Contact page styles.
 *
 * Loaded only on the Contact template. Uses the design tokens and shared
 * marketing section primitives from style.css.
 *
 * CONTENTS
 *   1. Two-column layout
 *   2. Form card
 *   3. Fields
 *   4. Notices & errors
 *   5. Details sidebar
 *   6. Responsive
 */

/* ==========================================================================
   1. Two-column layout
   Form on the left, contact details on the right.
   ========================================================================== */

.s4t-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(1.5rem, 3vw, var(--s4t-space-6));
	max-width: 980px;
	margin-inline: auto;
}

/* ==========================================================================
   2. Form card
   ========================================================================== */

.s4t-contact__form {
	background: var(--s4t-white);
	border: 1px solid var(--s4t-border);
	border-radius: var(--s4t-radius-lg);
	padding: clamp(1.5rem, 3vw, var(--s4t-space-6));
	box-shadow: var(--s4t-shadow-sm);
}

.s4t-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s4t-space-4);
}

/* Honeypot: removed from view and from the tab order, but not display:none,
   which some bots detect. */
.s4t-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.s4t-form__submit {
	width: 100%;
	margin-block-start: var(--s4t-space-5);
	padding-block: 0.85rem;
	font-size: var(--s4t-text-base);
}

/* ==========================================================================
   3. Fields
   ========================================================================== */

.s4t-field {
	display: block;
	margin-block-end: var(--s4t-space-4);
}

.s4t-field label {
	display: block;
	margin-block-end: 0.4rem;
	font-family: var(--s4t-font-display);
	font-size: var(--s4t-text-sm);
	font-weight: 600;
	color: var(--s4t-ink);
}

.s4t-field input,
.s4t-field select,
.s4t-field textarea {
	width: 100%;
	background: var(--s4t-cream);
	border: 1px solid var(--s4t-border-strong);
	border-radius: var(--s4t-radius-sm);
	padding: 0.7rem 0.9rem;
	font-family: var(--s4t-font-body);
	font-size: var(--s4t-text-sm);
	color: var(--s4t-ink);
	transition: border-color var(--s4t-duration) var(--s4t-ease),
		background-color var(--s4t-duration) var(--s4t-ease),
		box-shadow var(--s4t-duration) var(--s4t-ease);
}

.s4t-field textarea {
	min-height: 132px;
	resize: vertical;
	line-height: 1.6;
}

.s4t-field input::placeholder,
.s4t-field textarea::placeholder {
	color: var(--s4t-muted);
}

.s4t-field input:hover,
.s4t-field select:hover,
.s4t-field textarea:hover {
	border-color: var(--s4t-muted);
}

.s4t-field input:focus,
.s4t-field select:focus,
.s4t-field textarea:focus {
	outline: none;
	background: var(--s4t-white);
	border-color: var(--s4t-brand);
	box-shadow: 0 0 0 4px rgba(var(--s4t-brand-rgb), 0.14);
}

/* Custom select chevron — inline SVG, no external asset. */
.s4t-field--select select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b84' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	cursor: pointer;
}

/* ==========================================================================
   4. Notices & errors
   ========================================================================== */

.s4t-field [aria-invalid="true"] {
	border-color: #d64545;
	background: #fdf3f3;
}

.s4t-field__error {
	display: block;
	margin-block-start: 0.35rem;
	font-size: var(--s4t-text-xs);
	color: #c53434;
}

.s4t-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--s4t-space-3);
	border-radius: var(--s4t-radius-sm);
	padding: var(--s4t-space-3) var(--s4t-space-4);
	margin-block-end: var(--s4t-space-5);
	font-size: var(--s4t-text-sm);
	line-height: 1.6;
}

.s4t-notice .s4t-icon {
	flex: none;
	margin-top: 0.15rem;
}

.s4t-notice--ok {
	background: var(--s4t-accent-soft);
	border: 1px solid #b5e3cc;
	color: var(--s4t-accent-strong);
}

.s4t-notice--bad {
	background: #fdf3f3;
	border: 1px solid #f2cccc;
	color: #b93a3a;
}

/* ==========================================================================
   5. Details sidebar
   ========================================================================== */

.s4t-contact__aside {
	display: flex;
	flex-direction: column;
	gap: var(--s4t-space-4);
}

.s4t-info {
	display: flex;
	align-items: flex-start;
	gap: var(--s4t-space-3);
	background: var(--s4t-white);
	border: 1px solid var(--s4t-border);
	border-radius: var(--s4t-radius-lg);
	padding: var(--s4t-space-4) var(--s4t-space-5);
	box-shadow: var(--s4t-shadow-xs);
	transition: transform var(--s4t-duration) var(--s4t-ease),
		border-color var(--s4t-duration) var(--s4t-ease),
		box-shadow var(--s4t-duration) var(--s4t-ease);
}

.s4t-info:hover {
	transform: translateY(-3px);
	border-color: var(--s4t-border-strong);
	box-shadow: var(--s4t-shadow-md);
}

.s4t-info__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 11px;
	background: var(--s4t-brand-soft);
	color: var(--s4t-brand);
}

.s4t-info__body {
	min-width: 0;
}

.s4t-info__label {
	display: block;
	font-size: var(--s4t-text-xs);
	color: var(--s4t-muted);
	margin-block-end: 0.2rem;
}

.s4t-info__value {
	display: block;
	font-family: var(--s4t-font-display);
	font-size: var(--s4t-text-sm);
	font-weight: 600;
	font-style: normal;
	line-height: 1.5;
	color: var(--s4t-ink);
	text-decoration: none;
	transition: color var(--s4t-duration) var(--s4t-ease);
}

a.s4t-info__value:hover,
a.s4t-info__value:focus-visible {
	color: var(--s4t-brand);
}

/* Accented card — gradient hairline, matching the CTA and stats panels. */
.s4t-info--highlight {
	position: relative;
	border-color: transparent;
	padding: var(--s4t-space-5);
	box-shadow: var(--s4t-shadow-md);
}

.s4t-info--highlight::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(100deg, var(--s4t-brand), var(--s4t-accent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.s4t-info--highlight:hover {
	transform: none;
}

.s4t-info__title {
	font-size: var(--s4t-text-base);
	font-weight: 700;
	margin-block-end: var(--s4t-space-2);
}

.s4t-info__text {
	font-size: var(--s4t-text-sm);
	line-height: 1.7;
	margin: 0;
}

/* Closing line of the highlight card, set apart from the paragraph above. */
.s4t-info__note {
	font-family: var(--s4t-font-display);
	font-size: var(--s4t-text-sm);
	font-weight: 600;
	color: var(--s4t-ink);
	margin: var(--s4t-space-4) 0 0;
}

/* ==========================================================================
   6. Responsive
   ========================================================================== */

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

@media (max-width: 520px) {
	.s4t-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
}
