/**
 * Al-Ansar Redesign — Footer Component
 * مصدر: html/index.html سطور 720-794 + 1313-1382 (انظر components/footer.md)
 *
 * @since Redesign 1.0
 */

#ar-site-footer{
	background:var(--ar-emerald-900); color:rgba(255,255,255,.68); position:relative; overflow:hidden;
	padding-top:100px;
	font-family:var(--ar-font-body);
}
#ar-site-footer .ar-footer-pattern{
	position:absolute; inset:0; z-index:0; pointer-events:none;
	background-image:url('../../images/redesign/pattern-b-white.svg');
	background-repeat:no-repeat; background-position:center top; background-size:cover; opacity:.03;
	-webkit-mask-image:linear-gradient(to bottom, #000 0%, transparent 100%);
	mask-image:linear-gradient(to bottom, #000 0%, transparent 100%);
}
#ar-site-footer .ar-wrap-wide{ position:relative; z-index:1; }

.ar-footer-grid{
	display:grid; grid-template-columns:1.15fr .8fr .85fr .95fr; gap:44px; position:relative; z-index:1;
	padding-bottom:64px; border-bottom:1px solid rgba(255,255,255,.12); align-items:start;
}
.ar-footer-recruit-col{ display:flex; }

.ar-footer-brand .ar-brandmark{ display:inline-flex; align-items:center; }
.ar-footer-brand .ar-brandmark img{ height:72px; width:auto; max-width:220px; }
.ar-footer-brand p{
	margin-top:22px; font-size:15px; line-height:1.9; max-width:420px; color:rgba(255,255,255,.62);
	font-family:var(--ar-font-body);
}
.ar-footer-sponsors{
	margin-top: 24px;
	max-width: 420px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	backdrop-filter: none;
	overflow: hidden;
}
.ar-footer-sponsors > span{
	font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.4);
	display:block; margin-bottom:14px; padding-inline: 0;
}
.ar-sponsors-marquee{
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ar-sponsors-track{
	display: flex;
	width: max-content;
	align-items: center;
	animation: ar-footer-sponsors-marquee 28s linear infinite;
	will-change: transform;
}
.ar-sponsors-marquee:hover .ar-sponsors-track{
	animation-play-state: paused;
}
.ar-sponsor-group{
	display: flex;
	align-items: center;
	gap: 16px;
	padding-inline: 5px;
	flex-shrink: 0;
}
.ar-sponsor-item{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	width: 74px;
	flex: 0 0 auto;
}
.ar-sponsor-item img{
	display: block;
	width: 100%;
	height: 100%;
	max-width: 74px;
	max-height: 26px;
	object-fit: contain;
	object-position: center;
	/* logos → brand gold #CBBA9C */
	filter: brightness(0) saturate(100%) invert(84%) sepia(14%) saturate(498%) hue-rotate(358deg) brightness(95%) contrast(88%);
	opacity: .95;
	transition: opacity .3s var(--ar-ease), filter .3s var(--ar-ease);
}
.ar-sponsor-item:hover img{
	opacity: 1;
	filter: brightness(0) invert(1);
}
.ar-sponsor-item span{
	font-size:11px; font-weight:700; color:#CBBA9C; letter-spacing:.04em;
}
@keyframes ar-footer-sponsors-marquee{
	from{ transform: translateX(0); }
	to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
	.ar-sponsors-track{ animation: none; }
	.ar-sponsors-marquee{
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

#ar-site-footer h4{
	font-family:var(--ar-font-body); color:#fff; font-size:15px; font-weight:700; margin-bottom:26px;
}
.ar-flinks{ display:flex; flex-direction:column; gap:16px; }
.ar-flinks-link{ font-size:14.5px; color:rgba(255,255,255,.6); transition:color .3s var(--ar-ease); }
.ar-flinks-link:hover{ color:var(--ar-gold-300); }

.ar-fcontact{ display:flex; flex-direction:column; gap:16px; margin-bottom:30px; }
.ar-fcontact div{ font-size:14.5px; color:rgba(255,255,255,.65); }
.ar-fcontact div b{
	display:block; font-size:11.5px; color:rgba(255,255,255,.4); font-weight:400; margin-bottom:4px;
}
.ar-fcontact .ar-ltr,
.ar-ltr{
	direction:ltr; unicode-bidi:isolate; display:inline-block;
}
.ar-fsocial{ display:flex; gap:12px; flex-wrap:wrap; }
.ar-fsocial a{
	width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.2);
	display:flex; align-items:center; justify-content:center;
	transition:background .3s var(--ar-ease), border-color .3s var(--ar-ease);
}
.ar-fsocial a:hover{ background:var(--ar-gold-500); border-color:var(--ar-gold-500); }
.ar-fsocial svg{ width:15px; height:15px; }

/* بطاقة التوظيف */
.ar-footer-recruit{
	position:relative; overflow:hidden; padding:26px; width:100%;
	background:rgba(255,255,255,.045); border:1px solid rgba(203,186,156,.3); border-radius:20px;
	backdrop-filter:blur(4px);
}
.ar-fr-badge{
	position:relative; z-index:1; display:inline-flex; align-items:center; gap:6px;
	font-size:11.5px; font-weight:700; color:var(--ar-gold-300); background:rgba(203,186,156,.12);
	padding:5px 12px; border-radius:100px; margin-bottom:14px;
}
.ar-footer-recruit h5{
	position:relative; z-index:1; color:#fff; font-size:19px; font-weight:800; margin-bottom:8px;
	font-family:var(--ar-font-heading);
}
.ar-footer-recruit p{
	position:relative; z-index:1; font-size:12.5px; line-height:1.75; color:rgba(255,255,255,.55);
	margin-bottom:16px; max-width:280px;
}
.ar-fr-btn{
	position:relative; z-index:1; display:inline-flex; align-items:center; gap:8px;
	background:var(--ar-gold-300); color:var(--ar-emerald-900); font-size:13px; font-weight:800;
	padding:11px 20px; border-radius:100px; border:none; cursor:pointer;
	font-family:var(--ar-font-body);
	transition:transform .3s var(--ar-ease), box-shadow .3s var(--ar-ease);
}
.ar-fr-btn:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -12px rgba(0,0,0,.45); }
.ar-fr-btn svg{ width:15px; height:15px; transition:transform .3s var(--ar-ease); }
.ar-fr-btn:hover svg{ transform:translateX(-3px); }

