/* Domestic & International switcher */
#ac-student-type-switch {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    padding-top: calc(var(--space-xs) * 0.5);
    padding-bottom: calc(var(--space-xs) * 0.5);
    padding-right: calc(var(--space-xs) / 1.5);
    padding-left: calc(var(--space-xs) / 1.5);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xxl);
    max-width: 300px;
}

#ac-student-type-switch label {
    cursor: pointer;
    margin: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 5px;
    color: var(--text-dark); /* Label color */
    font-size: var(--text-s);
}

/* Add a vertical border between the two labels */
#ac-student-type-switch label:first-of-type::after {
    content: "";
    position: absolute;
    right: -15px; /* Position the divider between the labels */
    top: 10%; /* Small gap from the top */
    bottom: 10%; /* Small gap from the bottom */
    width: 1px;
    background-color: var(--accent);
}

/* Hide the default radio button */
.ac-student-type-switch input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Show/hide the correct icons */
.icon-checked {
    display: none;
    padding-right: calc(var(--space-xs)*0.8);
    color: var(--action); /* Icon color when selected */
    font-size: var(--text-l);
}

.icon-unchecked {
    padding-right: calc(var(--space-xs)*0.8);
    color: var(--text-dark); /* Icon color when unselected */
    font-size: var(--text-l);
}

.ac-student-type-switch input[type="radio"]:checked ~ .icon-checked {
    display: inline;
}

.ac-student-type-switch input[type="radio"]:checked ~ .icon-unchecked {
    display: none;
}
