/**
 * Guyana WhatsApp Verification - Frontend Styles
 * Mobile-first, responsive design
 */

/* Container */
.gwv-verification-container,
.gwv-registration-container {
	max-width: 500px;
	margin: 0 auto;
	padding: 20px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.gwv-form-header {
	margin-bottom: 24px;
	text-align: center;
}

.gwv-form-header h2 {
	margin: 0 0 12px 0;
	font-size: 24px;
	color: #333;
}

.gwv-form-header p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

/* Form */
.gwv-form {
	margin: 0;
}

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

.gwv-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.gwv-form-group .required {
	color: #dc3232;
	margin-left: 2px;
}

.gwv-form-group input[type="email"],
.gwv-form-group input[type="text"],
.gwv-form-group input[type="tel"],
.gwv-form-group input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.gwv-form-group input:focus {
	outline: none;
	border-color: #25D366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.gwv-form-group input:invalid {
	border-color: #dc3232;
}

.gwv-help-text {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

/* Buttons */
.gwv-button {
	display: inline-block;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
}

.gwv-button-primary {
	background: #25D366;
	color: #ffffff;
}

.gwv-button-primary:hover {
	background: #1fb855;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.gwv-button-primary:active {
	transform: translateY(0);
}

.gwv-button-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
}

.gwv-button-whatsapp {
	background: #25D366;
	color: #ffffff;
	margin-top: 12px;
}

.gwv-button-whatsapp:before {
	content: "💬 ";
}

.gwv-button-whatsapp:hover {
	background: #1fb855;
}

/* Messages */
.gwv-form-messages {
	margin: 20px 0;
	min-height: 20px;
}

.gwv-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.5;
}

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

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

.gwv-message-info {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
}

.gwv-message-warning {
	background: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
}

/* WhatsApp Redirect Container */
.gwv-whatsapp-container {
	text-align: center;
	padding: 24px;
	background: #f5f5f5;
	border-radius: 8px;
	margin: 20px 0;
}

.gwv-whatsapp-container h3 {
	margin: 0 0 20px 0;
	color: #dc3232;
	font-size: 20px;
}

.gwv-whatsapp-container p {
	margin: 0 0 16px 0;
	color: #666;
	line-height: 1.5;
}

/* Warning Box */
.gwv-warning-box {
	background: #fff;
	border: 3px solid #dc3232;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	text-align: left;
}

.gwv-warning-box p {
	margin: 0 0 12px 0;
	color: #333;
}

.gwv-warning-box p:last-child {
	margin-bottom: 0;
}

.gwv-warning-box strong {
	color: #dc3232;
}

.gwv-alert {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 12px;
	margin: 16px 0 0 0 !important;
	border-radius: 4px;
	font-size: 14px;
}

.gwv-next-info {
	font-size: 14px;
	color: #555;
	margin: 16px 0 0 0;
	font-style: italic;
}

/* Removed code display styles - code is no longer shown on website */

/* Back Link */
.gwv-back-link {
	text-align: center;
	margin-top: 20px;
}

.gwv-back-link a {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
}

.gwv-back-link a:hover {
	text-decoration: underline;
}

/* Loading State */
.gwv-loading {
	opacity: 0.6;
	pointer-events: none;
}

.gwv-loading .gwv-button {
	position: relative;
}

.gwv-loading .gwv-button:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid #fff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: gwv-spin 0.6s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 600px) {
	.gwv-verification-container,
	.gwv-registration-container {
		padding: 16px;
		margin: 10px;
		border-radius: 4px;
	}

	.gwv-form-header h2 {
		font-size: 20px;
	}

	.gwv-form-header p {
		font-size: 13px;
	}

	.gwv-form-group input {
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.gwv-button {
		padding: 12px 20px;
		font-size: 15px;
	}

	.gwv-warning-box {
		padding: 16px;
	}

	.gwv-whatsapp-container h3 {
		font-size: 18px;
	}
}

/* Accessibility */
.gwv-form-group input:focus-visible {
	outline: 2px solid #25D366;
	outline-offset: 2px;
}

.gwv-button:focus-visible {
	outline: 2px solid #1fb855;
	outline-offset: 2px;
}

/* Print Styles */
@media print {
	.gwv-button,
	.gwv-back-link {
		display: none;
	}

	.gwv-verification-container,
	.gwv-registration-container {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}
