/**
 * Gravity Forms Project Selection Styles
 * Modal/Dropdown Accordion Style
 *
 * Brand Palette:
 * Gold: #b99b3a | Light Beige: #f3e6c7 | Off-White: #f5f8f9 | Deep Burgundy: #7e2827
 */

.fr-project-selection {
	margin-bottom: 20px;
}

.gfield_label {
	text-align: left !important;
}

/* ============================================
   HIGHLIGHTED PROJECT SECTION - SEAMLESS INTEGRATION
   ============================================ */
.fr-highlighted-project {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0 !important;
	padding: 0 !important;
	margin: 0 0 12px 0 !important;
	background: #f3e6c7 !important;
	/* Match form beige exactly */
	border: 1px solid rgba(185, 155, 58, 0.5) !important;
	border-left: 5px solid #b99b3a !important;
	/* Stronger highlight accent */
	border-radius: 8px !important;
	overflow: hidden !important;
	animation: fadeInDown 0.5s ease-out !important;
	min-height: 110px !important;
}

.fr-highlighted-project-image {
	width: 140px !important;
	height: 110px !important;
	flex-shrink: 0 !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-color: #e8e8e8 !important;
}

.fr-highlighted-project-info {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	flex: 1 !important;
	padding: 15px 25px !important;
	min-width: 0 !important;
}

.fr-highlight-context {
	display: block !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	color: #b99b3a !important;
	font-weight: 700 !important;
	margin-bottom: 4px !important;
}

.fr-highlighted-project-title {
	color: #7e2827 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	margin: 0 !important;
	line-height: 1.2 !important;
	text-align: left !important;
}

.fr-highlighted-project-description {
	color: #7e2827 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	margin: 4px 0 0 0 !important;
	opacity: 0.9 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}



/* ============================================
   CATEGORY DROPDOWN/ACCORDION STYLES
   ============================================ */
.fr-categories-accordion {
	width: 100% !important;
	text-align: left !important;
}

.fr-category-dropdown {
	margin-bottom: 12px !important;
	border-radius: 6px !important;
	background: #fff !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	border: 1px solid #e0e0e0 !important;
}

.fr-category-toggle {
	width: 100% !important;
	padding: 16px 20px;
	background-color: #b99b3a !important;
	border: none;
	cursor: pointer;
	text-align: left;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	transition: all 0.3s ease;
	position: relative;
}

.fr-category-toggle:hover {
	background-color: #a68a30 !important;
}

.fr-category-toggle:active {
	background-color: #8f7928 !important;
}

.fr-category-toggle[aria-expanded="true"] {
	background-color: #b99b3a !important;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.fr-category-toggle[aria-expanded="true"] .fr-category-arrow {
	transform: rotate(180deg);
}