.ar-footer-bottom{
	display:flex; justify-content:space-between; align-items:center; padding-block:30px;
	font-size:13px; color:rgba(255,255,255,.4); position:relative; z-index:1; flex-wrap:wrap; gap:12px;
}
.ar-footer-bottom a{ color:rgba(255,255,255,.4); transition:color .3s var(--ar-ease); }
.ar-footer-bottom a:hover{ color:#fff; }
.ar-footer-bottom .ar-fsocial{ margin:0; }

/* ودجات الفوتر (المظهر ← ودجات) */
.ar-footer-widget{ margin-bottom:0; }
.ar-footer-widget-title,
#ar-site-footer .ar-footer-widget .widget-title{
	font-family:var(--ar-font-body); color:#fff; font-size:15px; font-weight:700; margin-bottom:26px;
}
#ar-site-footer .ar-footer-widget p,
#ar-site-footer .ar-footer-widget .textwidget{
	font-size:14.5px; line-height:1.9; color:rgba(255,255,255,.65);
}
#ar-site-footer .ar-footer-widget a{ color:rgba(255,255,255,.6); transition:color .3s var(--ar-ease); }
#ar-site-footer .ar-footer-widget a:hover{ color:var(--ar-gold-300); }
#ar-site-footer .ar-footer-widget ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
#ar-site-footer .ar-footer-widget ul a{ font-size:14.5px; }
#ar-site-footer .ar-footer-widget img{ max-width:100%; height:auto; }

