.iqm-form-page,
.iqm-form-page *,
.iqm-form-page *::before,
.iqm-form-page *::after {
	box-sizing: border-box;
}

.iqm-portal-page,
.iqm-portal-page *,
.iqm-portal-page *::before,
.iqm-portal-page *::after {
	box-sizing: border-box;
}

.iqm-portal-page {
	max-width: 1380px;
	margin: 40px auto;
	padding: 0 16px;
}

.iqm-portal-page .iqm-portal-shell {
	display: block;
}

.iqm-portal-page .iqm-portal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin: 0 0 26px;
	padding: 12px;
	border: 1px solid #dbe4ee;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.iqm-portal-page .iqm-portal-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 1px solid #d9e1e8;
	border-radius: 12px;
	background: #f8fafc;
	color: #344054;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.iqm-portal-page .iqm-portal-tab:hover,
.iqm-portal-page .iqm-portal-tab:focus {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
	color: #111827;
}

.iqm-portal-page .iqm-portal-tab.is-active {
	border-color: #0a7cff;
	background: #0a7cff;
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(10, 124, 255, 0.22);
}

.iqm-portal-page .iqm-portal-panel {
	min-width: 0;
}

.iqm-portal-page .iqm-form-page {
	margin-top: 0;
	margin-bottom: 0;
}

.iqm-form-page {
	max-width: 720px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: inherit;
}

.iqm-form-page .iqm-form-card {
	width: 100%;
	padding: 30px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.iqm-form-page .iqm-language-switcher {
	display: inline-flex;
	gap: 8px;
	margin: 0 0 22px;
	padding: 6px;
	border: 1px solid #d9e1e8;
	border-radius: 999px;
	background: #f8fafc;
}

.iqm-form-page .iqm-language-switcher__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	color: #475467;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.iqm-form-page .iqm-language-switcher__button.is-active {
	background: #0a7cff;
	color: #ffffff;
}

.iqm-form-page .iqm-form-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}

.iqm-form-page .iqm-form-toolbar .iqm-language-switcher {
	margin: 0;
}

.iqm-form-page .iqm-lock-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 1px solid #d0d7de;
	border-radius: 999px;
	background: #ffffff;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.iqm-form-page .iqm-lock-button:hover,
.iqm-form-page .iqm-lock-button:focus {
	border-color: #0a7cff;
	box-shadow: 0 10px 20px rgba(10, 124, 255, 0.12);
	color: #0a7cff;
	transform: translateY(-1px);
}

.iqm-form-page.iqm-access-page {
	max-width: 560px;
}

.iqm-form-page .iqm-access-card {
	padding: 34px 30px;
}

.iqm-form-page .iqm-access-card .iqm-form-toolbar {
	justify-content: center;
}

.iqm-form-page .iqm-access-card .iqm-form-header {
	margin-bottom: 24px;
}

.iqm-form-page .iqm-access-form .iqm-form-row {
	grid-template-columns: 1fr;
	margin-bottom: 0;
}

.iqm-form-page .iqm-password-field {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.iqm-form-page .iqm-password-field input[type="password"],
.iqm-form-page .iqm-password-field input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
}

.iqm-form-page .iqm-password-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #f8fafc;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.iqm-form-page .iqm-password-toggle:hover,
.iqm-form-page .iqm-password-toggle:focus {
	border-color: #0a7cff;
	background: #eef5ff;
	color: #0a7cff;
	transform: translateY(-1px);
}

.iqm-form-page .iqm-form-header {
	margin-bottom: 28px;
	text-align: center;
}

.iqm-form-page .iqm-form-logo {
	margin: 0 0 16px;
}

.iqm-form-page .iqm-form-logo img {
	display: block;
	width: 100%;
	max-width: 100px;
	height: auto;
	margin: 0 auto;
}

.iqm-form-page .iqm-form-title {
	margin: 0 0 10px;
	color: #111827;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.iqm-form-page .iqm-form-title-image {
	margin: 0 auto 12px;
	max-width: 320px;
}

