/* Prayer Engine - Modern UI Styles */

/* Modern CSS Reset & Base */
html {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body#prayerengine {
	margin: 0;
	padding: 20px;
	font-size: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8eef2 100%);
	min-height: 100vh;
}

#prayerengine h1, #prayerengine h2, #prayerengine h3, #prayerengine h4, #prayerengine h5, #prayerengine h6,
#prayerengine p, #prayerengine form, #prayerengine ul, #prayerengine ol, #prayerengine li, #prayerengine blockquote {
	margin: 0;
	padding: 0;
}

/* ---------- Prayer Engine Structure ---------- */

#pe-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

/* ---------- PRAYER REQUEST FORM ---------- */

#pe-submit-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
	margin-bottom: 30px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

#pe-submit-container:hover {
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

#pe-form-header {
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#pe-form-container {
	padding: 0;
	display: none;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#pe-submit-area {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-top: 1px solid #e0e0e0;
}

#pe-submit-area .checkbox-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
}

#pe-submit-area .checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Main submit button at the top */
#pe-submit-container #pe-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(126, 25, 43, 0.2);
}

#pe-submit-container #pe-share-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(126, 25, 43, 0.3);
}

#pe-submit-container #pe-share-button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(126, 25, 43, 0.2);
}

#prayerengine #pe-submit-container h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #2d3748;
}

/* Instructions */
#prayerengine #pe-form-container p.instructions {
	font-size: 15px;
	line-height: 1.6;
	padding: 24px 24px 16px;
	color: #4a5568;
	background: white;
}

/* Form Grid Layout */
#pe-form-container form {
	padding: 0 24px 24px;
	background: white;
}

#pe-form-container table {
	width: 100%;
	border-collapse: collapse;
}

#pe-form-container td {
	padding: 12px 0;
	vertical-align: top;
}

#pe-form-container td.label {
	text-align: right;
	width: 160px;
	padding-right: 20px;
	padding-top: 16px;
}

#pe-form-container td.inputcell,
#pe-form-container td.prayercell {
	width: auto;
}

#pe-form-container td#form_icon {
	text-align: right;
	padding: 20px 0;
}

#pe-form-container td#form_icon img {
	max-width: 80px;
	height: auto;
}

/* Form Labels */
#pe-form-container label {
	font-size: 15px;
	font-weight: 600;
	color: #2d3748;
	display: block;
}

#pe-form-container label.checkbox {
	font-size: 14px;
	font-weight: 500;
	display: inline;
	margin-left: 8px;
	color: #4a5568;
}

#pe-form-container label.error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	font-style: normal;
}

/* Form Inputs - Modern Style */
#pe-form-container input,
#pe-form-container textarea,
#pe-form-container select {
	font-family: inherit;
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	border: 2px solid #e2e8f0;
	background: #ffffff;
	transition: all 0.2s ease;
	width: 100%;
	max-width: 520px;
}

#pe-form-container input:focus,
#pe-form-container textarea:focus,
#pe-form-container select:focus {
	outline: none;
	border-color: #94bfc6;
	box-shadow: 0 0 0 3px rgba(148, 191, 198, 0.1);
}

#pe-form-container input {
	height: 48px;
}

#pe-form-container input.check {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #7e192b;
}

#pe-form-container input.submit {
	width: auto;
	min-width: 180px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s ease;
}

#pe-form-container input.submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(126, 25, 43, 0.3);
}

#pe-form-container input.submit:active {
	transform: translateY(0);
}

#pe-form-container textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

#pe-form-container textarea#prayer {
	min-height: 160px;
}

#pe-form-container select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	appearance: none;
}

/* reCAPTCHA container */
#pe-form-container td.spamcell {
	padding-top: 8px;
}

/* Twitter Area */
#pe-form-container #pe-twitter-area {
	margin-top: 16px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

#pe-form-container #pe-twitter-area textarea {
	height: 80px;
	max-width: 100%;
}

#prayerengine #pe-form-container #pe-twitter-area p.twitter-counter {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #718096;
}

#pe-form-container #pe-twitter-area p.twitter-counter span {
	font-weight: 700;
	color: #4a5568;
}

/* Error and Success Messages */
#pe-form-container #errors,
#pe-form-container #success {
	margin: 24px 24px 0;
	padding: 16px 20px;
	border-radius: 8px;
	border-left: 4px solid;
}