.ar-footer-bottom-widgets{ width:100%; }
.ar-footer-bottom-widgets .ar-footer-widget,
.ar-footer-bottom-widgets .pt-widget{ margin:0; }
.ar-footer-bottom-widgets ul.menu{
	display:flex; gap:24px; flex-wrap:wrap; list-style:none; margin:0; padding:0;
}
.ar-footer-bottom-widgets ul.menu a{ font-size:13px; color:rgba(255,255,255,.4); }
.ar-footer-bottom-widgets ul.menu a:hover{ color:#fff; }

.ar-footer-legacy-contents{
	position:relative; z-index:1; padding-bottom:48px; margin-bottom:48px;
	border-bottom:1px solid rgba(255,255,255,.12);
}
.ar-footer-legacy-contents .pt-widget{ margin-bottom:24px; }
.ar-footer-legacy-contents .pt-widget:last-child{ margin-bottom:0; }

/* ===== وضع Builder: footer_contents (lm-gutenberg) بالتصميم الجديد ===== */
.ar-footer-mode-builder .ar-footer-builder{
	padding-bottom:64px; border-bottom:1px solid rgba(255,255,255,.12);
}
.ar-footer-mode-builder .ar-footer-widget-slot{ width:100%; }
.ar-footer-mode-builder .ar-footer-grid{
	display:block; border-bottom:none; padding-bottom:0; grid-template-columns:none;
}

/* إعادة ضبط lm-section داخل الفوتر */
#ar-site-footer .lm-section-root{
	background:transparent !important; padding:0 !important; margin:0 !important;
}
#ar-site-footer .lm-section-content,
#ar-site-footer .lm-section-content.container{
	max-width:100% !important; width:100% !important; padding:0 !important; margin:0 !important;
}
.ar-footer-builder .lm-section-columns{
	display:grid !important;
	grid-template-columns:1.2fr .85fr 1fr !important;
	gap:44px !important; align-items:start !important;
}
.ar-footer-builder .lm-column-root{
	grid-column:span 1 !important; width:100% !important; max-width:100% !important;
}
#ar-site-footer .ar-footer-builder .lm-column-container,
#ar-site-footer .ar-footer-builder .lm-column-content{ background:transparent !important; padding:0 !important; }

/*
 * عناوين lm-blocks — لا نفرض حجم/لون بـ !important
 * حتى تُحترم إعدادات البلوك (مثل ذهب الرعاة #efbe15)
 */
#ar-site-footer .lm-heading-title-con{
	color:#fff; font-family:var(--ar-font-body);
	font-weight:700; font-size:18px; line-height:1.45;
	margin:0 0 14px; display:block;
}
#ar-site-footer .lm-heading-title-con span{ color:inherit; }

/* عمود الهوية: شعار + اسم + نبذة + رعاة */
#ar-site-footer .ar-footer-builder .lm-column-root.col-span-4 .lm-heading-title-con:nth-of-type(1){
	font-size:20px !important; font-weight:800 !important; color:#fff !important; margin:8px 0 14px !important;
}
#ar-site-footer .ar-footer-builder .lm-column-root.col-span-4 .lm-heading-title-con:nth-of-type(2){
	font-size:15px !important; font-weight:600 !important; color:rgba(255,255,255,.78) !important;
	line-height:1.7 !important; margin:0 0 10px !important; font-family:var(--ar-font-heading) !important;
}
#ar-site-footer .ar-footer-builder .lm-column-root.col-span-4 .lm-heading-title-con:nth-of-type(3){
	font-size:13px !important; font-weight:700 !important; letter-spacing:.06em;
	color:var(--ar-gold-300) !important; margin:28px 0 18px !important;
}

#ar-site-footer .lm-text-box,
#ar-site-footer .lm-text-box p{
	color:rgba(255,255,255,.55); font-size:14.5px; line-height:1.9;
	font-family:var(--ar-font-body); margin:0 0 8px; max-width:340px;
}

/* شعار النادي (أول صورة) */
.ar-footer-builder .lm-column-root.col-span-4 > .lm-column-container > .lm-column-content > .lm-block-image:first-child,
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:first-of-type{
	display:block; margin:0 0 4px;
}
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:first-of-type img,
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:first-of-type .lm-block-img{
	max-height:48px; width:auto !important; height:auto !important; opacity:1;
}

/* شعارات الرعاة — صف مرن بعد عنوان الرعاة */
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content{
	display:flex; flex-wrap:wrap; align-items:center; gap:0;
}
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image,
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-heading-title-con,
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-text-box{
	flex:0 0 100%; width:100%;
}
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:not(:first-of-type){
	flex:0 0 auto; width:auto; display:inline-flex; align-items:center;
	margin:0 0 14px; padding-inline-end:22px;
}
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:not(:first-of-type) img,
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:not(:first-of-type) .lm-block-img{
	max-height:28px; width:auto !important; height:auto !important; opacity:.88;
	transition:opacity .3s var(--ar-ease);
}
.ar-footer-builder .lm-column-root.col-span-4 .lm-column-content > .lm-block-image:not(:first-of-type):hover img{
	opacity:1;
}