.fr-category-name {
	flex: 1;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.fr-category-arrow {
	transition: transform 0.3s ease;
	font-size: 14px;
	color: #fff;
	font-weight: bold;
}

.fr-category-content {
	padding: 0 !important;
	background: #f3e6c7 !important;
}

.fr-project-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.fr-project-item {
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(126, 40, 39, 0.15);
	list-style: none !important;
}

.fr-project-item:last-child {
	border-bottom: none;
}

.fr-project-item--selected .fr-project-wrapper {
	box-shadow: inset 0 0 0 3px #b99b3a !important;
	background-color: #f3e6c7 !important;
}

.fr-project-item--selected .fr-project-title {
	text-decoration: underline;
}

.fr-project-item:first-child .fr-project-wrapper {
	border-top: none;
}

.fr-project-wrapper {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	margin-top: 0 !important;
	gap: 14px !important;
	padding: 18px 20px !important;
	background-color: #f3e6c7 !important;
	color: #7e2827 !important;
	transition: all 0.2s ease !important;
}

.fr-project-body {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	min-width: 0 !important;
}

.fr-project-wrapper:hover {
	background-color: #edddb4 !important;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.fr-project-info {
	margin-bottom: 2px;
}

.fr-project-thumb {
	width: 140px !important;
	height: 140px !important;
	max-width: 140px !important;
	max-height: 140px !important;
	min-width: 140px !important;
	border-radius: 8px !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
	border: 2px solid rgba(185, 155, 58, 0.4) !important;
}

.fr-project-title {
	font-size: 15px;
	color: #7e2827;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 4px;
	text-align: left !important;
}

.fr-project-default-amount {
	font-size: 13px;
	color: rgba(126, 40, 39, 0.75);
	font-weight: normal;
	line-height: 1.4;
}

/* Donation type labels (Zakat / Sadaqa) */
.fr-donation-type-label .fr-type-name {
	color: #7e2827;
}

.fr-project-amount-input-wrapper {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	min-width: 180px !important;
	flex-shrink: 0 !important;
}

.fr-currency-symbol {
	position: absolute !important;
	left: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	font-size: 16px;
	font-weight: 600;
	color: #7e2827 !important;
	z-index: 2;
	pointer-events: none !important;
	line-height: 1;
}

.fr-project-amount-input {
	width: 100%;
	padding: 11px 11px 11px 35px !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	font-size: 16px !important;
	text-align: right !important;
	background: #f5f8f9 !important;
	color: #7e2827 !important;
	font-weight: 600 !important;
	min-width: 130px;
	transition: all 0.2s ease;
	box-sizing: border-box !important;
	position: relative;
	z-index: 1;
}

/* Style number input spinner arrows - add spacing */
.fr-project-amount-input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.fr-project-amount-input[type="number"]::-webkit-inner-spin-button,
.fr-project-amount-input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: inner-spin-button;
	appearance: inner-spin-button;
	opacity: 1;
	margin-right: 10px !important;
	width: 20px;
}

.fr-project-amount-input[type="number"]::-webkit-inner-spin-button,
.fr-project-amount-input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: inner-spin-button;
	opacity: 1;
	margin-right: 10px;
}

.fr-project-amount-input:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(185, 155, 58, 0.25) !important;
	background: #fffef8 !important;
	border-color: #b99b3a !important;
}

.fr-project-amount-input:hover {
	background: #eef1f2 !important;
}

.fr-project-amount-input::placeholder {
	color: #999;
}

/* Total Display — beige bg + gold border for premium look */
/* Using more specific selectors to ensure it applies in modals/popups */
.gfield.fr-project-selection .fr-donation-totals,
.fr-donation-totals {
	margin-top: 30px !important;
	padding: 30px !important;
	background: #f3e6c7 !important;
	border: 2px solid #b99b3a !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 12px rgba(185, 155, 58, 0.1) !important;
	display: block !important;
	visibility: visible !important;
	box-sizing: border-box !important;
}

.fr-donation-totals .fr-totals-title {
	margin: 0 0 24px 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #7e2827 !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	text-align: left !important;
	border-bottom: 3px solid rgba(126, 40, 39, 0.2) !important;
	padding-bottom: 15px !important;
	line-height: 1.2 !important;
}

.fr-donation-totals .fr-total-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 18px 0 !important;
	border-top: 1px solid rgba(126, 40, 39, 0.1) !important;
}

.fr-donation-totals .fr-total-row--grand {
	border-top: 3px solid rgba(126, 40, 39, 0.2) !important;
	margin-top: 10px !important;
	padding: 24px 0 0 0 !important;
}

.fr-donation-totals .fr-total-label {
	font-size: 18px !important;
	color: #7e2827 !important;
	font-weight: 600 !important;
}

.fr-donation-totals .fr-total-label--sadaqa {
	color: #7e2827 !important;
}

.fr-donation-totals .fr-zakat-total,
.fr-donation-totals .fr-sadaqa-total {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #7e2827 !important;
}

.fr-donation-totals .fr-total-amount {
	font-size: 32px !important;
	font-weight: 800 !important;
	color: #7e2827 !important;
	letter-spacing: -0.5px !important;
}