#pe-form-container #errors {
	border-left-color: #7e192b;
	animation: shake 0.4s ease;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-10px); }
	75% { transform: translateX(10px); }
}

#prayerengine #pe-form-container #errors p {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
}

#prayerengine #pe-form-container #errors ul li {
	font-size: 14px;
	margin: 6px 0 6px 20px;
	line-height: 1.5;
}

#pe-form-container #success {
	border-left-color: #94bfc6;
	animation: slideDown 0.3s ease-out;
}

#prayerengine #pe-form-container #success p {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

/* ---------- PRAYER REQUEST LISTS - Card Style ---------- */

#pe-prayer-list {
	margin: 20px 0 30px;
}

.pe-prayer-even,
.pe-prayer-odd {
	background: white;
	padding: 16px;
	margin-bottom: 10px;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.pe-prayer-even::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #94bfc6 0%, #7e192b 100%);
}

.pe-prayer-even:hover,
.pe-prayer-odd:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

#prayerengine .pe-prayer-even h3,
#prayerengine .pe-prayer-odd h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #2d3748;
	letter-spacing: -0.2px;
}

#prayerengine .pe-prayer-even p,
#prayerengine .pe-prayer-odd p {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 16px;
	padding: 0;
	color: #4a5568;
}

#prayerengine .pe-prayer-even h4,
#prayerengine .pe-prayer-odd h4 {
	font-size: 13px;
	font-weight: 500;
	margin-top: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Prayer Count Area - Modern Card Style */
.pe-count-area {
	float: right;
	margin: 0 0 16px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

#prayerengine .pe-count-area h4 {
	font-size: 14px;
	font-weight: 600;
	text-align: right;
	margin: 0;
	padding: 8px 0 0;
}

.pe-count-area a.submitlink,
#prayerengine .pe-count-area blockquote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 8px;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pe-count-area a.submitlink:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(148, 191, 198, 0.3);
}

.pe-count-area a.submitlink:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(148, 191, 198, 0.2);
}

#prayerengine .pe-count-area blockquote {
	cursor: not-allowed;
	opacity: 0.6;
}

/* ---------- PAGINATION - Modern Style ---------- */

.pe-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 30px 0;
	flex-wrap: wrap;
}

.pe-pagination .pe-current-page,
.pe-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.pe-pagination a:hover {
	transform: translateY(-2px);
}

/* ---------- BRANDING ---------- */

h3#powered_by {
	width: 120px;
	height: 53px;
	margin: 40px auto 0;
}

h3#powered_by a {
	display: block;
	width: 120px;
	height: 53px;
	text-indent: -9000px;
}

p#copyright {
	font-size: 13px;
	text-align: center;
	padding: 12px 0 20px;
	color: #a0aec0;
}

p#copyright a {
	text-decoration: none;
	transition: color 0.2s ease;
}

p#copyright a:hover {
	text-decoration: underline;
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 768px) {
	body#prayerengine {
		padding: 12px;
	}

	#pe-container {
		padding: 12px;
	}

	#pe-form-container table,
	#pe-form-container tbody,
	#pe-form-container tr,
	#pe-form-container td {
		display: block;
		width: 100%;
	}

	#pe-form-container td.label {
		text-align: left;
		padding-right: 0;
		padding-bottom: 6px;
		padding-top: 12px;
	}

	#pe-form-container td#form_icon {
		text-align: center;
	}

	#pe-form-container input,
	#pe-form-container textarea,
	#pe-form-container select {
		max-width: 100%;
	}

	.pe-count-area {
		float: none;
		flex-direction: row;
		justify-content: space-between;
		margin: 0 0 16px 0;
		width: 100%;
	}

	#pe-submit-area {
		align-items: stretch;
	}

	#pe-submit-area .checkbox-group {
		align-items: flex-start;
	}

	#pe-submit-area input.submit {
		width: 100%;
	}

	#pe-form-header {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	#pe-submit-container #pe-share-button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	#prayerengine .pe-prayer-even h3,
	#prayerengine .pe-prayer-odd h3 {
		font-size: 18px;
	}

	.pe-count-area {
		flex-direction: column;
		align-items: flex-start;
	}

	.pe-count-area a.submitlink,
	#prayerengine .pe-count-area blockquote {
		width: 100%;
	}
}