/* قوائم التنقل داخل الفوتر */
.ar-footer-builder .menu,
.ar-footer-builder ul.menu{
	list-style:none !important; margin:0 !important; padding:0 !important;
	display:flex !important; flex-direction:column !important; gap:16px !important;
}
.ar-footer-builder .menu a,
.ar-footer-builder .menu li a{
	color:rgba(255,255,255,.6) !important; font-size:14.5px !important; font-weight:700 !important;
	text-decoration:none !important; transition:color .3s var(--ar-ease) !important;
	background:none !important; border:none !important;
}
.ar-footer-builder .menu a:hover,
.ar-footer-builder .menu li:hover > a{ color:var(--ar-gold-300) !important; }
.ar-footer-builder .menu li:before,
.ar-footer-builder .menu li:after{ display:none !important; content:none !important; }
.ar-footer-builder .menu .sub-menu{
	margin-top:10px !important; margin-inline-start:12px !important; gap:12px !important;
}
.ar-footer-builder .widget_nav_menu h4,
.ar-footer-builder .widget_nav_menu .widget-title{
	color:#fff; font-size:15px; font-weight:700; margin-bottom:26px;
}

/* عمود النموذج footer-form — بطاقة مثل التصميم الجديد */
#ar-site-footer .footer-form{
	background:rgba(255,255,255,.045); border:1px solid rgba(203,186,156,.3);
	border-radius:20px; padding:26px; box-sizing:border-box;
}
#ar-site-footer .footer-form .lm-column-container,
#ar-site-footer .footer-form .lm-column-content{ padding:0 !important; }
#ar-site-footer .wpcf7{ margin:0; }
#ar-site-footer .wpcf7-form label{
	display:block; color:rgba(255,255,255,.7); font-size:13px; font-weight:700; margin-bottom:8px;
}
#ar-site-footer .wpcf7-form p{ margin:0 0 16px; }
#ar-site-footer .wpcf7-form input[type="email"],
#ar-site-footer .wpcf7-form input[type="text"],
#ar-site-footer .wpcf7-form input[type="tel"],
#ar-site-footer .wpcf7-form textarea{
	background:rgba(255,255,255,.08) !important; border:1px solid rgba(255,255,255,.18) !important;
	color:#fff !important; border-radius:12px !important; padding:12px 14px !important;
	font-family:var(--ar-font-body) !important; width:100% !important; box-sizing:border-box !important;
}
#ar-site-footer .wpcf7-form input[type="email"]::placeholder,
#ar-site-footer .wpcf7-form textarea::placeholder{ color:rgba(255,255,255,.35); }
#ar-site-footer .wpcf7-form input[type="submit"],
#ar-site-footer .wpcf7-form .wpcf7-submit{
	background:var(--ar-gold-300) !important; color:var(--ar-emerald-900) !important;
	border:none !important; border-radius:100px !important; font-weight:800 !important;
	padding:12px 24px !important; cursor:pointer !important; width:100% !important;
	height:auto !important; font-family:var(--ar-font-body) !important;
	transition:transform .3s var(--ar-ease), box-shadow .3s var(--ar-ease) !important;
}
#ar-site-footer .wpcf7-form input[type="submit"]:hover,
#ar-site-footer .wpcf7-form .wpcf7-submit:hover{
	transform:translateY(-2px); box-shadow:0 12px 24px -12px rgba(0,0,0,.45);
}

