/**
 * Frontend Styles for Asalat Kala Plugin
 */

.ak-form-wrapper {
	max-width: 680px;
	margin: 0 auto;
	direction: rtl;
	padding: 20px;
}

.ak-check-form {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgba(14, 165, 233, 0.08);
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 8px 20px rgba(2,6,23,0.08);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ak-check-form:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(2,6,23,0.12);
}

.ak-form-group {
	margin-bottom: 20px;
}

.ak-form-group:last-child {
	margin-bottom: 0;
}

.ak-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #0f172a;
	font-size: 14px;
}

.ak-form-input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid rgba(15,23,42,0.06);
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	background: #ffffff;
}

.ak-form-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ak-form-input[type="tel"],
.ak-form-input[type="text"] {
	direction: ltr;
	text-align: left;
}

.ak-submit-btn {
	background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
	color: white;
	padding: 14px 26px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	transition: transform 0.14s ease, box-shadow 0.14s ease;
	box-shadow: 0 8px 20px rgba(0,115,170,0.14);
}

.ak-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0,115,170,0.18);
}

.ak-submit-btn:active {
	transform: translateY(0);
}

.ak-submit-btn:disabled {
	background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
	cursor: not-allowed;
	box-shadow: none;
}

/* Result Messages */
.ak-result {
	margin-top: 22px;
	padding: 18px 20px;
	border-radius: 10px;
	border-left: 6px solid rgba(0,0,0,0.04);
	direction: rtl;
	text-align: right;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

.ak-result.ak-success {
	background-color: #d4edda;
	border-left-color: #28a745;
	color: #155724;
}

.ak-result.ak-error {
	background-color: #f8d7da;
	border-left-color: #dc3545;
	color: #721c24;
}

.ak-result.ak-warning {
	background-color: #fff3cd;
	border-left-color: #ffc107;
	color: #856404;
}

.ak-result-title {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 16px;
}

.ak-result-info {
	font-size: 14px;
	margin-top: 8px;
}

/* Report Form */
.ak-report-form {
	background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
	border: 1px solid rgba(15,23,42,0.04);
	border-radius: 10px;
	padding: 16px;
	margin-top: 16px;
	box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}

.ak-report-form h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.ak-report-form .ak-form-group {
	margin-bottom: 15px;
}

.ak-report-form .ak-form-input[type="file"] {
	padding: 8px;
}

.ak-report-submit {
	background-color: #dc3545;
	width: 100%;
}

.ak-report-submit:hover {
	background-color: #c82333;
}

/* Loading State */
.ak-loading .ak-submit-btn::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: ak-spin 0.8s linear infinite;
}

@keyframes ak-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 600px) {
	.ak-form-wrapper {
		margin: 0 10px;
	}

	.ak-check-form {
		padding: 15px;
	}

	.ak-form-input,
	.ak-submit-btn {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}
