/* 
	User Submitted Posts - Sharyce Memorial
	Ultra-high specificity to override theme styles
*/

/* ========================================
   FORM CONTAINER
   ======================================== */

body div#user-submitted-posts {
	display: block;
	width: 100%;
	max-width: 800px;
	margin: 2rem auto;
	padding: 2.5rem;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

body div#user-submitted-posts * {
	box-sizing: border-box;
}

body div#user-submitted-posts form#usp_form {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* ========================================
   INTRO SECTION
   ======================================== */

body div#user-submitted-posts div.usp-intro {
	display: block;
	width: 100%;
	margin: 0 0 2rem 0;
	padding: 0 0 1.5rem 0;
	border-bottom: 1px solid #e9ecef;
}

body div#user-submitted-posts div.usp-intro h2 {
	display: block;
	margin: 0 0 1rem 0;
	padding: 0;
	font-size: 1.75rem;
	font-weight: 600;
	color: #212529;
	line-height: 1.3;
}

body div#user-submitted-posts div.usp-intro p {
	display: block;
	margin: 0 0 0.75rem 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #495057;
}

body div#user-submitted-posts div.usp-intro p:last-child {
	margin-bottom: 0;
}

body div#user-submitted-posts div.usp-intro p.usp-note {
	font-size: 0.875rem;
	color: #6c757d;
	font-style: italic;
}

/* ========================================
   FORM GROUPS
   ======================================== */

body div#user-submitted-posts div.usp-form-group {
	display: block;
	width: 100%;
	margin: 0 0 1.5rem 0;
	padding: 0;
	border: none;
}

body div#user-submitted-posts fieldset {
	display: block;
	width: 100%;
	margin: 0 0 1.5rem 0;
	padding: 0;
	border: none;
}

/* ========================================
   LABELS - Force block display
   ======================================== */

body div#user-submitted-posts div.usp-form-group label,
body div#user-submitted-posts fieldset label,
body div#user-submitted-posts label {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	margin: 0 0 0.5rem 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #343a40;
	line-height: 1.4;
}

body div#user-submitted-posts span.usp-optional {
	font-weight: 400;
	color: #6c757d;
	font-size: 0.875rem;
}

/* ========================================
   ALL INPUTS - Force full width block
   ======================================== */

body div#user-submitted-posts input[type="text"],
body div#user-submitted-posts input[type="email"],
body div#user-submitted-posts input[type="url"],
body div#user-submitted-posts input[type="tel"],
body div#user-submitted-posts input[type="number"],
body div#user-submitted-posts input[type="password"],
body div#user-submitted-posts input.usp-form-control,
body div#user-submitted-posts input.usp-input {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-image: none;
	border: 1px solid #ced4da;
	border-radius: 6px;
	box-shadow: none;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body div#user-submitted-posts input[type="text"]:focus,
body div#user-submitted-posts input[type="email"]:focus,
body div#user-submitted-posts input[type="url"]:focus,
body div#user-submitted-posts input.usp-form-control:focus,
body div#user-submitted-posts input.usp-input:focus {
	color: #212529;
	background-color: #fff;
	border-color: #17a2b8;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

body div#user-submitted-posts input::placeholder {
	color: #6c757d;
	opacity: 1;
}

/* ========================================
   TEXTAREA - Force full width block
   ======================================== */

body div#user-submitted-posts textarea,
body div#user-submitted-posts textarea.usp-form-control,
body div#user-submitted-posts textarea.usp-textarea {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	height: auto;
	min-height: 160px;
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-image: none;
	border: 1px solid #ced4da;
	border-radius: 6px;
	box-shadow: none;
	resize: vertical;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body div#user-submitted-posts textarea:focus {
	color: #212529;
	background-color: #fff;
	border-color: #17a2b8;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

body div#user-submitted-posts textarea::placeholder {
	color: #6c757d;
	opacity: 1;
}

/* ========================================
   SELECT
   ======================================== */

body div#user-submitted-posts select {
	display: block;
	float: none;
	clear: both;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 16px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body div#user-submitted-posts select:focus {
	border-color: #17a2b8;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* ========================================
   FILE UPLOAD SECTION
   ======================================== */

body div#user-submitted-posts div.usp-form-group.usp-images {
	margin-top: 1.5rem;
}

body div#user-submitted-posts div.usp-upload-area {
	display: block;
	width: 100%;
	padding: 1.5rem;
	background: #f8f9fa;
	border: 2px dashed #dee2e6;
	border-radius: 6px;
	text-align: center;
}

body div#user-submitted-posts div#usp-upload-message {
	display: block;
	margin: 0 0 1rem 0;
	font-size: 0.875rem;
	color: #6c757d;
}

