/**
 * Mobile Payment Gateway Frontend Styles
 */

/* Variables */
:root {
	--mpg-primary: #ff6b35;
	--mpg-secondary: #004e89;
	--mpg-success: #06a77d;
	--mpg-warning: #ffa500;
	--mpg-danger: #d62828;
	--mpg-light: #f5f5f5;
	--mpg-border: #e0e0e0;
	--mpg-text: #333;
	--mpg-text-light: #666;
	--mpg-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--mpg-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
	--mpg-radius: 8px;
	--mpg-transition: all 0.3s ease;
}

/* Form Wrapper */
.mpg-payment-form {
	border: none;
	padding: 0;
	margin: 0;
}

.mpg-form-wrapper {
	background: #fff;
	border: 1px solid var(--mpg-border);
	border-radius: var(--mpg-radius);
	padding: 24px;
	box-shadow: var(--mpg-shadow);
}

/* Instructions Section */
.mpg-instructions-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mpg-border);
}

.mpg-instructions-section h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--mpg-text);
	margin: 0 0 12px 0;
}

.mpg-instructions-text {
	font-size: 14px;
	color: var(--mpg-text-light);
	line-height: 1.6;
	margin: 0;
}

/* Payment Methods Section */
.mpg-payment-methods {
	margin-bottom: 28px;
}

.mpg-payment-methods h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--mpg-text);
	margin: 0 0 16px 0;
}

/* Method Card */
.mpg-method-card {
	position: relative;
	margin-bottom: 12px;
}

.mpg-method-input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.mpg-method-label {
	display: flex;
	align-items: center;
	padding: 16px;
	border: 2px solid var(--mpg-border);
	border-radius: var(--mpg-radius);
	cursor: pointer;
	transition: var(--mpg-transition);
	background: #fff;
}

.mpg-method-input:checked + .mpg-method-label {
	border-color: var(--mpg-primary);
	background: rgba(255, 107, 53, 0.05);
	box-shadow: var(--mpg-shadow);
}

.mpg-method-label:hover {
	border-color: var(--mpg-primary);
	box-shadow: var(--mpg-shadow);
}

/* Method Icon */
.mpg-method-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: 16px;
	border-radius: 50%;
	font-weight: 600;
	font-size: 12px;
	text-align: center;
	color: #fff;
	flex-shrink: 0;
}

.mpg-icon-orange {
	background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

.mpg-icon-mtn {
	background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	color: #333;
}

/* Method Details */
.mpg-method-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.mpg-phone {
	font-weight: 600;
	color: var(--mpg-text);
	font-size: 15px;
}

.mpg-ussd {
	font-size: 12px;
	color: var(--mpg-text-light);
}

.mpg-ussd code {
	background: var(--mpg-light);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	color: var(--mpg-secondary);
	font-size: 11px;
}

/* Form Groups */
.mpg-form-group {
	margin-bottom: 24px;
}

.mpg-label {
	display: block;
	font-weight: 600;
	color: var(--mpg-text);
	margin-bottom: 8px;
	font-size: 14px;
}

.mpg-required {
	color: var(--mpg-danger);
	margin-left: 4px;
}

/* Text Input */
.mpg-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--mpg-border);
	border-radius: var(--mpg-radius);
	font-size: 14px;
	color: var(--mpg-text);
	transition: var(--mpg-transition);
	font-family: inherit;
	box-sizing: border-box;
}

.mpg-input:focus {
	outline: none;
	border-color: var(--mpg-primary);
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.mpg-input::placeholder {
	color: #999;
}

/* Help Text */
.mpg-help-text {
	display: block;
	font-size: 12px;
	color: var(--mpg-text-light);
	margin-top: 6px;
}

/* File Upload */
.mpg-file-upload {
	position: relative;
	border: 2px dashed var(--mpg-border);
	border-radius: var(--mpg-radius);
	padding: 24px;
	text-align: center;
	transition: var(--mpg-transition);
	background: var(--mpg-light);
}

.mpg-file-upload:hover {
	border-color: var(--mpg-primary);
	background: rgba(255, 107, 53, 0.02);
}

.mpg-file-upload.dragover {
	border-color: var(--mpg-primary);
	background: rgba(255, 107, 53, 0.1);
}

.mpg-file-input {
	display: none;
}

.mpg-file-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	gap: 8px;
}

.mpg-file-icon {
	font-size: 32px;
	display: block;
}

.mpg-file-text {
	font-weight: 600;
	color: var(--mpg-text);
	font-size: 14px;
}

.mpg-file-hint {
	display: block;
	font-size: 12px;
	color: var(--mpg-text-light);
}

/* File Preview */
.mpg-file-preview {
	margin-top: 16px;
	display: none;
}

.mpg-file-preview.active {
	display: block;
}

.mpg-file-preview img {
	max-width: 100%;
	max-height: 200px;
	border-radius: var(--mpg-radius);
	border: 1px solid var(--mpg-border);
	padding: 4px;
}

.mpg-file-preview .mpg-preview-name {
	font-size: 12px;
	color: var(--mpg-text-light);
	margin-top: 8px;
}

/* Thank You Message */
.mpg-thankyou-message {
	background: rgba(6, 167, 125, 0.1);
	border-left: 4px solid var(--mpg-success);
	padding: 16px;
	border-radius: var(--mpg-radius);
	margin: 20px 0;
}

.mpg-thankyou-message h3 {
	color: var(--mpg-success);
	margin: 0 0 8px 0;
	font-size: 16px;
}

.mpg-thankyou-message p {
	color: var(--mpg-text);
	margin: 0;
	font-size: 14px;
}

/* Status Badges */
.mpg-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.mpg-status-pending_verification {
	background: rgba(255, 165, 0, 0.2);
	color: #ff8c00;
}

.mpg-status-verified {
	background: rgba(6, 167, 125, 0.2);
	color: var(--mpg-success);
}

.mpg-status-rejected {
	background: rgba(214, 40, 40, 0.2);
	color: var(--mpg-danger);
}

/* Responsive Design */
@media (max-width: 768px) {
	.mpg-form-wrapper {
		padding: 16px;
	}

	.mpg-method-label {
		flex-direction: column;
		text-align: center;
	}

	.mpg-method-icon {
		margin-right: 0;
		margin-bottom: 12px;
	}

	.mpg-method-details {
		width: 100%;
	}

	.mpg-file-upload {
		padding: 16px;
	}

	.mpg-file-icon {
		font-size: 24px;
	}
}

/* Accessibility */
.mpg-method-input:focus + .mpg-method-label {
	outline: 2px solid var(--mpg-primary);
	outline-offset: 2px;
}

/* Animation */
@keyframes mpg-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mpg-form-wrapper {
	animation: mpg-fade-in 0.3s ease;
}
