/*
 * ALZAHRA Organization Manager — shared frontend base styles.
 * Used by the Service Router and every module's own frontend form.
 * No external framework — plain, dependency-free CSS.
 */

/* ---------------------------------------------------------------- *
 * Typography
 * Scoped ONLY to the plugin's two universal frontend wrappers:
 * .alz-services (the [alz_services] router) and .alz-form-container
 * (present on every module's own form, whether opened through the
 * router or used standalone via its own shortcode). This never
 * touches the theme, WordPress admin, Elementor, or other plugins.
 * ---------------------------------------------------------------- */

.alz-services,
.alz-services *,
.alz-form-container,
.alz-form-container * {
	font-family: "Times New Roman", Times, serif;
}

.alz-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.alz-card-grid[hidden] {
	display: none;
}

.alz-card {
	background: #ffffff;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	padding: 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.alz-card:hover {
	box-shadow: 0 6px 18px rgba(11, 61, 46, 0.08);
	transform: translateY(-2px);
}

.alz-card--disabled {
	opacity: 0.55;
}

.alz-card--disabled:hover {
	box-shadow: none;
	transform: none;
}

.alz-card__icon {
	font-size: 34px;
	line-height: 1;
	margin-bottom: 14px;
}

.alz-card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #14231c;
}

.alz-card__desc {
	font-size: 14px;
	color: #5b6670;
	margin: 0 0 18px;
	flex-grow: 1;
}

.alz-card__badge {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #f1f3f4;
	color: #6b7280;
	border-radius: 999px;
	padding: 3px 10px;
	margin-bottom: 12px;
}

.alz-btn {
	display: inline-block;
	background: #AA9958;
	color: #ffffff;
	border: 1px solid #AA9958;
	border-radius: 50px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.alz-btn:hover {
	background: #AA9958;
	border-color: #AA9958;
	color: #ffffff;
}

.alz-btn[disabled],
.alz-btn--disabled {
	background: #c7ccd1;
	cursor: not-allowed;
	pointer-events: none;
}

.alz-module-section {
	margin-top: 28px;
}

.alz-module-section[hidden] {
	display: none;
}

.alz-back-link {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	color: #0b3d2e;
	text-decoration: none;
}

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

/* ---------------------------------------------------------------- *
 * Unified Form Design System
 * Used identically by Membership, Donation, Volunteer, and any
 * future module's frontend form. Do not create a second form design
 * anywhere else — extend these rules instead.
 * ---------------------------------------------------------------- */

.alz-form-container {
	max-width: 560px;
}

.alz-form-container h2 {
	margin: 0 0 18px;
	font-size: 20px;
}

.alz-form-field {
	margin: 0 0 16px;
}

.alz-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 14px;
	color: #14231c;
}

.alz-form input[type="text"],
.alz-form input[type="email"],
.alz-form input[type="tel"],
.alz-form input[type="number"],
.alz-form input[type="url"],
.alz-form select,
.alz-form textarea {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #d3d7db;
	border-radius: 20px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.alz-form textarea {
	height: auto;
	min-height: 100px;
	padding: 10px 12px;
	resize: vertical;
}

.alz-form .alz-custom-amount-input {
	max-width: 180px;
	margin-top: 10px;
}

/* Checkboxes */

.alz-form-field--checkbox {
	display: flex;
	align-items: flex-start;
}

.alz-checkbox-label,
.alz-form input[type="checkbox"] + span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	font-size: 14px;
	cursor: pointer;
}

.alz-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
}

/* Radio buttons (generic — module-specific radio *groups*, like the
   donation amount picker, may add their own layout rules on top of
   this in their own module CSS, but the control itself stays consistent) */

.alz-form input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0 6px 0 0;
	flex-shrink: 0;
	vertical-align: middle;
}

.alz-form button.alz-btn,
.alz-form .alz-btn {
	border-radius: 50px;
	width: auto;
}

/* Mobile */

@media (max-width: 600px) {

	.alz-form-container {
		max-width: 100%;
	}

	.alz-form input[type="text"],
	.alz-form input[type="email"],
	.alz-form input[type="number"],
	.alz-form select,
	.alz-form textarea {
		width: 100%;
		max-width: 100%;
	}

	.alz-form .alz-custom-amount-input {
		max-width: 100%;
	}

	.alz-form button.alz-btn,
	.alz-form .alz-btn {
		width: 100%;
	}

}
/* =========================================
   ALZAHRA - Mobile Form & Button Styles
   ========================================= */

@media (max-width: 767px) {

    /* All ALZAHRA form text */
    .alz-services,
    .alz-form-container,
    .alz-form {
        font-family: "Times New Roman", Times, serif !important;
    }

    /* Form fields */
    .alz-form-container input[type="text"],
    .alz-form-container input[type="email"],
    .alz-form-container input[type="number"],
    .alz-form-container input[type="tel"],
    .alz-form-container input[type="url"],
    .alz-form-container select,
    .alz-form-container textarea {
        border-radius: 20px !important;
        font-family: "Times New Roman", Times, serif !important;
    }

    /* All ALZAHRA buttons */
    .alz-form-container .alz-btn,
    .alz-services .alz-btn,
    .alz-btn {
        background-color: #AA9958 !important;
        border-color: #AA9958 !important;
        border-radius: 50px !important;
        font-family: "Times New Roman", Times, serif !important;
    }

    /* Button hover */
    .alz-form-container .alz-btn:hover,
    .alz-services .alz-btn:hover,
    .alz-btn:hover {
        background-color: #AA9958 !important;
        border-color: #AA9958 !important;
        color: #fff !important;
    }

}
