/**
 * «تماس با ما» page styles.
 * Loaded only on page-templates/contact.php. Uses the site's tokens so the
 * page matches the rest of the theme.
 */

/* =========================================================================
   Hero band
   ========================================================================= */
.apc-contact-hero {
	background:
		radial-gradient(900px 320px at 88% 0%, rgba(242, 169, 0, .18), transparent 58%),
		linear-gradient(135deg, var(--apc-primary), #08243d);
	color: #fff;
	padding-block: 22px 40px;
}

.apc-contact-hero__inner {
	max-width: 1400px;
}

.apc-contact-hero .apc-breadcrumbs {
	margin-block: 0 14px;
	color: rgba(255, 255, 255, .68);
}

.apc-contact-hero .apc-breadcrumbs a { color: rgba(255, 255, 255, .85); }
.apc-contact-hero .apc-breadcrumbs .current { color: #fff; }

.apc-contact-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .3);
	font-size: 13px;
	font-weight: 600;
}

.apc-contact-hero__kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--apc-accent);
}

.apc-contact-hero__title {
	font-size: clamp(24px, 3vw, 36px);
	margin: 0 0 10px;
	color: #fff;
}

.apc-contact-hero__sub {
	margin: 0;
	max-width: 68ch;
	font-size: 15px;
	line-height: 1.95;
	color: rgba(255, 255, 255, .85);
}

/* =========================================================================
   Main two-column block
   ========================================================================= */
.apc-contact-main {
	padding-block: 30px 10px;
}

.apc-contact-grid {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 26px;
	align-items: start;
}

/* ---------- channel column ---------- */
.apc-contact-info,
.apc-contact-form-card {
	background: var(--apc-surface);
	border: 1px solid var(--apc-border);
	border-radius: 18px;
	box-shadow: var(--apc-shadow);
	padding: 26px 24px;
}

.apc-contact-info__title {
	font-size: 19px;
	margin: 0 0 6px;
	color: var(--apc-primary);
}

.apc-contact-info__desc {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--apc-text-muted);
}

.apc-contact-channels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.apc-channel {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--apc-border);
	border-radius: 14px;
	background: #fbfcfd;
	transition: border-color .15s ease, background .15s ease;
}

.apc-channel:hover {
	border-color: rgba(15, 76, 129, .28);
	background: #fff;
}

.apc-channel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(15, 76, 129, .08);
	color: var(--apc-primary);
	flex: 0 0 auto;
}

.apc-channel__icon--wa {
	background: rgba(37, 211, 102, .13);
	color: #128c4a;
}

.apc-channel__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.apc-channel__label {
	font-size: 12.5px;
	color: var(--apc-text-muted);
}

.apc-channel__value {
	font-size: 15px;
	font-weight: 700;
	color: var(--apc-text);
	word-break: break-word;
}

.apc-channel__value:hover { color: var(--apc-primary); }

.apc-channel__value--alt {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--apc-text-muted);
}

/* Address is text, not a link: no hover colour jump. */
.apc-channel__value--text { font-weight: 600; }
.apc-channel__value--text:hover { color: var(--apc-text); }

.apc-contact-hours {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 14px 0 0;
	padding: 10px 13px;
	border-radius: 12px;
	background: rgba(242, 169, 0, .12);
	border: 1px solid rgba(242, 169, 0, .3);
	font-size: 13px;
	font-weight: 600;
	color: #7a5300;
}

.apc-contact-hours__icon { display: inline-flex; color: #b47a00; }

.apc-contact-socials {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--apc-border);
}

.apc-contact-socials__label {
	display: block;
	font-size: 12.5px;
	color: var(--apc-text-muted);
	margin-bottom: 8px;
}

.apc-contact-socials__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.apc-contact-socials__list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--apc-border);
	background: #fff;
	color: var(--apc-primary);
	transition: background .15s, color .15s, border-color .15s;
}

.apc-contact-socials__list a:hover {
	background: var(--apc-primary);
	border-color: var(--apc-primary);
	color: #fff;
}

/* ---------- form card ---------- */
.apc-contact-form-card__title {
	font-size: 19px;
	margin: 0 0 6px;
	color: var(--apc-primary);
}

.apc-contact-form-card__desc {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--apc-text-muted);
}

