/**
 * Help & Support Page Styles
 */

/* Smooth scroll for anchor links */
html {
	scroll-behavior: smooth;
}

.brainposh-help-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Header */
.brainposh-help-header {
	text-align: center;
	margin-bottom: 40px;
}

.brainposh-help-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1a202c;
}

.brainposh-help-subtitle {
	font-size: 1.125rem;
	color: #718096;
	margin: 0;
}

/* Support Link Cards */
.brainposh-help-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 50px;
}

.brainposh-help-link-card {
	display: flex;
	gap: 16px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 24px;
	transition: box-shadow 0.2s ease;
}

.brainposh-help-link-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.brainposh-help-link-icon {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #805ad5;
	flex-shrink: 0;
	margin-top: 2px;
}

.brainposh-help-link-content h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 6px 0;
	color: #1a202c;
}

.brainposh-help-link-content p {
	font-size: 0.9rem;
	color: #718096;
	margin: 0 0 10px 0;
	line-height: 1.5;
}

.brainposh-help-link-action {
	font-size: 0.9rem;
	color: #805ad5;
	text-decoration: none;
	font-weight: 500;
}

.brainposh-help-link-action:hover {
	color: #6b46c1;
	text-decoration: underline;
}

/* Contact Form Section */
.brainposh-help-contact {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 36px;
	scroll-margin-top: 20px;
}

.brainposh-help-contact h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 6px 0;
	color: #1a202c;
}

.brainposh-help-contact-subtitle {
	font-size: 0.95rem;
	color: #718096;
	margin: 0 0 28px 0;
}

/* Logged-in notice */
.brainposh-help-logged-in-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 100%);
	border: 1px solid #81e6d9;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #234e52;
}

.brainposh-help-logged-in-notice .dashicons {
	color: #38b2ac;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.brainposh-help-logged-in-notice strong {
	color: #285e61;
}

/* Form */
.brainposh-help-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.brainposh-help-form-group {
	margin-bottom: 20px;
}

.brainposh-help-form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 6px;
}

.brainposh-help-form-group label .required {
	color: #e53e3e;
}

.brainposh-help-form-group input,
.brainposh-help-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 0.95rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.brainposh-help-form-group input:focus,
.brainposh-help-form-group textarea:focus {
	border-color: #805ad5;
	box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.15);
}

.brainposh-help-form-group input.brainposh-help-field-error,
.brainposh-help-form-group textarea.brainposh-help-field-error {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.brainposh-help-form-group textarea {
	resize: vertical;
	min-height: 120px;
}

/* Turnstile */
.brainposh-help-turnstile {
	margin-bottom: 20px;
}

/* Submit Button */
.brainposh-help-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #805ad5;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
	min-width: 160px;
}

.brainposh-help-submit:hover {
	background: #6b46c1;
}

.brainposh-help-submit:disabled {
	background: #a0aec0;
	cursor: not-allowed;
}

/* Spinner */
.brainposh-help-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: brainposh-help-spin 0.6s linear infinite;
}

@keyframes brainposh-help-spin {
	to { transform: rotate(360deg); }
}

/* Success Message */
.brainposh-help-success {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f0fff4;
	border: 1px solid #c6f6d5;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.brainposh-help-success .dashicons {
	color: #38a169;
	font-size: 24px;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.brainposh-help-success strong {
	display: block;
	color: #276749;
	margin-bottom: 4px;
}

.brainposh-help-success p {
	color: #2f855a;
	margin: 0;
	font-size: 0.9rem;
}

/* Error Message */
.brainposh-help-error {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 8px;
	padding: 14px 20px;
	margin-bottom: 24px;
}

.brainposh-help-error .dashicons {
	color: #e53e3e;
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.brainposh-help-error p {
	color: #c53030;
	margin: 0;
	font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
	.brainposh-help-container {
		padding: 24px 16px;
	}

	.brainposh-help-header h1 {
		font-size: 1.75rem;
	}

	.brainposh-help-form-row {
		grid-template-columns: 1fr;
	}

	.brainposh-help-links {
		grid-template-columns: 1fr;
	}

	.brainposh-help-contact {
		padding: 24px 20px;
	}

	.brainposh-help-submit {
		width: 100%;
	}

	.brainposh-help-quick-links-grid {
		grid-template-columns: 1fr;
	}

	.brainposh-help-tools-grid {
		grid-template-columns: 1fr;
	}
}

/* Account Quick Links */
.brainposh-help-quick-links {
	margin-bottom: 40px;
}

.brainposh-help-quick-links h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: #1a202c;
}

.brainposh-help-quick-links-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.brainposh-help-quick-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: #4a5568;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brainposh-help-quick-link:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
	color: #805ad5;
}

.brainposh-help-quick-link .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #805ad5;
}

.brainposh-help-quick-link span:last-child {
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
}

/* Self-Service Tools */
.brainposh-help-tools {
	margin-bottom: 40px;
}

.brainposh-help-tools h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: #1a202c;
}

.brainposh-help-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.brainposh-help-tool-card {
	display: flex;
	gap: 14px;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brainposh-help-tool-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.brainposh-help-tool-icon {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #805ad5;
	flex-shrink: 0;
	margin-top: 2px;
}

.brainposh-help-tool-content h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 4px 0;
	color: #1a202c;
}

.brainposh-help-tool-content p {
	font-size: 0.85rem;
	color: #718096;
	margin: 0;
	line-height: 1.4;
}

/* FAQ Section */
.brainposh-help-faq {
	margin-bottom: 40px;
}

.brainposh-help-faq h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: #1a202c;
}

.brainposh-help-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.brainposh-help-faq-item {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.brainposh-help-faq-item summary {
	padding: 16px 20px;
	font-weight: 500;
	color: #1a202c;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.2s ease;
}

.brainposh-help-faq-item summary::-webkit-details-marker {
	display: none;
}

.brainposh-help-faq-item summary::after {
	content: '+';
	font-size: 1.25rem;
	color: #805ad5;
	font-weight: 300;
	transition: transform 0.2s ease;
}

.brainposh-help-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.brainposh-help-faq-item summary:hover {
	background: #f8f9fa;
}

.brainposh-help-faq-item p {
	padding: 0 20px 16px 20px;
	margin: 0;
	color: #4a5568;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Select Field */
.brainposh-help-form-group select {
	width: 100%;
	padding: 12px 14px;
	font-size: 0.95rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	cursor: pointer;
	appearance: none;
	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='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.brainposh-help-form-group select:focus {
	border-color: #805ad5;
	box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.15);
}

.brainposh-help-form-group select.brainposh-help-field-error {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Tablet responsive */
@media (max-width: 900px) {
	.brainposh-help-tools-grid {
		grid-template-columns: 1fr;
	}

	.brainposh-help-quick-links-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
