/* Staff order form — Academic Apparel branded UX */

.aa-sf {
	--aa-sf-header: #0b1f3a;
	--aa-sf-ink: #122033;
	--aa-sf-muted: #5b6b7c;
	--aa-sf-line: #d7dee8;
	--aa-sf-card: #ffffff;
	--aa-sf-soft: #eef5fb;
	--aa-sf-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--aa-sf-sans: "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--aa-sf-sans);
	color: var(--aa-sf-ink);
	max-width: none;
	width: 100%;
	margin: 0;
	text-align: left;
}

/* Break out of theme/entry content max-width when nested */
.aa-institute-landing--staff,
.eb-blank-container .aa-institute-landing--staff,
.eb-blank-content-wrapper .aa-institute-landing--staff,
.entry-content .aa-institute-landing--staff {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-institutes .eb-blank-container:has(.aa-institute-landing--staff),
body.single-institutes .eb-blank-content-wrapper:has(.aa-institute-landing--staff) {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.aa-sf *,
.aa-sf *::before,
.aa-sf *::after {
	box-sizing: border-box;
}

.aa-sf-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px clamp(16px, 4vw, 48px);
	background: var(--aa-sf-header);
	color: #fff;
}

.aa-sf-top__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.aa-sf-top__back {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	color: #111 !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.aa-sf-top__back:hover {
	background: #f3f5f8;
}

.aa-sf-top__logo {
	max-height: 52px;
	width: auto;
	display: block;
	background: #fff;
	padding: 6px 10px;
	border-radius: 4px;
}

.aa-sf-top__name {
	font-weight: 700;
	font-size: 1.05rem;
}

.aa-sf-top__links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.aa-sf-top__links a {
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	opacity: 0.92;
}

.aa-sf-top__links a:hover {
	text-decoration: underline;
	opacity: 1;
}

.aa-sf-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: center;
	padding: 36px clamp(16px, 4vw, 48px);
	background-color: var(--aa-sf-header);
	background-image: none;
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}

.aa-sf--has-hero-image .aa-sf-hero {
	background-image: var(--aa-sf-hero-image);
}

.aa-sf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--aa-sf-header);
	opacity: var(--aa-sf-hero-overlay, 0.55);
	z-index: 0;
	pointer-events: none;
}

.aa-sf--has-hero-image .aa-sf-hero::before {
	/* Keep overlay colour from header setting when a photo is present */
	background: var(--aa-sf-header);
}

.aa-sf-hero__text {
	position: relative;
	z-index: 1;
	max-width: 52rem;
}

@supports (background: color-mix(in srgb, red, blue)) {
	.aa-sf:not(.aa-sf--has-hero-image) .aa-sf-hero {
		background: linear-gradient(135deg, var(--aa-sf-header) 0%, color-mix(in srgb, var(--aa-sf-header) 75%, #000) 100%);
	}
}

.aa-sf-hero h1 {
	font-family: var(--aa-sf-sans);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.2;
	margin: 0 0 8px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.aa-sf-hero p {
	margin: 0 0 12px;
	opacity: 0.95;
	color: #fff;
}

.aa-sf-hero__meta {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	display: grid;
	gap: 4px;
	font-size: 0.92rem;
	color: #fff;
}

.aa-sf-hero__instructions {
	margin-top: 10px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	font-size: 0.92rem;
}

.aa-sf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 22px;
	padding: 22px clamp(16px, 4vw, 48px) 0;
	align-items: start;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	box-sizing: border-box;
}

.aa-sf-main {
	min-width: 0;
}

.aa-sf-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.aa-sf-progress li {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef1f5;
	color: var(--aa-sf-muted);
}

.aa-sf-progress li.is-active,
.aa-sf-progress li.is-done {
	background: var(--aa-sf-header);
	color: #fff;
}

.aa-sf-card {
	background: var(--aa-sf-card);
	border: 1px solid var(--aa-sf-line);
	border-radius: 12px;
	padding: 22px 22px 16px;
	margin-bottom: 16px;
	box-shadow: 0 8px 24px rgba(18, 32, 51, 0.04);
}

.aa-sf-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.aa-sf-card__head h2 {
	margin: 0;
	font-size: 1.2rem;
}

.aa-sf-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--aa-sf-header);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	flex: 0 0 auto;
}

.aa-sf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.aa-sf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aa-sf-field label {
	font-weight: 600;
	font-size: 0.92rem;
}

.aa-sf-req {
	color: #c0392b;
}

