/* Press Release Submission Form Styles */

.prs-form-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prs-form-header {
	margin-bottom: 40px;
	text-align: center;
}

.prs-form-title {
	font-size: 32px;
	font-weight: bold;
	color: #333;
	margin: 0 0 15px 0;
}

.prs-form-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
	line-height: 1.6;
}

.prs-submission-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.prs-form-group {
	display: flex;
	flex-direction: column;
}

.prs-label {
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	font-size: 14px;
}

.prs-required {
	color: #dc3545;
	font-weight: bold;
}

.prs-optional {
	color: #999;
	font-weight: normal;
	font-size: 12px;
}

.prs-input {
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.3s ease;
}

.prs-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.prs-input:invalid {
	border-color: #dc3545;
}

textarea.prs-input {
	resize: vertical;
	min-height: 120px;
}

.prs-help-text {
	font-size: 12px;
	color: #999;
	margin-top: 5px;
	margin-bottom: 0;
}

.wp-editor-container {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.wp-editor-area {
	border: none;
	border-radius: 0;
}

.prs-form-submit {
	margin-top: 20px;
}

.prs-submit-btn {
	padding: 14px 40px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
	align-self: flex-start;
}

.prs-submit-btn:hover {
	background-color: #005a87;
}

.prs-submit-btn:active {
	background-color: #003d5c;
}

.prs-submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.prs-form-message {
	padding: 15px;
	border-radius: 4px;
	font-size: 14px;
	margin-top: 20px;
}

.prs-form-message.success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.prs-form-message.error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.prs-form-message.loading {
	background-color: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
	.prs-form-container {
		padding: 20px;
		margin: 20px;
	}

	.prs-form-title {
		font-size: 24px;
	}

	.prs-form-subtitle {
		font-size: 14px;
	}

	.prs-submit-btn {
		width: 100%;
		align-self: stretch;
	}
}

/* WP Editor Customization */
.wp-editor-wrap {
	background: #fff;
}

.wp-editor-tabs {
	background-color: #f5f5f5;
	border-bottom: 1px solid #ddd;
}

.wp-editor-tabs a {
	color: #0073aa;
	text-decoration: none;
	padding: 8px 12px;
	display: inline-block;
	border-bottom: 2px solid transparent;
}

.wp-editor-tabs a.wp-switch-editor.active {
	border-bottom-color: #0073aa;
	color: #0073aa;
}

/* Loading State */
.prs-submission-form.loading .prs-submit-btn {
	opacity: 0.6;
	pointer-events: none;
}

.prs-submission-form.loading .prs-submit-btn::after {
	content: " ...";
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% {
		content: " ";
	}
	40% {
		content: " .";
	}
	60% {
		content: " ..";
	}
	80%, 100% {
		content: " ...";
	}
}