body div#user-submitted-posts input[type="file"],
body div#user-submitted-posts input.usp-file-input {
	display: block;
	width: 100%;
	margin: 0.75rem 0;
	padding: 0.5rem;
	font-size: 0.9375rem;
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
}

body div#user-submitted-posts a#usp_add-another,
body div#user-submitted-posts a.usp-btn-link {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #138496;
	text-decoration: none;
	background: #fff;
	border: 1px solid #17a2b8;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
}

body div#user-submitted-posts a#usp_add-another:hover,
body div#user-submitted-posts a.usp-btn-link:hover {
	color: #fff;
	background: #17a2b8;
	text-decoration: none;
}

/* ========================================
   RECAPTCHA
   ======================================== */

body div#user-submitted-posts div.usp-form-group.usp-recaptcha {
	margin: 1.5rem 0;
}

/* ========================================
   CHECKBOX
   ======================================== */

body div#user-submitted-posts fieldset.usp-checkbox {
	display: flex;
	align-items: flex-start;
	padding: 1rem 0;
	margin: 1.5rem 0;
}

body div#user-submitted-posts fieldset.usp-checkbox input[type="checkbox"] {
	display: inline-block;
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	margin: 0.125rem 0.75rem 0 0;
	padding: 0;
	cursor: pointer;
	accent-color: #17a2b8;
}

body div#user-submitted-posts fieldset.usp-checkbox label {
	display: inline;
	width: auto;
	margin: 0;
	font-weight: 400;
	font-size: 0.9375rem;
	color: #495057;
	cursor: pointer;
}

/* ========================================
   FORM ACTIONS / BUTTONS
   ======================================== */

body div#user-submitted-posts div.usp-form-actions {
	display: block;
	width: 100%;
	margin: 2rem 0 0 0;
	padding: 1.5rem 0 0 0;
	border-top: 1px solid #e9ecef;
}

body div#user-submitted-posts div#usp-submit {
	display: block;
	width: 100%;
	margin: 2rem 0 0 0;
	padding: 1.5rem 0 0 0;
	border-top: 1px solid #e9ecef;
}

body div#user-submitted-posts input[type="submit"],
body div#user-submitted-posts input.usp-btn-primary,
body div#user-submitted-posts button.usp-btn-primary {
	display: block;
	width: 100%;
	margin: 0 0 0.75rem 0;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	color: #fff;
	background-color: #17a2b8;
	background-image: none;
	border: 1px solid #17a2b8;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body div#user-submitted-posts input[type="submit"]:hover,
body div#user-submitted-posts input.usp-btn-primary:hover {
	color: #fff;
	background-color: #138496;
	border-color: #117a8b;
}

body div#user-submitted-posts input[type="submit"]:focus,
body div#user-submitted-posts input.usp-btn-primary:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);
}

body div#user-submitted-posts button[type="reset"],
body div#user-submitted-posts button.usp-btn-secondary {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	color: #495057;
	background-color: #fff;
	background-image: none;
	border: 1px solid #ced4da;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body div#user-submitted-posts button[type="reset"]:hover,
body div#user-submitted-posts button.usp-btn-secondary:hover {
	color: #343a40;
	background-color: #e9ecef;
	border-color: #adb5bd;
}

body div#user-submitted-posts button[type="reset"]:focus,
body div#user-submitted-posts button.usp-btn-secondary:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* ========================================
   SUCCESS & ERROR MESSAGES
   ======================================== */

body div#user-submitted-posts div#usp-success-message {
	display: block;
	margin: 0 0 1.5rem 0;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	color: #155724;
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 6px;
}

body div#user-submitted-posts div.usp-error {
	color: #dc3545;
}

body div#user-submitted-posts div#usp-error-message {
	display: block;
	margin: 0 0 1.5rem 0;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
}

/* ========================================
   PARSLEY VALIDATION
   ======================================== */

body div#user-submitted-posts ul.parsley-errors-list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

body div#user-submitted-posts ul.parsley-errors-list.filled {
	display: block;
	margin: 0.5rem 0 0 0;
}

body div#user-submitted-posts ul.parsley-errors-list.filled li {
	display: inline-block;
	margin: 0;
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	color: #dc3545;
	background-color: #f8d7da;
	border-radius: 4px;
}

/* ========================================
   UTILITY
   ======================================== */

body div#user-submitted-posts .usp-hidden {
	display: none;
}

body div#user-submitted-posts .usp-no-js {
	display: none;
}

body div#user-submitted-posts .usp-js {
	display: inline-block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
	body div#user-submitted-posts {
		margin: 1.5rem 1rem;
		padding: 1.5rem;
	}
	
	body div#user-submitted-posts div.usp-intro h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	body div#user-submitted-posts {
		margin: 1rem 0.75rem;
		padding: 1.25rem;
	}
	
	body div#user-submitted-posts div.usp-intro h2 {
		font-size: 1.375rem;
	}
}