.maz-form,
.maz-account {
	box-sizing: border-box;
}

.maz-form *,
.maz-account * {
	box-sizing: border-box;
}

.maz-form label {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.maz-form input:not([type="checkbox"]):not([type="radio"]),
.maz-form select,
.maz-form textarea {
	background: #fff;
	border: 1px solid var(--maz-border, #e6e7eb);
	border-radius: 8px;
	font: inherit;
	max-width: 100%;
	padding: .75rem;
	width: 100%;
}

.maz-form-section {
	border: 1px solid var(--maz-border, #e6e7eb);
	border-radius: var(--maz-card-radius, 12px);
	margin: 0 0 1rem;
	padding: 1rem;
}

.maz-form-section legend {
	font-weight: 700;
	padding: 0 .4rem;
}

.maz-form-grid {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maz-dynamic-field-panels {
	margin-top: 1rem;
}

.maz-dynamic-field-panel[hidden] {
	display: none !important;
}

.maz-dynamic-field .maz-help {
	color: #6b7280;
	display: block;
	font-size: .82rem;
	margin-top: .35rem;
}

.maz-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
}

.maz-radio-group label {
	align-items: center;
	display: inline-flex;
	font-weight: 400;
	gap: .35rem;
	margin-bottom: 0;
}

.maz-checkbox {
	display: flex !important;
	font-weight: 400 !important;
	gap: .55rem;
	line-height: 1.5;
}

.maz-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--maz-primary, #ed265b);
	border-radius: 8px;
	color: var(--maz-primary, #ed265b);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 600;
	justify-content: center;
	min-height: 42px;
	padding: .65rem 1rem;
	text-decoration: none;
}

.maz-button--primary {
	background: var(--maz-primary, #ed265b);
	color: #fff;
}

.maz-button--danger {
	border-color: #b42318;
	color: #b42318;
}

.maz-button--whatsapp {
	background: #128c52;
	border-color: #128c52;
	color: #fff;
}

.maz-notice {
	border-left: 4px solid #2271b1;
	margin: 0 0 1rem;
	padding: .8rem 1rem;
}

.maz-notice--success {
	background: #edf9f0;
	border-color: #16803a;
}

.maz-notice--error {
	background: #fff2f0;
	border-color: #b42318;
}

.maz-account {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.maz-account-nav {
	display: flex;
	flex-direction: column;
}

.maz-account-nav a {
	border-bottom: 1px solid var(--maz-border, #e6e7eb);
	color: inherit;
	padding: .8rem;
	text-decoration: none;
}

.maz-account-nav a.is-active {
	border-left: 3px solid var(--maz-primary, #ed265b);
	color: var(--maz-primary, #ed265b);
	font-weight: 700;
}

.maz-dashboard-stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maz-dashboard-stats > div,
.maz-my-ad {
	border: 1px solid var(--maz-border, #e6e7eb);
	border-radius: var(--maz-card-radius, 12px);
	padding: 1rem;
}

.maz-dashboard-stats strong,
.maz-dashboard-stats span {
	display: block;
}

.maz-dashboard-stats strong {
	font-size: 1.5rem;
}

.maz-my-ads-header,
.maz-my-ad,
.maz-my-ad-actions,
.maz-contact-card {
	align-items: center;
	display: flex;
	gap: 1rem;
}

.maz-my-ads-header {
	justify-content: space-between;
}

.maz-my-ad {
	margin-bottom: .75rem;
}

.maz-my-ad-thumb {
	flex: 0 0 90px;
}

.maz-my-ad-thumb img,
.maz-existing-photos img {
	border-radius: 8px;
	height: 80px;
	object-fit: cover;
	width: 80px;
}

.maz-my-ad-info {
	flex: 1;
}

.maz-my-ad-info h3 {
	margin: 0;
}

.maz-my-ad-actions form {
	display: inline;
	margin: 0;
}

.maz-link-button {
	background: none;
	border: 0;
	color: var(--maz-primary, #ed265b);
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.maz-link-button--danger {
	color: #b42318;
}

.maz-super-badge,
.maz-package-badge {
	background: #ffd84a;
	border-radius: 4px;
	color: #302800;
	font-size: .72em;
	padding: .2em .45em;
}

.maz-package-badge--normal { background: #eef0f4; color: #656873; }
.maz-package-badge--premium { background: #8b5cf6; color: #fff; }
.maz-package-badge--vip { background: #17171d; color: #fff; }
.maz-boost-link { font-weight: 700; }

.maz-package-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maz-package-card,
.maz-payment-panel,
.maz-boost-context {
	border: 1px solid var(--maz-border, #e6e7eb);
	border-radius: 12px;
	box-sizing: border-box;
	min-width: 0;
	padding: 1rem;
}

.maz-submitted-package-context h2 {
	margin: .35rem 0 1rem;
}

.maz-submitted-package-context dl {
	display: grid;
	gap: .65rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: .75rem 0 1rem;
}

.maz-submitted-package-context dt {
	color: #6b7280;
	font-size: .78rem;
}

.maz-submitted-package-context dd {
	font-weight: 700;
	margin: .1rem 0 0;
}

.maz-submitted-package-context ol {
	margin-bottom: 0;
}

.maz-package-card ul { padding-left: 1.2rem; }
.maz-package-price { font-size: 1.5rem; font-weight: 800; }
.maz-package-card.is-selected { border-color: var(--maz-primary, #ed265b); box-shadow: 0 0 0 2px rgba(237, 38, 91, .16); }
.maz-package-selected { color: var(--maz-primary, #ed265b); font-weight: 800; margin: .35rem 0; }
.maz-payment-panel { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1rem; }
.maz-payment-actions { display: grid; gap: .7rem; min-width: 0; }
.maz-payment-actions details > div,
.maz-mobile-payment { overflow-wrap: anywhere; padding: .75rem; }

.maz-existing-photos {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.maz-existing-photos label {
	font-size: .85rem;
}

.maz-honeypot {
	left: -9999px;
	position: absolute;
}

@media (max-width: 720px) {
	.maz-account,
	.maz-form-grid,
	.maz-dashboard-stats {
		grid-template-columns: 1fr;
	}

	.maz-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.maz-payment-panel { grid-template-columns: 1fr; }
	.maz-submitted-package-context dl { grid-template-columns: 1fr 1fr; }

	.maz-account-nav {
		overflow-x: auto;
		flex-direction: row;
	}

	.maz-account-nav a {
		flex: 0 0 auto;
	}

	.maz-my-ad {
		align-items: flex-start;
	}

	.maz-my-ad-actions {
		align-items: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 390px) {
	.maz-my-ad {
		flex-direction: column;
	}

	.maz-package-grid { grid-template-columns: 1fr; }
	.maz-submitted-package-context dl { grid-template-columns: 1fr; }
}