/* Modal Form Styles (matching the design) */
.gform_wrapper.fr-donation-modal {
	background: #fff;
	border-radius: 4px;
	padding: 20px;
	max-width: 500px;
	margin: 0 auto;
}

.gform_wrapper.fr-donation-modal .gform_title {
	font-size: 24px;
	font-weight: 600;
	color: #7e2827;
	margin-bottom: 25px;
	text-align: center;
}

.gform_wrapper.fr-donation-modal .gfield {
	margin-bottom: 20px;
}

.gform_wrapper.fr-donation-modal .gfield_label {
	font-weight: 500;
	margin-bottom: 8px;
}

.gform_wrapper.fr-donation-modal input[type="text"],
.gform_wrapper.fr-donation-modal input[type="email"],
.gform_wrapper.fr-donation-modal select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.gform_wrapper.fr-donation-modal .gform_button {
	width: 100%;
	padding: 15px;
	background: #7e2827;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.gform_wrapper.fr-donation-modal .gform_button:hover {
	background: #5e1e1d;
}

/* Hide Gravity Forms default total field on Form 1 only - we use our custom one */
/* Form 2 (donation form) needs the Total field visible for payment processing */
#gform_wrapper_1 .gfield--type-total,
#gform_wrapper_1 .gfield_total,
.field_1_5 {
	display: none !important;
}

/* Project label alignment */
.fr-project-label,
.fr-project-selection .gfield_label {
	text-align: left !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
	.fr-highlighted-project {
		flex-direction: column !important;
		max-height: none !important;
	}

	.fr-highlighted-project-image {
		width: 100% !important;
		height: 140px !important;
		border-right: none !important;
		border-bottom: 1px solid rgba(185, 155, 58, 0.2) !important;
	}

	.fr-highlighted-project-info {
		padding: 0 !important;
		background: transparent !important;
	}

	.fr-category-toggle {
		padding: 12px 15px;
		font-size: 14px;
	}

	.fr-project-label {
		padding: 10px 15px;
	}

	.fr-project-title {
		font-size: 14px;
	}

	.fr-project-total {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.fr-highlighted-project {
		padding: 16px;
		gap: 16px;
	}

	.fr-highlighted-project-image {
		height: 150px;
	}

	.fr-highlighted-project-title {
		font-size: 18px;
	}

	.fr-highlighted-project-description {
		font-size: 14px;
	}
}

.ays-pb-modal_3 .ays_pb_material_close_icon {
	fill: #000000 !important;
	margin-right: 15px !important;
}

/* Prominent Preselected Project Styles */
.fr-preselected-project-prominent {
	animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fr-change-project-btn:hover {
	background: #7e2827 !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(126, 40, 39, 0.2) !important;
}

.fr-change-project-btn:active {
	transform: translateY(0);
}

/* ============================================
   GRAVITY FORMS BUTTON STYLES — GOLD GRADIENT
   ============================================ */
.gform_next_button,
.gform_button,
.gform_previous_button {
	background: linear-gradient(135deg, #C9A24D 0%, #B8923F 100%) !important;
	color: #fff !important;
	font-weight: 800 !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 14px 32px !important;
	font-size: 16px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px rgba(201, 162, 77, 0.25) !important;
	transition: all 0.3s ease !important;
}

.gform_next_button:hover,
.gform_button:hover {
	background: linear-gradient(135deg, #B8923F 0%, #A6832E 100%) !important;
	box-shadow: 0 6px 16px rgba(201, 162, 77, 0.35) !important;
	transform: translateY(-1px) !important;
}

.gform_previous_button {
	background: #f3e6c7 !important;
	color: #7e2827 !important;
	box-shadow: none !important;
	border: 1px solid rgba(185, 155, 58, 0.4) !important;
}

.gform_previous_button:hover {
	background: #edddb4 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}