/* The CSS for the homepage carousels */

/* 2. Target the WRAPPER - SCOPED */
/* This ensures the black box arrow is only created for select fields */
.field-type-select-field .jet-form-builder__field-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* 3. Style the Select Element - SCOPED */
.field-type-select-field select.jet-form-builder__field {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 1px solid #222 !important;
	border-radius: 2px !important;
	background-color: #fff;
	height: 55px;
	width: 100%;
	padding: 0 15px;
	font-size: 16px;
	color: #222;
} 

/* 4. Create the Custom Arrow (SVG Version) - SCOPED */
.field-type-select-field .jet-form-builder__field-wrap::after {
	content: "";
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 55px;
	background-color: #000;
	pointer-events: none;
	z-index: 2;
	cursor: pointer;
}


/* -------------------- */


/* The dark background overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Click through when hidden */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* The white box containing content */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 80%; /* Fixed height to allow scrolling inside */
    padding: 40px;
    border-radius: 8px;
    position: relative;
    overflow-y: auto; /* Scrollable content */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* The close button */
#close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.modal-nav:hover {
    background: #ddd;
}

.nav-left {
    left: 10px;
}

.nav-right {
    right: 10px;
}

/* Hide buttons if we are at the start/end of the list */
.modal-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure content doesn't overlap buttons on mobile */
@media (max-width: 600px) {
    .modal-content { padding: 40px 10px; }
    .nav-left { left: 5px; }
    .nav-right { right: 5px; }
}
