/* Responsive layout */
.ud-form-container {
    width: 500px;
    margin: auto;
    padding: 20px;
    background-color: #28415c; /* Darker shade of the base color */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*h1,*/
    h2 {
    text-align: center;
    color: #000; /* Light color for contrast against dark background */
    letter-spacing: .05em;
    }

.h2-header {
  margin-bottom: 25px;
  color: #f1f4f9;

}

.ud-radio-container {
    display: flex;
    align-items: center; /* Vertically centers the image and text */
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #f1f4f9; /* Light text color */
    letter-spacing: .05em;
}

/* Image styling */
.ud-option-image {
    width: 65px; /* Adjust size as needed */
    height: 65px;
    margin-right: 15px;
  /*  border-radius: 5px;*/
}

/* Hide the default radio button */
.ud-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.ud-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%); /* Adjust the position */
    height: 20px;
    width: 20px;
    background-color: #f1f4f9; /* Light color for unchecked radio button */
    border-radius: 50%;
}

/* On hover, add a background color */
.ud-radio-container:hover input ~ .ud-checkmark {
    background-color: #cbd4e1; /* Slightly darker light color */
}

/* When the radio button is checked, add a blue background */
.ud-radio-container input:checked ~ .ud-checkmark {
    background-color: #007bb8; /* Complementary blue for checked state */
}

/* Create the indicator (the dot/circle inside the radio button) */
.ud-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.ud-radio-container input:checked ~ .ud-checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.ud-radio-container .ud-checkmark:after {
    top: 7px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f1f4f9; /* White for the dot inside checked radio */
}

/* Submit button styling */
button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #122335;
; /* Matching blue for button */
    border: none;
    border-radius: 5px;
    color: #f1f4f9; /* White text for contrast */
    font-size: 18px;
    cursor: pointer;
    letter-spacing: .05em;
}

button:hover {
  background-color: #414F5D;
}



/* Styling for option groups */
.ud-option-group {
    margin-bottom: 20px; /* Adds space between groups */
    padding: 15px; /* Adds padding inside the group */
    border: 1px solid #ddd; /* Neutral border */
    border-radius: 10px; /* Rounded corners */
    background-color: #324b66; /* A lighter shade of the base color */
}

.ud-user-info {
    margin-bottom: 20px; /* Adds space between groups */
    padding: 15px; /* Adds padding inside the group */
    border: 1px solid #ddd; /* Neutral border */
    border-radius: 10px; /* Rounded corners */
    background-color: #c6d0ca; /* A lighter shade of the base color */
    color: #000;
    letter-spacing: .05em;
    line-height: 1.5;
}

.user-bold {
  font-weight: bold;
  font-size: 1.15em;
}

.user-space {
  margin-bottom: 5px;
}

/* Styling the select dropdown */
.ud-select-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #324b66; /* Same lighter shade as option group */
    color: #f1f4f9; /* Light text color */
}

.ud-select-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #f1f4f9; /* Light text color */
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f1f4f9; /* Light background for dropdown */
    color: #122335; /* Base color for dropdown text */
}

.ud-logout {
  letter-spacing: .05em;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  margin-top: 25px;
}

.ud-logout a {
  letter-spacing: .05em;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  margin-top: 25px;
  font-size: .9em;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 600px) {
    .ud-form-container {
        padding: 15px;
        width: 98%;
    }

    h2 {
        font-size: 22px;
    }

    .ud-radio-container {
        font-size: 16px;
    }

    .ud-option-image {
        width: 30px; /* Adjust for smaller screens */
        height: 30px;
    }

    button {
        font-size: 16px;
    }
}