.aa-sf-field input,
.aa-sf-field select,
.aa-sf-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--aa-sf-line);
	border-radius: 8px;
	font: inherit;
	font-size: 1rem;
	background: #fff;
}

.aa-sf-field input:focus,
.aa-sf-field select:focus,
.aa-sf-field textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--aa-sf-header) 35%, #fff);
	border-color: var(--aa-sf-header);
}

.aa-sf-help,
.aa-sf-muted {
	color: var(--aa-sf-muted);
	font-size: 0.92rem;
}

.aa-sf-nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.aa-sf-btn {
	appearance: none;
	border: 0;
	background: var(--aa-sf-header);
	color: #fff;
	font: inherit;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aa-sf-btn:hover {
	filter: brightness(1.08);
}

.aa-sf-btn--ghost {
	background: transparent;
	color: var(--aa-sf-header);
	border: 1px solid var(--aa-sf-line);
}

.aa-sf-btn--block {
	width: 100%;
	margin-top: 12px;
}

.aa-sf-summary {
	position: sticky;
	top: 16px;
	background: #fff;
	border: 1px solid var(--aa-sf-line);
	border-radius: 12px;
	padding: 18px;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: break-word;
}

.aa-sf-summary h2 {
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.aa-sf-summary__live {
	min-width: 0;
	margin-bottom: 14px;
}

.aa-sf-summary dl,
.aa-sf-summary__live dl {
	margin: 0 0 14px;
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	column-gap: 10px;
	row-gap: 8px;
	font-size: 0.9rem;
	width: 100%;
	max-width: 100%;
}

.aa-sf-summary__live dl {
	margin-bottom: 0;
}

.aa-sf-summary dt,
.aa-sf-summary__live dt {
	color: var(--aa-sf-muted);
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.aa-sf-summary dd,
.aa-sf-summary__live dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.aa-sf-info {
	background: var(--aa-sf-soft);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.88rem;
	color: var(--aa-sf-ink);
}

.aa-sf-review {
	background: #f7f9fc;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	min-width: 0;
	overflow-wrap: break-word;
}

.aa-sf-review dl {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	gap: 6px 10px;
	margin: 0;
	width: 100%;
}

.aa-sf-review dt {
	color: var(--aa-sf-muted);
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.aa-sf-review dd {
	margin: 0;
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.aa-sf-extra-hood {
	margin-top: 12px;
}

.aa-sf-extra-hood summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--aa-sf-header);
	margin-bottom: 10px;
}

.aa-sf-success,
.aa-sf-error {
	margin: 20px clamp(16px, 4vw, 48px);
	padding: 18px 20px;
	border-radius: 10px;
}

.aa-sf-success {
	background: #e9f7ef;
	border: 1px solid #b7e0c5;
}

.aa-sf-error {
	background: #fdecea;
	border: 1px solid #f0b4b4;
	color: #8a1f11;
}

.aa-sf-ref {
	font-size: 1.1rem;
}

.aa-sf-foot {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 28px;
	padding: 18px clamp(16px, 4vw, 48px) 0;
	border-top: 1px solid var(--aa-sf-line);
	font-size: 0.9rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.aa-sf-foot strong {
	display: block;
	margin-bottom: 4px;
}

.aa-sf-foot span {
	color: var(--aa-sf-muted);
}

.aa-sf-hp {
	position: absolute;
	left: -9999px;
}

.aa-sf-file-current {
	margin: 0;
	font-size: 0.85rem;
}

.aa-institute-landing--staff .aa-institute-landing__header {
	display: none;
}

.aa-institute-landing--staff .aa-institute-landing__flow {
	max-width: none;
	width: 100%;
	padding: 0;
}

@media (max-width: 900px) {
	.aa-sf-layout {
		grid-template-columns: 1fr;
	}

	.aa-sf-summary {
		position: static;
		order: -1;
	}

	.aa-sf-grid {
		grid-template-columns: 1fr;
	}

	.aa-sf-hero {
		grid-template-columns: 1fr;
	}

	.aa-sf-foot {
		grid-template-columns: 1fr;
	}

	.aa-sf-review dl {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) and (min-width: 901px) {
	.aa-sf-summary dl,
	.aa-sf-summary__live dl,
	.aa-sf-review dl {
		grid-template-columns: 1fr;
		row-gap: 2px;
	}

	.aa-sf-summary dd,
	.aa-sf-summary__live dd,
	.aa-sf-review dd {
		text-align: left;
		margin-bottom: 8px;
	}
}
