/* Academy Core — paid consultation forms */
.acc-grid {
	--acc-ink: var(--ink, #0f1f3d);
	--acc-navy: var(--brand-primary, #1a3460);
	--acc-blue: #2f6bd8;
	--acc-muted: var(--muted, #687092);
	--acc-line: #d5dce8;
	--acc-red: #e11d48;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	align-items: start;
}
.acc-grid.is-single { grid-template-columns: minmax(0, 1180px); justify-content: center; }
.acc-choose { width: 100%; max-width: 860px; margin-inline: auto; }
.acc-card[hidden] { display: none; }

/* Type chooser */
.acc-choose { scroll-margin-top: 110px; }
.acc-choose__title { margin: 0 0 12px; font-family: var(--font-head, inherit); font-size: 18px; font-weight: 800; color: var(--acc-ink); text-align: center; }
.acc-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acc-switch__opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic txt" "ic price"; align-items: center; column-gap: 14px; row-gap: 6px; padding: 16px 18px; border-radius: 18px; border: 1.5px solid #dfe5ef; background: #fff; color: var(--acc-ink); text-decoration: none; box-shadow: 0 16px 34px -30px rgba(16, 38, 82, .5); transition: border-color .2s, box-shadow .2s, transform .2s; }
.acc-switch__opt:hover { border-color: #b8c7de; color: var(--acc-ink); transform: translateY(-2px); }
.acc-switch__opt:focus-visible { outline: 3px solid rgba(47, 107, 216, .35); outline-offset: 2px; }
.acc-switch__ic { grid-area: ic; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #e7effa; color: var(--acc-navy); transition: background .2s, color .2s; }
.acc-switch__txt { grid-area: txt; display: grid; gap: 2px; min-width: 0; }
.acc-switch__txt b { font-family: var(--font-head, inherit); font-size: 17px; font-weight: 800; line-height: 1.4; }
.acc-switch__txt small { color: var(--acc-muted); font-size: 13px; line-height: 1.6; }
.acc-switch__price { grid-area: price; font-weight: 700; font-size: 14px; color: var(--acc-blue); }
.acc-switch__tick { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #cfd8e6; color: transparent; transition: background .2s, border-color .2s; }
.acc-switch__opt.is-active { border-color: var(--acc-navy); box-shadow: 0 0 0 3px rgba(26, 52, 96, .12), 0 20px 40px -30px rgba(16, 38, 82, .6); }
.acc-switch__opt.is-active .acc-switch__ic { background: var(--acc-navy); color: #fff; }
.acc-switch__opt.is-active .acc-switch__tick { background: var(--acc-navy); border-color: var(--acc-navy); color: #fff; }

.acc-card {
	position: relative;
	padding: 34px 30px 30px;
	border-radius: 22px;
	border: 1px solid #dfe7f3;
	background: linear-gradient(180deg, #f2f7fe, #f8fbff 40%, #f3f8fe);
	box-shadow: 0 30px 60px -45px rgba(16, 38, 82, .45);
	scroll-margin-top: 110px;
}
.acc-card--academic { background: linear-gradient(180deg, #f8f6f1, #fbfaf7 40%, #f7f5f0); border-color: #ebe6dc; }

.acc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.acc-card__head h2 { margin: 0 0 8px; font-family: var(--font-head, inherit); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.3; color: var(--acc-ink); }
.acc-card__head p { margin: 0; color: var(--acc-muted); font-size: 16px; line-height: 1.8; }
.acc-card__badge { flex: none; width: 108px; height: 108px; display: grid; place-items: center; border-radius: 50%; background: #dceafb; color: var(--acc-navy); }
.acc-card--academic .acc-card__badge { background: #dbe7f7; }

.acc-error { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-weight: 600; }

.acc-fields { display: grid; gap: 14px; }
.acc-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 16px; }
.acc-row:has(textarea), .acc-row:has(.acc-drop) { align-items: start; }
.acc-label { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-head, inherit); font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--acc-ink); cursor: pointer; }
.acc-row:has(textarea) .acc-label, .acc-row:has(.acc-drop) .acc-label { padding-top: 10px; }
.acc-label .acc-ic { flex: none; color: var(--acc-blue); }
.acc-label small { font-weight: 500; color: var(--acc-ink); font-size: 15px; }
.acc-req { color: var(--acc-red); font-weight: 700; }

.acc-card input[type="text"],
.acc-card input[type="email"],
.acc-card select,
.acc-card textarea {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid var(--acc-line);
	border-radius: 6px;
	background: #fff;
	color: var(--acc-ink);
	font: inherit;
	font-size: 15.5px;
	line-height: 1.6;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.acc-card textarea { min-height: 100px; resize: vertical; }
.acc-card select { appearance: none; -webkit-appearance: none; padding-left: 40px; 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='%230f1f3d' stroke-width='2.4' 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: left 16px center; }
.acc-card select:invalid { color: #6b7280; }
.acc-card input::placeholder, .acc-card textarea::placeholder { color: #8a93a6; }
.acc-card input:focus, .acc-card select:focus, .acc-card textarea:focus { outline: 0; border-color: var(--acc-blue); box-shadow: 0 0 0 3px rgba(47, 107, 216, .15); }

.acc-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 90px; padding: 14px 16px; border: 1.5px dashed #b9c3d4; border-radius: 6px; background: rgba(255, 255, 255, .55); color: var(--acc-ink); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.acc-drop:hover, .acc-drop.is-over { border-color: var(--acc-blue); background: #fff; }
.acc-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.acc-drop .acc-ic { flex: none; color: var(--acc-navy); }
.acc-drop__text { display: grid; gap: 2px; }
.acc-drop__text b { font-size: 16px; font-weight: 600; }
.acc-drop__text small { color: var(--acc-muted); font-size: 13px; }
.acc-drop.has-file { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.acc-drop.has-error { border-color: var(--acc-red); background: #fff1f2; }

.acc-consent { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-family: var(--font-head, inherit); font-size: 16.5px; font-weight: 700; color: var(--acc-ink); cursor: pointer; }
.acc-consent .acc-ic { flex: none; color: var(--acc-blue); }
.acc-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--acc-navy); }
.acc-consent a { color: var(--acc-blue); text-decoration: none; }
.acc-consent a:hover { text-decoration: underline; }

.acc-pay { margin-top: 24px; padding-top: 22px; border-top: 1px solid #dfe5ef; }
.acc-pay__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--acc-muted); }
.acc-pay__price b { font-family: var(--font-head, inherit); font-size: 26px; font-weight: 800; color: var(--acc-ink); }
.acc-submit { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--acc-navy); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--acc-navy) 80%, transparent); transition: transform .2s, filter .2s; }
.acc-submit:hover { transform: translateY(-2px); filter: brightness(1.1); }
.acc-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.acc-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--acc-muted); font-size: 13.5px; line-height: 1.7; }
.acc-note .acc-ic { flex: none; margin-top: 3px; color: #16a34a; }

@media (max-width: 1100px) {
	/* Below this width the summary and payment go under the fields instead of beside them. */
	.acc-card form.checkout { grid-template-columns: minmax(0, 1fr) !important; }
	.acc-card #order_review { grid-column: 1 !important; grid-row: auto !important; position: static !important; }
}
@media (max-width: 600px) {
	.acc-switch { gap: 10px; }
	.acc-switch__opt { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ic" "txt" "price"; justify-items: center; text-align: center; padding: 14px 10px; }
	.acc-switch__ic { width: 46px; height: 46px; }
	.acc-switch__ic .acc-ic { width: 22px; height: 22px; }
	.acc-switch__txt b { font-size: 14.5px; }
	.acc-switch__txt small { display: none; }
	.acc-switch__tick { top: 8px; left: 8px; width: 20px; height: 20px; }
	.acc-card { padding: 24px 16px 20px; border-radius: 18px; }
	.acc-card__head { align-items: flex-start; }
	.acc-card__badge { width: 64px; height: 64px; }
	.acc-card__badge .acc-ic { width: 32px; height: 32px; }
	.acc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.acc-row:has(textarea) .acc-label, .acc-row:has(.acc-drop) .acc-label { padding-top: 0; }
	.acc-label { font-size: 15px; gap: 10px; }
	.acc-consent { font-size: 15px; }
}

/* Upload progress */
.acc-drop.is-busy { border-style: solid; border-color: var(--acc-blue); background: #fff; }
.acc-drop__bar { position: absolute; inset-inline: 14px; bottom: 10px; height: 4px; border-radius: 4px; background: #e3e9f3; overflow: hidden; }
.acc-drop__bar i { display: block; height: 100%; width: 0; background: var(--acc-blue); transition: width .2s; }

/* The WooCommerce checkout inside the consultation card */
.acc-card .woocommerce { margin: 0; }
.acc-card form.checkout { margin: 0; }
.acc-card #customer_details { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.acc-card .acc-fields { margin-bottom: 14px; }
.acc-card .acc-consent { margin-top: 20px; }
.acc-card .woocommerce-billing-fields > h3 { display: none; }
.acc-card .woocommerce-billing-fields__field-wrapper { display: block !important; }
.acc-card .woocommerce-billing-fields .form-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 16px; margin: 14px 0 0 !important; padding: 0 !important; }
.acc-card .woocommerce-billing-fields .form-row label { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-head, inherit); font-size: 16px; font-weight: 700; color: var(--acc-ink); }
.acc-card #billing_phone_field label::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--acc-blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat; }
.acc-card .woocommerce-billing-fields .form-row .required { color: var(--acc-red); text-decoration: none; border: 0; }
.acc-card .woocommerce-billing-fields input.input-text { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid var(--acc-line); border-radius: 6px; background: #fff; font: inherit; font-size: 15.5px; direction: ltr; text-align: right; }
.acc-card .woocommerce-billing-fields input.input-text:focus { outline: 0; border-color: var(--acc-blue); box-shadow: 0 0 0 3px rgba(47, 107, 216, .15); }
.acc-card .woocommerce-account-fields { margin-top: 14px; }
.acc-card #order_review { background: #fff; }
.acc-card #order_review::before { content: "ملخص الحجز والدفع" !important; }
.acc-card #place_order { width: 100%; min-height: 56px; border-radius: 999px !important; font-size: 17px !important; }
.acc-card .woocommerce-NoticeGroup, .acc-card .woocommerce-error { grid-column: 1 / -1; }
.acc-card .woocommerce-privacy-policy-text { font-size: 13px; color: var(--acc-muted); }
@media (max-width: 600px) {
	.acc-card .woocommerce-billing-fields .form-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.acc-card #order_review { padding: 18px !important; }
}
