/*
   NIOS Contact Page — dedicated stylesheet, loaded only on this page
   (page-contactus.php). Figma: NIOS-website 262:231 (mobile 424),
   262:134 (tablet 768), 262:2 (desktop 1920) + handoff 262:347.
   Reuses .shop-hero / .shop-faq from style.css (identical hero/FAQ
   visual language already established for the Shop archive) — only
   Contact-specific pieces (topics, form, cards, support strip) live here.
*/

.contact-hero__eyebrow { margin: 0 0 6px; font: 600 12px/18px var(--nios-font); color: var(--nios-accent); }

/* ---- Topic pills ---- */
.contact-topics { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-topics__pill {
	height: 40px; padding-inline: 18px; border-radius: 20px;
	background: #fff; border: 1px solid #e5ddd3; color: #171717;
	font: 600 12px/18px var(--nios-font); cursor: pointer;
}
.contact-topics__pill.is-active { background: var(--nios-ink-strong); border-color: var(--nios-ink-strong); color: #fff; }
.contact-topics__pill:focus-visible { outline: 2px solid var(--nios-accent); outline-offset: 2px; }

/* ---- "איך נוכל לעזור" wrapper ---- */
.contact-help { padding-block: 36px; }
.contact-help__title { margin: 0 0 6px; font: 700 24px/32px var(--nios-font); color: #171717; }
.contact-help__subtitle { margin: 0; font: 400 14px/22px var(--nios-font); color: #665f59; }
.contact-help__grid { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }

/* ---- Form card ---- */
.contact-form-card { background: #fff; border: 1px solid #e5ddd3; border-radius: 18px; padding: 20px 16px; }
.contact-form-card__title { margin: 0 0 4px; font: 700 20px/28px var(--nios-font); color: #171717; }
.contact-form-card__subtitle { margin: 0 0 16px; font: 400 13px/20px var(--nios-font); color: #665f59; }

.contact-form__status:empty { display: none; }
.contact-form__notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font: 500 13px/20px var(--nios-font); }
.contact-form__notice--success { background: #eaf5ec; color: #1e6b34; }
.contact-form__notice--error { background: #fbeaea; color: #a02222; }
.contact-form__notice--loading { background: var(--nios-bg-panel); color: #665f59; }

.contact-form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

.contact-form__row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field--full { margin-bottom: 16px; }
.contact-field label { font: 600 12px/16px var(--nios-font); color: #171717; }
.contact-field input,
.contact-field select,
.contact-field textarea {
	height: 52px; border: 1px solid #e5ddd3; border-radius: 10px; background: #fff;
	padding: 0 16px; font: 400 13px/20px var(--nios-font); color: #171717;
}
.contact-field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 140px; }
.contact-field select { cursor: pointer; }
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
	outline: 2px solid var(--nios-accent); outline-offset: 1px; border-color: var(--nios-accent);
}
.contact-field__hint { margin: 0; font: 400 11px/16px var(--nios-font); color: var(--nios-accent); }

.contact-attachment {
	background: var(--nios-bg-panel); border: 1px solid #e5ddd3; border-radius: 10px;
	padding: 14px 16px; margin-bottom: 16px;
}
.contact-attachment__label { display: block; cursor: pointer; }
.contact-attachment__title { display: block; font: 600 12px/18px var(--nios-font); color: #171717; }
.contact-attachment__hint { display: block; margin-top: 4px; font: 400 10px/15px var(--nios-font); color: #665f59; }
.contact-attachment input[type="file"] { margin-top: 10px; width: 100%; font: 400 12px/18px var(--nios-font); }
.contact-attachment__selected[hidden] { display: none; }
.contact-attachment__selected { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #e5ddd3; border-radius: 8px; padding: 8px 12px; font: 500 12px/18px var(--nios-font); }
.contact-attachment__remove { border: none; background: none; color: #a02222; font: 600 12px/18px var(--nios-font); cursor: pointer; padding: 0; }
.contact-attachment__status:empty { display: none; }
.contact-attachment__status { margin: 8px 0 0; font: 400 11px/16px var(--nios-font); color: #a02222; }

.contact-form__privacy { margin: 4px 0 16px; font: 400 10px/16px var(--nios-font); color: #665f59; }
.contact-form__privacy a { color: var(--nios-accent); }

.contact-form__submit { width: 100%; }
.contact-form__success-actions { margin-top: 16px; }
.contact-form__success-actions .btn { width: 100%; }

/* ---- Cards ---- */
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { position: relative; background: #fff; border: 1px solid #e5ddd3; border-radius: 16px; padding: 20px; }
.contact-card--note { background: var(--nios-bg-panel); border-color: var(--nios-bg-panel); display: none; }
.contact-card__icon {
	position: absolute; top: 19px; inset-inline-end: 20px; width: 48px; height: 48px; border-radius: 24px;
	background: var(--nios-bg-panel); color: var(--nios-accent); font: 600 18px/48px var(--nios-font); text-align: center;
}
.contact-card__title { margin: 0 0 8px; padding-inline-end: 60px; font: 700 17px/24px var(--nios-font); color: #171717; }
.contact-card__text { margin: 0 0 16px; padding-inline-end: 60px; font: 400 12px/18px var(--nios-font); color: #665f59; }
.contact-card--note .contact-card__text { padding-inline-end: 0; }
.contact-card__cta {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 42px;
	border-radius: 10px; background: #fff; border: 1px solid var(--nios-accent); color: #171717;
	font: 600 13px/19px var(--nios-font); text-decoration: none; cursor: pointer;
}
.contact-card__cta:hover { background: var(--nios-bg-panel); }

/* ---- Support strip (product CTA) ---- */
.contact-support-strip { padding-block: 0 32px; }
.contact-support-strip__inner { background: var(--nios-bg-panel); border-radius: 18px; padding: 24px 20px; text-align: center; }
.contact-support-strip__title { margin: 0 0 8px; font: 700 20px/28px var(--nios-font); color: #171717; }
.contact-support-strip__text { margin: 0 0 16px; font: 400 13px/20px var(--nios-font); color: #665f59; }
.contact-support-strip__cta { display: inline-flex; width: auto; padding-inline: 28px; }

@media (min-width: 768px) {
	.contact-topics { gap: 10px; }
	.contact-help__title { font-size: 30px; line-height: 38px; }
	.contact-form__row { flex-direction: row; }
	.contact-form__row .contact-field { flex: 1; min-width: 0; }
	.contact-form-card { padding: 24px; }
	.contact-cards { flex-direction: row; flex-wrap: wrap; }
	.contact-cards .contact-card { flex: 1 1 calc(50% - 8px); }
	.contact-cards .contact-card:last-child:not(.contact-card--note) { flex-basis: 100%; }
	.contact-support-strip__inner { padding: 30px; }
	.contact-support-strip__cta { width: auto; }
}

@media (min-width: 1200px) {
	.contact-help__grid { flex-direction: row; align-items: flex-start; }
	.contact-help__grid .contact-form-card { flex: 1 1 66%; }
	.contact-help__grid .contact-cards { flex: 1 1 34%; flex-direction: column; }
	.contact-help__grid .contact-cards .contact-card { flex-basis: auto; }
	.contact-support-strip__inner { display: flex; align-items: center; justify-content: space-between; text-align: right; gap: 24px; }
	.contact-support-strip__title { margin: 0; flex: 1; }
	.contact-support-strip__text { margin: 0; flex: 1; }
}

@media (min-width: 1600px) {
	.contact-card--note { display: block; }
}
