/**
 * FinFitters Money Dates - Frontend Stylesheet
 */

/* Grid container */
.ff-md-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
	margin: 20px 0;
	box-sizing: border-box;
}

@media (max-width: 991px) {
	.ff-md-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.ff-md-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* Card base */
.ff-md-card {
	background: #FFFFFF;
	border: 1px solid #ECE7DE;
	border-radius: 20px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	min-height: 380px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ff-md-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.ff-md-card__content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Card header badge (#01, #02) */
.ff-md-card__badge {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #8E1B4E;
	margin-bottom: 12px;
	letter-spacing: -0.01em;
}

/* Card title */
.ff-md-card__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #1A1F30;
	margin: 0 0 14px 0;
}

/* Card description */
.ff-md-card__desc {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #57534F;
	margin: 0 0 20px 0;
}

/* Tags list */
.ff-md-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	padding: 0;
	list-style: none;
}

/* Individual tag pill */
.ff-md-tag {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #241520;
	background: #FFFFFF;
	border: 1px solid #D2CBBF;
	border-radius: 9999px;
	padding: 6px 14px;
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}

/* Highlighted tag (orange / gold border) */
.ff-md-tag--highlight {
	border: 1.5px solid #FEBC68;
	color: #1A1F30;
	background: #FFFAF0;
}

/* Actions footer */
.ff-md-card__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
}

/* Solid download button */
.ff-md-btn {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 9999px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1.2;
	transition: all 0.2s ease;
	font-style: normal;
}

.ff-md-btn--download {
	background: #E85535;
	color: #FFFFFF;
	border: 1px solid #E85535;
}

.ff-md-btn--download:hover {
	background: #cf4324;
	border-color: #cf4324;
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* Outline button ('Verwittig me') */
.ff-md-btn--outline {
	background: transparent;
	border: 1.5px solid #241520;
	color: #241520;
}

.ff-md-btn--outline:hover {
	background: #241520;
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* Gratis pill badge */
.ff-md-badge--free {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	background: #FEBC68;
	color: #5E0F34;
	padding: 10px 18px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

/* ===================================================
   Vaste Clubsessies callout-kaart (donkerblauw)
   =================================================== */
.ff-md-card--clubsessie {
	background: #1C2E4A;
	border: 1px solid #1C2E4A;
	color: #FFFFFF;
	box-shadow: 0 4px 20px rgba(28, 46, 74, 0.12);
}

.ff-md-card--clubsessie:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 26px rgba(28, 46, 74, 0.2);
}

.ff-md-card--clubsessie .ff-md-card__badge {
	color: #FEBC68;
	font-size: 14px;
}

.ff-md-card--clubsessie .ff-md-card__title {
	color: #FFFFFF;
}

.ff-md-card--clubsessie .ff-md-card__desc {
	color: #E2E8F0;
}

.ff-md-btn--clubsessie {
	background: transparent;
	border: 1.5px solid #FFFFFF;
	color: #FFFFFF;
}

.ff-md-btn--clubsessie:hover {
	background: #FFFFFF;
	color: #1C2E4A;
	transform: translateY(-1px);
}

/* ===================================================
   Modal Popup Styles ('Verwittig me')
   =================================================== */
.ff-md-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	box-sizing: border-box;
}

.ff-md-modal--active {
	opacity: 1;
	pointer-events: auto;
}

.ff-md-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(26, 31, 48, 0.65);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.ff-md-modal__container {
	position: relative;
	background: #FFFFFF;
	border-radius: 24px;
	padding: 38px 34px;
	max-width: 500px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	z-index: 2;
	transform: translateY(20px) scale(0.98);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-md-modal--active .ff-md-modal__container {
	transform: translateY(0) scale(1);
}

.ff-md-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #F4F1EB;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #1A1F30;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ff-md-modal__close:hover {
	background: #E5E0D8;
	transform: scale(1.05);
}

.ff-md-modal__header {
	margin-bottom: 22px;
	padding-right: 30px;
}

.ff-md-modal__badge {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #8E1B4E;
	margin-bottom: 6px;
	display: inline-block;
}

.ff-md-modal__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #1A1F30;
	margin: 0 0 8px 0;
}

.ff-md-modal__subtitle {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #57534F;
	margin: 0;
}

/* Form layout */
.ff-md-form__row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.ff-md-form__row--two {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.ff-md-form__group {
	margin-bottom: 14px;
}

.ff-md-form__group label {
	display: block;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1A1F30;
	margin-bottom: 5px;
}

.ff-md-form__group label .required {
	color: #E85535;
}

.ff-md-form__group input[type="text"],
.ff-md-form__group input[type="email"] {
	width: 100%;
	padding: 11px 14px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 14px;
	border: 1.5px solid #D2CBBF;
	border-radius: 12px;
	background: #FFFFFF;
	box-sizing: border-box;
	color: #241520;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ff-md-form__group input[type="text"]:focus,
.ff-md-form__group input[type="email"]:focus {
	outline: none;
	border-color: #E85535;
	box-shadow: 0 0 0 3px rgba(232, 85, 53, 0.12);
}

.ff-md-form__group--checkbox {
	margin-top: 16px;
	margin-bottom: 20px;
}

.ff-md-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 12px;
	line-height: 1.45;
	color: #57534F;
	cursor: pointer;
}

.ff-md-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: #E85535;
	cursor: pointer;
	flex-shrink: 0;
}

.ff-md-checkbox-label a {
	color: #E85535;
	text-decoration: underline;
}

/* Feedback messages */
.ff-md-form__message {
	padding: 12px 16px;
	border-radius: 12px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 13px;
	line-height: 1.45;
	margin-bottom: 16px;
}

.ff-md-form__message--success {
	background: #EDF9EE;
	color: #1F6B29;
	border: 1px solid #B7EBC1;
}

.ff-md-form__message--error {
	background: #FDF1ED;
	color: #A92A13;
	border: 1px solid #F6BEB1;
}

/* Submit button */
.ff-md-btn--submit {
	width: 100%;
	background: #E85535;
	color: #FFFFFF;
	border: none;
	border-radius: 9999px;
	padding: 13px 24px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: background 0.2s ease, transform 0.15s ease;
}

.ff-md-btn--submit:hover {
	background: #cf4324;
	transform: translateY(-1px);
}

.ff-md-btn--submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}
