/* Container for the custom select */
.custom-select {
    position: relative;
    user-select: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

/* The actual select element (hidden but functional) */
.custom-select select {
    display: none; 
}

/* The "Box" users click on */
.select-selected {
    background-color: #ffffff;
    color: #0c2340; /* ND Navy */
    padding: 1rem;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Custom Arrow */
.select-selected:after {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230c2340%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
}

/* Rotate arrow when open */
.select-selected.select-arrow-active:after {
    transform: rotate(180deg);
}

.select-selected.select-arrow-active {
    border-color: var(--color-accent); /* Gold Border */
    box-shadow: 0 0 0 3px rgba(201, 151, 0, 0.1);
}

/* The Dropdown List (Hidden by default) */
.select-items {
    position: absolute;
    background-color: white;
    top: 115%; /* Slight gap */
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto; 
    padding: 0.5rem 0; /* Add padding inside the list box */
}

/* Hide the list */
.select-hide {
    display: none;
}

/* Individual Options */
.select-items div {
    color: var(--color-primary);
    padding: 1rem;
    min-height: 44px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    /* REMOVED: border-bottom property */
}

.select-items div:hover, .same-as-selected {
    background-color: #f9fafb;
    color: var(--color-accent); /* Gold text on hover */
    font-weight: 700;
}

/* Mobile dropdown height adjustment */
@media (max-width: 640px) {
    .select-items {
        max-height: 200px;
    }
}