/*
  CSS Form
  Same card layout as the event registration page, in a pink Hello Kitty palette
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
    font-family: "Nunito", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #4a2033;
    background: linear-gradient(160deg, #c2185b, #ff4d88, #ffb3c6);
    background-attachment: fixed;
}

.back-link {
    max-width: 640px;
    margin: 0 auto 16px auto;
    padding: 0 4px;
    font-size: 0.9rem;
}

.back-link a {
    color: #ffffff;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Center the form and put a border around it */
form {
    width: 640px;
    max-width: 100%;
    margin: 0 auto;
    padding: 32px;
    background-color: #fff7fb;
    border: 3px solid #ff4d88;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.28);
}

h1 {
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffc2d4;
    font-family: "Pacifico", "Nunito", cursive;
    font-size: 2rem;
    font-weight: 400;
    color: #e11d5a;
    text-align: center;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    padding-top: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #c2185b;
}

input[type="text"],
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border: 2px solid #f4a0c0;
    border-radius: 12px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    color: #4a2033;
}

/* Focus state for the text boxes */
input[type="text"]:focus {
    outline: none;
    border-color: #ff4d88;
    border-width: 2px;
    background-color: #fff0f6;
    box-shadow: 0 0 0 3px rgba(255, 77, 136, 0.25);
}

/* Remove the bottom border on the last name box */
input.open-bottom {
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

fieldset {
    margin: 0 0 16px 0;
    padding: 12px 16px 16px 16px;
    border: 2px solid #ffc2d4;
    border-radius: 16px;
    background-color: #ffffff;
}

legend {
    padding: 0 8px;
    font-weight: 800;
    color: #e11d5a;
}

.choice {
    margin: 10px 0;
    padding: 4px 0;
}

.choice label {
    display: inline;
    margin: 0 0 0 8px;
    padding: 0;
    color: #4a2033;
    cursor: pointer;
}

input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ff4d88;
    cursor: pointer;
}

/* Text and background color of the dropdown list */
select,
select option {
    color: #ffffff;
    background-color: #e11d5a;
    cursor: pointer;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #ff4d88;
    box-shadow: 0 0 0 3px rgba(255, 77, 136, 0.25);
}

/* Text on the button says Enter, larger than the default size */
button[type="submit"] {
    margin-top: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background-color: #ff4d88;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(194, 24, 91, 0.28);
}

button[type="submit"]:hover {
    background-color: #e11d5a;
}

@media (max-width: 560px) {
    body {
        padding: 20px 12px;
    }

    form {
        padding: 20px;
    }

    button[type="submit"] {
        width: 100%;
    }
}
