/* Partners page «همکار سایکو شوید» — Figma 702:3078. Dark invitation card on the right, the form card on the left. */
.wp-block-post-content > .scico-partner-apply { margin-block-start: 0; }

.scico-partner-apply { box-sizing: border-box; margin-block-start: 0; padding: 8px 96px 104px; background: #fff; scroll-margin-top: 24px; }
/* min-height keeps the cards from shrinking under the pattern when the short success message replaces the form. */
.scico-partner-apply__inner { display: flex; width: min(100%, var(--partner-apply-contentWidth, 1248px)); min-height: 360px; align-items: stretch; gap: 32px; margin-inline: auto; }

/* Invitation card: Figma 400px wide, title and handshake at the top, the sentence at the bottom over a faint pattern. */
.scico-partner-apply__info { position: relative; display: flex; box-sizing: border-box; flex: 0 0 400px; flex-direction: column; justify-content: space-between; gap: 48px; overflow: hidden; padding: 32px; border-radius: 8px; background: var(--partner-apply-infoBackground, #4c504a); color: var(--partner-apply-titleColor, #fff); }
/* Brand pattern (brand-pattern.css), in the frame of the old image. */
.scico-partner-apply__pattern { inset: auto 0 0; height: 239px; }
/* Along the panel's bottom edge: fades upwards only. */
.scico-partner-apply__pattern.scico-pattern--rows.scico-pattern--soft { -webkit-mask-image: linear-gradient(to top, #000 0, transparent 100%); mask-image: linear-gradient(to top, #000 0, transparent 100%); }
.scico-partner-apply__head { position: relative; display: flex; align-items: center; gap: 16px; }
.scico-partner-apply__icon { display: block; width: 44px; height: 44px; flex: 0 0 44px; }
.scico-partner-apply__title { margin: 0; color: var(--partner-apply-titleColor, #fff); font-size: var(--partner-apply-titleSize, 26px); font-weight: var(--partner-apply-titleWeight, 800); line-height: 1.4; text-align: right; }
.scico-partner-apply__text { position: relative; margin: 0; color: var(--partner-apply-textColor, #e2e2e2); font-size: var(--partner-apply-textSize, 16px); line-height: 1.8; text-align: right; }

/* Form card. */
.scico-partner-apply__card { display: flex; box-sizing: border-box; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; padding: 32px; border-radius: 8px; background: var(--partner-apply-formBackground, #f3efe5); }
.scico-partner-apply__form { display: flex; flex-direction: column; gap: 12px; }
.scico-partner-apply__row { display: flex; gap: 12px; }
.scico-partner-apply__field { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 6px; }
.scico-partner-apply__field input { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 20px; border: 1px solid var(--partner-apply-fieldBorder, #cecece); border-radius: 8px; background: var(--partner-apply-fieldBackground, #fff); color: #1a1a1a; font-family: inherit; font-size: var(--partner-apply-fieldSize, 15px); text-align: right; direction: rtl; transition: border-color 200ms ease, box-shadow 200ms ease; }
.scico-partner-apply__field input::placeholder { color: #4b4b4b; opacity: 1; }
.scico-partner-apply__field input:focus { border-color: var(--partner-apply-buttonBackground, #4c504a); outline: none; box-shadow: 0 0 0 3px rgb(76 80 74 / 18%); }
.scico-partner-apply__field.has-error input,
.scico-partner-apply__field input[aria-invalid="true"] { border-color: #b32d2e; }
.scico-partner-apply__error { margin: 0; color: #b32d2e; font-size: 13px; line-height: 1.6; text-align: right; }
.scico-partner-apply__error[hidden] { display: none; }

/* Upload area: the whole box is the file input's label; files can also be dropped on it. */
.scico-partner-apply__upload label { display: flex; box-sizing: border-box; min-height: 84px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 24px; border: 1px dashed #fff; border-radius: 8px; background: rgb(255 255 255 / 80%); color: #4b4b4b; text-align: center; cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease; }
.scico-partner-apply__upload-main { display: inline-flex; align-items: center; gap: 8px; font-size: var(--partner-apply-fieldSize, 15px); line-height: 1.5; }
.scico-partner-apply__upload-main img { display: block; flex: 0 0 auto; }
/* Figma #8c8c8c reads poorly on the light box; #767676 keeps the quiet look at 4.5:1. */
.scico-partner-apply__upload-help { color: #767676; font-size: 12px; line-height: 1.5; }
.scico-partner-apply__upload.has-file label { border-style: solid; border-color: var(--partner-apply-buttonBackground, #4c504a); }
.scico-partner-apply__upload.is-dragover label { border-color: var(--partner-apply-buttonBackground, #4c504a); background: #fff; }
.scico-partner-apply__upload.has-error label { border-color: #b32d2e; }
.scico-partner-apply__upload:has(input:focus-visible) label { outline: 2px solid var(--partner-apply-buttonBackground, #4c504a); outline-offset: 2px; }
.scico-partner-apply__upload .scico-partner-apply__error { margin-top: 6px; }

.scico-partner-apply__submit { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 24px; border: 0; border-radius: 8px; background: var(--partner-apply-buttonBackground, #4c504a); color: #fff; font-family: inherit; font-size: var(--partner-apply-buttonSize, 16px); font-weight: 700; cursor: pointer; transition: background-color 200ms ease, opacity 200ms ease; }
.scico-partner-apply__submit:focus-visible { outline: 2px solid var(--partner-apply-buttonBackground, #4c504a); outline-offset: 3px; }
.scico-partner-apply__submit[disabled] { cursor: progress; opacity: .7; }

.scico-partner-apply__summary { padding: 12px 16px; border-radius: 8px; border-inline-start: 3px solid #b32d2e; background: #fdeeee; color: #8a1f1f; font-size: 14px; line-height: 1.7; text-align: right; }
.scico-partner-apply__summary:focus { outline: none; }

.scico-partner-apply__success { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #1a1a1a; font-size: var(--partner-apply-textSize, 16px); line-height: 1.8; text-align: right; }
.scico-partner-apply__success:focus { outline: none; }
.scico-partner-apply__success p { margin: 0; }
.scico-partner-apply__success-title { font-size: 20px; font-weight: 800; }
.scico-partner-apply__again { margin-top: 8px; color: var(--partner-apply-buttonBackground, #4c504a); font-weight: 600; }

/* Layout «photo» — contact page «فرم‌های درخواست», Figma 702:3068: a 400px photo beside the form card (right or left),
   the card headed «موضوع درخواست: …», the topic list as the first field. */
.scico-partner-apply__heading { width: min(100%, var(--partner-apply-contentWidth, 1248px)); margin: 0 auto 40px; color: #000; font-size: 32px; font-weight: 800; line-height: 1.4; text-align: right; }
.scico-partner-apply.is-photo .scico-partner-apply__inner { min-height: 0; gap: 20px; }
.scico-partner-apply__photo { position: relative; overflow: hidden; flex: 0 0 400px; min-height: 360px; border-radius: 8px; background: #eceae5; }
.scico-partner-apply__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.scico-partner-apply.is-photo-left .scico-partner-apply__photo { order: 2; }
.scico-partner-apply.is-photo .scico-partner-apply__card { justify-content: flex-start; gap: 16px; padding: 20px; }
.scico-partner-apply__topic { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; color: #4b4b4b; font-size: 22px; font-weight: 800; line-height: 1.5; text-align: right; }
.scico-partner-apply__topic img { display: block; flex: 0 0 24px; width: 24px; height: 24px; }
/* Figma draws city-02 flipped (rotate -180° and mirrored), i.e. upside down from the file. */
.scico-partner-apply__topic img[src$="/topic-service.svg"] { transform: scaleY(-1); }
/* Figma #808080 16 SemiBold; #767676 keeps 4.5:1. */
.scico-partner-apply__topic-prefix { color: #767676; font-size: 15px; font-weight: 600; }
.scico-partner-apply__select select { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 20px 0 52px; border: 1px solid var(--partner-apply-fieldBorder, #cecece); border-radius: 8px; background: var(--partner-apply-fieldBackground, #fff) url("../images/partner-apply/select-arrow.svg") no-repeat left 22px center; color: #1a1a1a; font-family: inherit; font-size: calc(var(--partner-apply-fieldSize, 15px) + 1px); font-weight: 600; text-align: right; direction: rtl; appearance: none; cursor: pointer; transition: border-color 200ms ease, box-shadow 200ms ease; }
.scico-partner-apply__select select:focus { border-color: var(--partner-apply-buttonBackground, #4c504a); outline: none; box-shadow: 0 0 0 3px rgb(76 80 74 / 18%); }
.scico-partner-apply.is-photo .scico-partner-apply__upload label { border-color: #cfcfcf; }

/* Editor notice when the forms plugin is not active. */
.scico-partner-apply__notice { margin: 0; padding: 24px; border: 1px dashed #c8c8c8; border-radius: 8px; background: #fafafa; color: #4c504a; text-align: right; direction: rtl; }

@media (hover: hover) {
	.scico-partner-apply__submit:not([disabled]):hover { background: color-mix(in srgb, var(--partner-apply-buttonBackground, #4c504a) 85%, #000); }
	.scico-partner-apply__upload label:hover { border-color: var(--partner-apply-buttonBackground, #4c504a); background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
	.scico-partner-apply__select select,
	.scico-partner-apply__field input,
	.scico-partner-apply__upload label,
	.scico-partner-apply__submit { transition: none; }
}

@media (max-width: 1100px) {
	.scico-partner-apply { padding: 0 32px 88px; }
	.scico-partner-apply__inner { gap: 20px; }
	.scico-partner-apply__info { flex-basis: 320px; padding: 28px; }
	.scico-partner-apply__card { padding: 28px; }
	.scico-partner-apply__title { font-size: min(var(--partner-apply-titleSize, 26px), 24px); }
	.scico-partner-apply__photo { flex-basis: 300px; }
	.scico-partner-apply__heading { font-size: 28px; }
}

/* Stacked: the invitation on top, the form under it. */
@media (max-width: 860px) {
	.scico-partner-apply__inner { min-height: 0; flex-direction: column; }
	.scico-partner-apply__info { flex: 0 0 auto; gap: 24px; }
	.scico-partner-apply__pattern { height: 180px; }
	/* The photo becomes a short band above the form. */
	.scico-partner-apply__photo { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 7; }
	.scico-partner-apply.is-photo-left .scico-partner-apply__photo { order: 0; }
}

@media (max-width: 600px) {
	.scico-partner-apply { padding: 0 16px 64px; }
	.scico-partner-apply__info,
	.scico-partner-apply__card { padding: 20px; }
	.scico-partner-apply__icon { width: 38px; height: 38px; flex-basis: 38px; }
	.scico-partner-apply__title { font-size: min(var(--partner-apply-titleSize, 26px), 22px); }
	.scico-partner-apply__text { font-size: min(var(--partner-apply-textSize, 16px), 15px); }
	.scico-partner-apply__row { flex-direction: column; }
	.scico-partner-apply__heading { margin-bottom: 24px; font-size: 24px; }
	.scico-partner-apply.is-photo .scico-partner-apply__card { padding: 16px; }
	.scico-partner-apply__topic { font-size: 19px; }
	.scico-partner-apply__field input,
	.scico-partner-apply__submit { height: 52px; }
}
