body {
    background-color: midnightblue;
    color: whitesmoke;
}

.container {
    background-color: #ffffff1a; /* 1a makes it semi-transparent */
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    margin: 20px auto;
    padding: 10px 20px;
    box-shadow: 0 5px 15px black;
}

.center {
    text-align: center;
}

.description {
    font-size: 1.2rem;
}

fieldset {
    border: 1px solid gray;
    border-radius: 5px;
    margin: 20px 0;
    padding: 20px;
}

fieldset legend {
    font-size: 1.3rem;
    font-weight: 600;
}

label {
    font-size: 1.2rem;
}

label:not(.contact-method) {    /* :not negates a selection */
    display: block;
    margin: 10px 0;
}

input:not(.contact-method-radio-btn), textarea {
    background-color: #ffffff1a;
    width: 95%;
    border: 1px solid gray;
    border-radius: 5px;
    padding: 10px;
}

input, input::placeholder, textarea {
    color: whitesmoke;
}

.contact-method-radio-btn {
    appearance: none;   /* Remove default radio button styles */
    width: 20px;
    height: 20px;
    border: 2px solid gray;
    border-radius: 50%;
    vertical-align: bottom;
}

.contact-method-radio-btn::before {
    display: block;
    content: " ";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(3px, 3px) scale(0);  /* Moves the circle slightly and shrinks it to zero size so it's not visible */
    transition: all 0.3s ease-in; /* Smooth transition for the scaling effect */
}

.contact-method-radio-btn:checked::before {
    transform: translate(3px, 3px) scale(1); /* When checked, the circle scales up to its full size */
    background-color: lightgreen;
}

.submit-btn {
    cursor: pointer;
    background-color: royalblue;
    color: whitesmoke;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1.1rem;
    display: block;
    margin: auto; /* Centers the button */
}

.submit-btn:hover {
    background-color: midnightblue;
}