/* الشريط السفلي — footer_copy_rights */
.ar-footer-bottom-widgets{
	width:100%; padding-block:30px; border-top:none;
}
.ar-footer-bottom-widgets .ar-footer-widget-slot,
.ar-footer-bottom-widgets .lm-section-root,
.ar-footer-bottom-widgets .lm-section-content{
	background:transparent !important; padding:0 !important; margin:0 !important;
}
.ar-footer-bottom-widgets .lm-section-columns{
	display:flex !important; justify-content:space-between !important; align-items:center !important;
	flex-wrap:nowrap !important; gap:24px !important; width:100% !important;
	grid-template-columns:none !important;
}
.ar-footer-bottom-widgets .lm-column-root{
	flex:1 1 50% !important; width:auto !important; max-width:50% !important;
	grid-column:auto !important;
}
.ar-footer-bottom-widgets .lm-column-root .lm-column-container,
.ar-footer-bottom-widgets .lm-column-root .lm-column-content{
	background:transparent !important; padding:0 !important;
}
/* عمود حقوق النشر — يمين في RTL */
.ar-footer-bottom-widgets .lm-column-root.col-span-6:first-child .lm-column-content{
	align-items:flex-start !important;
}
/* عمود السوشيال — يسار في RTL */
.ar-footer-bottom-widgets .lm-column-root.col-span-6:last-child .lm-column-content{
	align-items:flex-end !important;
}
.ar-footer-bottom-widgets .lm-heading-title-con,
.ar-footer-bottom-widgets .lm-text-box,
.ar-footer-bottom-widgets .lm-text-box p{
	color:rgba(255,255,255,.4) !important; font-size:13px !important; font-weight:400 !important;
	margin:0 !important; max-width:none !important; line-height:1.6 !important;
}
.ar-footer-bottom-widgets .pt_social_buttons,
.ar-footer-bottom-widgets .widget.pt_social_buttons{
	margin:0 !important; padding:0 !important; width:100%;
}
.ar-footer-bottom-widgets .social-list{
	display:flex !important; flex-wrap:wrap !important; gap:10px !important;
	list-style:none !important; margin:0 !important; padding:0 !important;
	justify-content:flex-end !important;
}
.ar-footer-bottom-widgets .social-list li{
	margin:0 !important; padding:0 !important; list-style:none !important; display:block !important;
}
.ar-footer-bottom-widgets .social-list a{
	position:relative !important; width:38px !important; height:38px !important;
	border-radius:50% !important; border:1px solid rgba(255,255,255,.2) !important;
	display:flex !important; align-items:center !important; justify-content:center !important;
	background:transparent !important;
	transition:background .3s var(--ar-ease), border-color .3s var(--ar-ease) !important;
}
.ar-footer-bottom-widgets .social-list a:hover{
	background:var(--ar-gold-500) !important; border-color:var(--ar-gold-500) !important;
}
.ar-footer-bottom-widgets .social-list img,
.ar-footer-bottom-widgets .social-list svg{
	position:static !important; transform:none !important;
	width:15px !important; height:15px !important; display:block !important;
	left:auto !important; top:auto !important;
}

/* إخفاء أنماط الثيم القديم داخل الفوتر الجديد */
#ar-site-footer .pt-widget{ margin:0 !important; padding:0 !important; background:transparent !important; }
#ar-site-footer .footer-section-bar,
#ar-site-footer .footer-row,
#ar-site-footer .footer-section-widgets{ all:unset !important; display:contents !important; }

@media (max-width:900px){
	.ar-footer-grid{ grid-template-columns:1fr; gap:44px; }
	.ar-footer-builder .lm-section-columns{ grid-template-columns:1fr !important; gap:44px !important; }
	.ar-footer-bottom-widgets .lm-section-columns{
		flex-direction:column !important; align-items:flex-start !important; flex-wrap:wrap !important;
	}
	.ar-footer-bottom-widgets .lm-column-root{
		flex:1 1 100% !important; max-width:100% !important; width:100% !important;
	}
	.ar-footer-bottom-widgets .lm-column-root .lm-column-content{ align-items:flex-start !important; }
	.ar-footer-bottom-widgets .social-list{ justify-content:flex-start !important; }
}

