/**
 * Contact Form Styles
 *
 * Styles for the platform contact form page.
 * Matches the platform branding and design patterns.
 *
 * @package PlatformManagement
 * @subpackage PlatformAdmin
 * @since 1.0.0
 */

/* ==========================================================================
   Contact Page Layout
   ========================================================================== */

.contact-page {
	max-width: 600px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.contact-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 2.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.contact-header {
	text-align: center;
	margin-bottom: 2rem;
}

.contact-header h1 {
	color: #2d5a27;
	font-size: 2rem;
	margin: 0 0 0.5rem 0;
}

.contact-subtitle {
	color: #666;
	font-size: 1.1rem;
	margin: 0;
}

/* ==========================================================================
   Messages (Success/Error)
   ========================================================================== */

#contact-form-messages {
	margin-bottom: 1.5rem;
}

#contact-form-messages:empty {
	display: none;
}

.contact-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 1rem;
}

.contact-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 1rem;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-row label {
	font-weight: 600;
	color: #333;
	font-size: 0.95rem;
}

.form-row .required {
	color: #dc3545;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row select:focus,
.form-row textarea:focus {
	border-color: #2d5a27;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.form-row textarea {
	resize: vertical;
	min-height: 120px;
}

.form-row select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
	cursor: pointer;
}

/* ==========================================================================
   Honeypot Field (Hidden)
   ========================================================================== */

.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.form-actions {
	margin-top: 0.5rem;
}

.btn-submit {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.btn-submit:active {
	transform: translateY(0);
}

.btn-submit:focus {
	box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.3);
}

.btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.btn-submit .btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* ==========================================================================
   Contact Info Footer
   ========================================================================== */

.contact-info {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
	text-align: center;
}

.contact-info p {
	color: #666;
	font-size: 0.9rem;
	margin: 0;
}

/* ==========================================================================
   Form Hidden State (After Success)
   ========================================================================== */

.contact-form.form-hidden {
	display: none;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
	.contact-page {
		margin: 1rem auto;
	}

	.contact-container {
		padding: 1.5rem;
		border-radius: 8px;
	}

	.contact-header h1 {
		font-size: 1.5rem;
	}

	.contact-subtitle {
		font-size: 1rem;
	}

	.btn-submit {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
}

/* ==========================================================================
   High Contrast / Accessibility
   ========================================================================== */

@media (prefers-contrast: high) {
	.form-row input[type="text"],
	.form-row input[type="email"],
	.form-row select,
	.form-row textarea {
		border-width: 3px;
		border-color: #000;
	}

	.btn-submit {
		background: #000;
	}
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	.btn-submit,
	.form-row input,
	.form-row select,
	.form-row textarea {
		transition: none;
	}
}