.iqm-form-page .iqm-form-title-image img {
	display: block;
	width: 100%;
	max-height: 96px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.iqm-form-page .iqm-form-description {
	margin: 0 auto;
	max-width: 560px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.7;
}

.iqm-form-page .iqm-notice,
.iqm-form-page .iqm-error-list {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 10px;
}

.iqm-form-page .iqm-notice {
	border: 1px solid #dbe4ee;
	background: #f8fbff;
}

.iqm-form-page .iqm-notice--success {
	border-color: #c8e6d1;
	background: #eefaf2;
	color: #166534;
}

.iqm-form-page .iqm-notice--error,
.iqm-form-page .iqm-error-list {
	border: 1px solid #f4c7c3;
	background: #fff4f2;
	color: #b42318;
}

.iqm-form-page .iqm-notice__message {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.iqm-form-page .iqm-error-list {
	padding-left: 34px;
}

.iqm-form-page .iqm-success-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}

.iqm-form-page .iqm-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 8px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.iqm-form-page .iqm-action-button:hover,
.iqm-form-page .iqm-action-button:focus {
	color: #ffffff;
	filter: brightness(1.03);
	transform: translateY(-1px);
}

.iqm-form-page .iqm-action-button--download {
	background: #1f2937;
}

.iqm-form-page .iqm-action-button--whatsapp {
	background: #128c7e;
}

.iqm-form-page .iqm-form {
	margin: 0;
}

.iqm-form-page .iqm-form-body {
	display: block;
}

.iqm-form-page .iqm-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.iqm-form-page .iqm-form-row:last-child {
	margin-bottom: 0;
}

.iqm-form-page .iqm-form-row--qurbani-details {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.iqm-form-page .iqm-form-group {
	min-width: 0;
}

.iqm-form-page .iqm-form-row--qurbani-details .iqm-form-group {
	flex: 1 1 0;
}

.iqm-form-page .iqm-form-row--qurbani-details .iqm-qurbani {
	flex: 2 1 0;
}

.iqm-form-page .iqm-form-row--qurbani-details .iqm-amount,
.iqm-form-page .iqm-form-row--qurbani-details .iqm-city {
	flex: 1 1 0;
}

.iqm-form-page .iqm-form-group--full {
	grid-column: 1 / -1;
}

.iqm-form-page .iqm-form-group label {
	display: block;
	margin: 0 0 8px;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.iqm-form-page .iqm-form-group input[type="text"],
.iqm-form-page .iqm-form-group input[type="email"],
.iqm-form-page .iqm-form-group input[type="number"],
.iqm-form-page .iqm-form-group input[type="date"],
.iqm-form-page .iqm-form-group select,
.iqm-form-page .iqm-form-group textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 12px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
	font-family: inherit;
	box-shadow: none;
}

.iqm-form-page .iqm-form-group textarea {
	resize: vertical;
}

.iqm-form-page .iqm-form-row--qurbani-details .iqm-qurbani textarea#iqm_qurbani_names {
	height: 46px;
	min-height: 46px;
	max-height: 46px;
	padding: 12px;
	line-height: 1.4;
	box-sizing: border-box;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	resize: none;
	overflow-y: auto;
	max-width: 100%;
}

.iqm-form-page .iqm-form-group input[type="text"]:focus,
.iqm-form-page .iqm-form-group input[type="email"]:focus,
.iqm-form-page .iqm-form-group input[type="number"]:focus,
.iqm-form-page .iqm-form-group input[type="date"]:focus,
.iqm-form-page .iqm-form-group select:focus,
.iqm-form-page .iqm-form-group textarea:focus {
	border-color: #0a7cff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.12);
}

.iqm-form-page .iqm-form-actions {
	margin-top: 28px;
}

.iqm-form-page .iqm-form-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 8px;
	background: #0a7cff;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.iqm-form-page .iqm-form-actions button:hover,
.iqm-form-page .iqm-form-actions button:focus {
	background: #0668d6;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.iqm-portal-page {
		margin: 28px auto;
		padding: 0 12px;
	}

	.iqm-portal-page .iqm-portal-tabs {
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
	}

	.iqm-portal-page .iqm-portal-tab {
		width: 100%;
	}

	.iqm-form-page {
		margin: 32px auto;
		padding: 0 12px;
	}

	.iqm-form-page .iqm-form-card {
		padding: 24px 20px;
	}

	.iqm-form-page .iqm-form-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.iqm-form-page .iqm-form-toolbar .iqm-language-switcher,
	.iqm-form-page .iqm-lock-button {
		width: 100%;
	}

	.iqm-form-page .iqm-form-toolbar .iqm-language-switcher {
		justify-content: center;
	}

	.iqm-form-page .iqm-form-row {
		grid-template-columns: 1fr;
	}

	.iqm-form-page .iqm-form-row--qurbani-details {
		flex-direction: column;
	}

	.iqm-form-page .iqm-form-group--full {
		grid-column: auto;
	}

	.iqm-form-page .iqm-success-actions {
		flex-direction: column;
	}

	.iqm-form-page .iqm-action-button {
		width: 100%;
	}

	.iqm-form-page .iqm-password-field {
		flex-direction: column;
	}

	.iqm-form-page .iqm-password-toggle {
		min-height: 46px;
	}
}
