/* =====================================================
   BUTTON
   ===================================================== */
.hfi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 50px;
	background: #D71920; /* Haitian Red default */
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.hfi-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
	color: #fff;
}

/* =====================================================
   MODAL
   ===================================================== */
.hfi-form-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
}

.hfi-form-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.hfi-form-modal-content {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 500px;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
	z-index: 2;
}

.hfi-form-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #F1F5F9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.hfi-form-modal-close:hover {
	background: #E2E8F0;
	color: #0f172a;
}

.hfi-form-title {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 24px;
	color: #061A3D;
}

/* Form Styles */
.hfi-form-row {
	display: flex;
	gap: 16px;
}

.hfi-form-group {
	margin-bottom: 16px;
	flex: 1;
}

.hfi-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #475569;
}

.hfi-form-group input[type="text"],
.hfi-form-group input[type="email"],
.hfi-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid #E2E8F0;
	background: #F8FAFC;
	font-size: 15px;
	transition: all 0.2s;
	font-family: inherit;
}

.hfi-form-group input[type="text"]:focus,
.hfi-form-group input[type="email"]:focus,
.hfi-form-group textarea:focus {
	outline: none;
	border-color: #D71920;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.hfi-checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 24px;
}

.hfi-checkbox-group input {
	margin-top: 4px;
}

.hfi-checkbox-group label {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	line-height: 1.5;
}

/* File Upload */
.hfi-file-upload-wrapper {
	position: relative;
	border: 2px dashed #CBD5E1;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	background: #F8FAFC;
	cursor: pointer;
	transition: all 0.2s;
}

.hfi-file-upload-wrapper:hover {
	border-color: #94A3B8;
	background: #F1F5F9;
}

.hfi-file-upload-wrapper input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.hfi-file-upload-preview span {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
}

/* Submit Button */
.hfi-form-submit {
	width: 100%;
	padding: 16px;
	background: #D71920;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hfi-form-submit:hover {
	background: #B9151A;
	transform: translateY(-2px);
}

.hfi-form-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.hfi-spin {
	animation: hfi-spin 1s linear infinite;
	width: 20px;
	height: 20px;
}

@keyframes hfi-spin {
	100% { transform: rotate(360deg); }
}

.hfi-form-response {
	margin-top: 16px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}
.hfi-form-response.success { color: #16a34a; }
.hfi-form-response.error { color: #dc2626; }

/* =====================================================
   GALLERY - GRID
   ===================================================== */
.hfi-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.hfi-gallery-item {
	width: 100%;
}

.hfi-image-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/5;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	background: #000;
	group: hover;
}

.hfi-image-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.hfi-image-card:hover .hfi-image-bg {
	transform: scale(1.05);
}

.hfi-image-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 24px 20px;
	background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
	color: #fff;
	transition: all 0.3s ease;
}

/* Hover Enabled Mode */
.hfi-image-card.hfi-hover-enabled .hfi-image-overlay {
	transform: translateY(20px);
	opacity: 0;
}

.hfi-image-card.hfi-hover-enabled:hover .hfi-image-overlay {
	transform: translateY(0);
	opacity: 1;
}

/* Hover Disabled Mode (Always visible) */
.hfi-image-card.hfi-hover-disabled .hfi-image-overlay {
	transform: translateY(0);
	opacity: 1;
}

.hfi-image-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px 0;
	color: #fff;
}

.hfi-image-country {
	font-size: 12px;
	color: rgba(255,255,255,0.8);
	display: block;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hfi-image-msg {
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255,255,255,0.9);
	margin: 0;
}

/* =====================================================
   GALLERY - SLIDER
   ===================================================== */
.hfi-gallery-slider-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.hfi-gallery-slider-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hfi-gallery-slide {
	flex: 0 0 100%;
	width: 100%;
}

@media (min-width: 768px) {
	.hfi-gallery-slide {
		flex: 0 0 50%;
	}
}

@media (min-width: 1024px) {
	.hfi-gallery-slide {
		flex: 0 0 33.333%;
	}
}

/* Slider Dots */
.hfi-slider-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.hfi-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(0,0,0,0.1);
	cursor: pointer;
	transition: all 0.3s ease;
}

.hfi-dot.active {
	background: #D71920;
	width: 24px;
	border-radius: 5px;
}

/* =====================================================
   MOBILE MODAL (BOTTOM SHEET)
   ===================================================== */
@media (max-width: 576px) {
	.hfi-form-row {
		flex-direction: column;
		gap: 0;
	}

	.hfi-form-modal {
		align-items: flex-end;
	}

	.hfi-form-modal-content {
		width: 100%;
		max-width: 100%;
		max-height: 85vh;
		border-radius: 24px 24px 0 0;
		padding: 24px 20px;
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		overflow-y: auto;
		animation: hfiSlideUp 0.35s ease-out;
	}

	.hfi-form-modal-close {
		top: 16px;
		right: 16px;
	}
}

@keyframes hfiSlideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}