.apc-contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.apc-contact-field { margin-bottom: 14px; }

.apc-contact-field__label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--apc-text);
	margin-bottom: 6px;
}

.apc-req { color: #d92d20; }
.apc-opt { font-weight: 400; color: var(--apc-text-muted); font-size: 12.5px; }

.apc-contact-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d8dee6;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 14.5px;
	color: var(--apc-text);
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.apc-contact-input::placeholder { color: #9aa4b2; }

.apc-contact-input:focus {
	outline: none;
	border-color: var(--apc-primary);
	box-shadow: 0 0 0 3px rgba(15, 76, 129, .14);
}

.apc-contact-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 13px center;
	padding-inline-end: 13px;
	padding-inline-start: 36px;
	cursor: pointer;
}

.apc-contact-textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.9;
}

/* error state */
.apc-contact-field.has-error .apc-contact-input {
	border-color: #d92d20;
	background: #fffbfa;
}

.apc-contact-field.has-error .apc-contact-input:focus {
	box-shadow: 0 0 0 3px rgba(217, 45, 32, .14);
}

.apc-contact-field__error {
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	color: #b42318;
}

.apc-contact-field__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.apc-contact-counter {
	margin-top: 6px;
	font-size: 12px;
	color: var(--apc-text-muted);
	white-space: nowrap;
}

.apc-contact-counter.is-near-limit { color: #b42318; font-weight: 700; }

/* form-level banner */
.apc-contact-banner {
	margin-bottom: 14px;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1px solid #fda29b;
	border-inline-start: 4px solid #d92d20;
	background: #fef3f2;
	color: #912018;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
}

.apc-contact-banner:focus { outline: 2px solid #d92d20; outline-offset: 2px; }

.apc-contact-submit {
	width: 100%;
	padding-block: 12px;
	font-size: 15.5px;
	margin-top: 4px;
}

.apc-contact-submit[aria-busy="true"] { opacity: .8; cursor: progress; }

.apc-contact-note {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--apc-text-muted);
	text-align: center;
	line-height: 1.9;
}

.apc-contact-privacy { display: block; font-size: 12px; color: #9aa4b2; }

/* ---------- success panel ---------- */
.apc-contact-success {
	text-align: center;
	padding: 26px 10px 12px;
}

.apc-contact-success:focus { outline: none; }

.apc-contact-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 999px;
	background: rgba(31, 160, 75, .12);
	color: #1fa04b;
	margin-bottom: 14px;
}

.apc-contact-success__title {
	font-size: 20px;
	margin: 0 0 8px;
	color: #14743a;
}

.apc-contact-success__text {
	margin: 0 auto 10px;
	max-width: 46ch;
	font-size: 14px;
	line-height: 1.95;
	color: var(--apc-text-muted);
}

.apc-contact-success__ref {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f2f7fb;
	border: 1px solid var(--apc-border);
	font-size: 13px;
	font-weight: 700;
	color: var(--apc-primary);
}

/* =========================================================================
   Quick help
   ========================================================================= */
.apc-contact-help {
	padding-block: 24px 50px;
}

.apc-contact-help__desc {
	margin: -8px 0 16px;
	font-size: 13.5px;
	color: var(--apc-text-muted);
}

.apc-contact-help__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.apc-contact-help__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 18px;
	background: var(--apc-surface);
	border: 1px solid var(--apc-border);
	border-radius: 16px;
	color: var(--apc-text);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.apc-contact-help__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 76, 129, .12);
	border-color: rgba(15, 76, 129, .3);
	text-decoration: none;
}

.apc-contact-help__card-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--apc-primary);
}

.apc-contact-help__card-text {
	font-size: 13px;
	line-height: 1.85;
	color: var(--apc-text-muted);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 992px) {
	.apc-contact-grid {
		grid-template-columns: 1fr;
	}
	.apc-contact-help__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 599px) {
	.apc-contact-hero {
		padding-block: 16px 30px;
	}
	.apc-contact-main {
		padding-block: 20px 6px;
	}
	.apc-contact-info,
	.apc-contact-form-card {
		padding: 20px 16px;
		border-radius: 16px;
	}
	.apc-contact-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.apc-contact-select {
		padding-inline-start: 34px;
	}
	.apc-contact-help {
		padding-block: 18px 36px;
	}
}