/* ===== Recruitment Modal (انظر components/recruit-modal.md) ===== */
.ar-modal-overlay{
	position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
	background:rgba(2,20,9,0); padding:20px;
	opacity:0; visibility:hidden; transition:opacity .28s ease-out, background .28s ease-out, visibility .28s;
}
.ar-modal-overlay.open{ opacity:1; visibility:visible; background:rgba(2,20,9,.6); }
.ar-modal-box{
	position:relative; overflow:hidden; width:100%; max-width:640px; max-height:92vh;
	background:#fff; border-radius:20px; border:1px solid rgba(203,186,156,.35);
	box-shadow:0 40px 90px -30px rgba(0,20,8,.5);
	transform:scale(.95); transition:transform .28s ease-out;
	padding:28px 28px 22px;
}
.ar-modal-overlay.open .ar-modal-box{ transform:scale(1); }
.ar-modal-pattern{
	position:absolute; top:0; inset-inline-end:0; width:160px; height:160px; z-index:0;
	background-image:url('../../images/redesign/pattern-tile-tight.svg');
	background-repeat:repeat; background-size:70px 68px; opacity:.05;
	-webkit-mask-image:radial-gradient(circle at 100% 0%, #000 0%, transparent 70%);
	mask-image:radial-gradient(circle at 100% 0%, #000 0%, transparent 70%);
}
.ar-modal-close{
	position:absolute; top:14px; inset-inline-end:14px; z-index:2; width:32px; height:32px; border-radius:50%;
	display:flex; align-items:center; justify-content:center; background:var(--ar-paper-warm);
	color:var(--ar-iron-700); border:none; cursor:pointer;
	transition:background .3s var(--ar-ease), transform .3s var(--ar-ease);
}
.ar-modal-close:hover{ background:var(--ar-gold-500); color:#fff; transform:rotate(90deg); }
.ar-modal-close svg{ width:14px; height:14px; }
.ar-modal-header{ position:relative; z-index:1; margin-bottom:18px; padding-inline-end:36px; }
.ar-modal-header h3{
	font-size:clamp(18px,2.2vw,22px); color:var(--ar-iron-900); line-height:1.35; margin:0;
}
.ar-modal-header p{
	font-size:13px; line-height:1.6; color:var(--ar-iron-500); margin:6px 0 0; max-width:520px;
}

.ar-rform{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; }
.ar-rform .ar-full{ grid-column:1 / -1; }
.ar-rfield label{ display:block; font-size:12px; font-weight:700; color:var(--ar-iron-700); margin-bottom:5px; }
.ar-rfield input, .ar-rfield select, .ar-rfield textarea{
	width:100%; border:1.5px solid var(--ar-line); border-radius:10px; padding:9px 12px;
	font-family:inherit; font-size:13.5px; color:var(--ar-iron-900); background:var(--ar-paper-warm);
	transition:border-color .3s var(--ar-ease), background .3s var(--ar-ease);
}
.ar-rfield input:focus, .ar-rfield select:focus, .ar-rfield textarea:focus{
	outline:none; border-color:var(--ar-emerald-600); background:#fff;
}
.ar-rfield textarea{ resize:vertical; min-height:64px; max-height:90px; }

.ar-upload-zone{
	grid-column:1 / -1; border:1.5px dashed rgba(171,150,113,.55); border-radius:12px;
	padding:14px 16px; text-align:center; background:var(--ar-paper-warm); cursor:pointer;
	transition:background .3s var(--ar-ease), border-color .3s var(--ar-ease);
}
.ar-upload-zone:hover, .ar-upload-zone.drag{ background:rgba(171,150,113,.08); border-color:var(--ar-gold-500); }
.ar-upload-zone svg{ width:26px; height:26px; margin:0 auto 6px; stroke:var(--ar-gold-700); }
.ar-upload-zone .ar-u-title{ font-size:13px; font-weight:700; color:var(--ar-iron-700); }
.ar-upload-zone .ar-u-sub{ font-size:12px; color:var(--ar-iron-500); margin-top:2px; }
.ar-upload-zone .ar-u-formats{ font-size:11px; color:var(--ar-iron-300); margin-top:4px; letter-spacing:.03em; }
.ar-upload-zone input[type=file]{ display:none; }
.ar-upload-zone .ar-u-filename{ margin-top:6px; font-size:12.5px; font-weight:700; color:var(--ar-emerald-700); }

.ar-rform-actions{
	grid-column:1 / -1; display:flex; align-items:center; gap:12px; margin-top:2px; flex-wrap:wrap;
}
.ar-rform-actions .ar-btn{ padding:12px 24px; font-size:14px; border:none !important; }
.ar-rform-actions .ar-btn-primary{ border:none !important; outline:none; }
.ar-btn-cancel{
	font-size:13px; font-weight:700; color:var(--ar-iron-500); padding:10px 6px;
	background:none; border:none; cursor:pointer; font-family:var(--ar-font-body);
	transition:color .3s var(--ar-ease);
}
.ar-btn-cancel:hover{ color:var(--ar-iron-900); }
.ar-rform-note{ grid-column:1 / -1; font-size:11.5px; color:var(--ar-iron-500); line-height:1.55; margin:0; }

.ar-rform-feedback{
	grid-column:1 / -1; padding:10px 14px; border-radius:10px; font-size:13px; font-weight:600;
}
.ar-rform-feedback.is-success{ background:#e8f5ee; color:#1a6b42; border:1px solid #b8e0c8; }
.ar-rform-feedback.is-error{ background:#fdecea; color:#9b2c2c; border:1px solid #f5c6c6; }

/* Desktop: fit without scroll; mobile keeps soft scroll if needed */
@media (min-width:641px){
	.ar-modal-box{ overflow-y:hidden; }
}
@media (max-width:640px){
	.ar-modal-box{ padding:24px 18px 20px; border-radius:18px; max-height:90vh; overflow-y:auto; }
	.ar-rform{ grid-template-columns:1fr; }
}
