.ap-pub-wrap { max-width: 640px; margin: 30px auto; padding: 0 16px; font-family: 'Cairo', Tahoma, Arial, sans-serif; box-sizing: border-box; width: 100%; }
.ap-pub-wrap * { box-sizing: border-box; max-width: 100%; }
.ap-pub-card { background: #fff; border: 1px solid #ece9e2; border-radius: 14px; padding: 28px 30px; }
.ap-pub-head h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ap-pub-head p { font-size: 14px; color: #6b6a66; margin: 0 0 22px; }

.ap-pub-errors { background: #fcebeb; border: 1px solid #f09595; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.ap-pub-errors ul { margin: 0; padding-right: 18px; }
.ap-pub-errors li { color: #791f1f; font-size: 13.5px; margin-bottom: 4px; }

.ap-pub-form { display: flex; flex-direction: column; }
.ap-pub-label { font-size: 13.5px; font-weight: 700; color: #201f1c; display: block; margin: 16px 0 6px; }
.ap-pub-hint { font-size: 12px; color: #8a8a85; margin: 4px 0 0; }

.ap-pub-form input[type="text"],
.ap-pub-form input[type="email"],
.ap-pub-form input[type="number"],
.ap-pub-form select,
.ap-pub-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 14.5px;
	font-family: inherit;
	background: #fff;
}
.ap-pub-form textarea { resize: vertical; }
.ap-pub-form input:focus,
.ap-pub-form select:focus,
.ap-pub-form textarea:focus { outline: none; border-color: #2fa4a5; }

.ap-pub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ap-pub-count-row { display: flex; justify-content: space-between; font-size: 12px; color: #8a8a85; margin-top: 4px; }
.ap-pub-count-row.is-invalid span:first-child { color: #a32d2d; font-weight: 700; }

.ap-pub-upload { border: 1.5px dashed #ccc; border-radius: 10px; padding: 14px; text-align: center; }
.ap-pub-upload p { font-size: 12px; color: #8a8a85; margin: 8px 0 0; }
.ap-pub-upload input[type="file"] { width: 100%; font-size: 13px; }

.ap-pub-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #4a4a46; margin-top: 14px; line-height: 1.6; }
.ap-pub-check input { margin-top: 3px; }

.ap-pub-note { background: #e1f5ee; border-radius: 10px; padding: 12px 16px; margin-top: 18px; font-size: 12.5px; color: #085041; }

.ap-pub-submit {
	margin-top: 22px;
	background: #2fa4a5;
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 700;
	cursor: pointer;
}
.ap-pub-submit:hover { opacity: .92; }

.ap-pub-hp { position: absolute; left: -9999px; top: -9999px; }

.ap-pub-success { text-align: center; }
.ap-pub-success h2 { font-size: 22px; margin-bottom: 10px; }
.ap-pub-success p { font-size: 14.5px; color: #4a4a46; line-height: 1.8; }

.ap-pub-terms-box {
	background: #f7f6f2;
	border: 1px solid #ece9e2;
	border-radius: 10px;
	padding: 14px 18px;
	margin-top: 20px;
}
.ap-pub-terms-title { font-size: 13.5px; font-weight: 700; color: #201f1c; margin: 0 0 8px; }
.ap-pub-terms-box ul { margin: 0; padding-right: 18px; }
.ap-pub-terms-box li { font-size: 12.5px; color: #4a4a46; line-height: 1.9; }
.ap-pub-terms-box strong { color: #085041; }

.ap-pub-upload.has-file { border-color: #2fa4a5; background: #f3fbfa; }
.ap-pub-upload-status { font-size: 12.5px !important; color: #0f6e56 !important; font-weight: 700; margin-top: 6px !important; }

.ap-pub-error-msg {
	display: none;
	color: #a32d2d;
	font-size: 12.5px !important;
	font-weight: 700;
	margin: 6px 0 0 !important;
}
.ap-pub-form input:invalid,
.ap-pub-form textarea:invalid { box-shadow: none; }

/* تقليل الحشو الجانبي على الشاشات الصغيرة عشان الفورم ياخد عرض أكبر */
@media (max-width: 600px) {
	.ap-pub-wrap { padding: 0 8px; margin: 16px auto; }
	.ap-pub-card { padding: 20px 16px; }
	.ap-pub-row { grid-template-columns: 1fr; gap: 0; }
}
