/**
 * AddOn Speak Out - Public Styles
 * Modern, responsive design optimized for performance
 */

/* Container */
.aso-petition-wrapper {
	max-width: 100%;
	margin: 0 auto;
	padding: 2rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Progress Section */
.aso-progress-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.aso-signature-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.aso-signature-stats .aso-count {
	color: #2563eb;
}

.aso-signature-stats .aso-goal {
	color: #6b7280;
}

.aso-progress-wrapper {
	width: 100%;
	height: 24px;
	background: #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.aso-progress-bar {
	height: 100%;
	transition: width 0.3s ease;
	border-radius: 12px;
}

.aso-progress-low {
	background: linear-gradient(90deg, #ef4444, #f87171);
}

.aso-progress-medium {
	background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.aso-progress-high {
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.aso-progress-complete {
	background: linear-gradient(90deg, #10b981, #34d399);
}

/* Petition Message */
.aso-petition-message {
	margin-bottom: 2rem;
}

.aso-toggle-message {
	background: #2563eb;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: background 0.2s;
}

.aso-toggle-message:hover {
	background: #1d4ed8;
}

.aso-message-content {
	margin-top: 1rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 8px;
	line-height: 1.6;
}

/* Form Styles */
.aso-petition-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.aso-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.aso-form-row {
		grid-template-columns: 1fr;
	}
}

.aso-form-group {
	display: flex;
	flex-direction: column;
}

.aso-form-group label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #374151;
	font-size: 0.875rem;
}

.aso-required {
	color: #ef4444;
}

.aso-form-control {
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.aso-form-control:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aso-form-control select {
	cursor: pointer;
}

.aso-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: normal;
}

.aso-checkbox-label input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	cursor: pointer;
}

/* Submit Button */
.aso-submit-btn {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: white;
	border: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.aso-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.aso-submit-btn:active {
	transform: translateY(0);
}

.aso-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Form Message */
.aso-form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 6px;
	display: none;
}

.aso-form-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
	display: block;
}

.aso-form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #ef4444;
	display: block;
}

/* Social Share */
.aso-social-share {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.aso-share-x,
.aso-share-facebook {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: transform 0.2s;
}

.aso-share-x {
	background: #000000;
	color: white;
}

.aso-share-facebook {
	background: #1877f2;
	color: white;
}

.aso-share-x:hover,
.aso-share-facebook:hover {
	transform: translateY(-2px);
}

/* Signature List */
.aso-signature-list {
	margin-top: 2rem;
}

.aso-signature-item {
	padding: 1rem;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.aso-signature-item:last-child {
	border-bottom: none;
}

.aso-signature-name {
	font-weight: 500;
	color: #111827;
}

.aso-signature-date {
	color: #6b7280;
	font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
	.aso-petition-wrapper {
		padding: 1.5rem;
	}
	
	.aso-signature-stats {
		font-size: 1rem;
	}
	
	.aso-submit-btn {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
}

