.form-wrapper {
    max-width: 550px; /* Reasonable maximum width */
    margin: 1rem auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
}

/* Force everything into a single vertical line */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
    width: 100%;
}

.form-group.required>label::after {
    display: inline-block;
    content: '*';
    margin-left: 4px;
    color: red;
}

label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
}

/* Make all inputs fill the horizontal space equally */
input[type="text"],
input[type="email"],
textarea {
    width: 100%; /* Fills the container */
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 158, 171, 0.15);
}

/* Radio buttons - keep them on one line for better UX */
.radio-group {
    display: flex;
    flex-direction: column; /* Or row if you prefer side-by-side */
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    text-transform: none;
    cursor: pointer;
    font-size: 1rem;
}

.radio-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* The button now matches the exact width of the inputs above it */
.form-wrapper button {
    width: 100%;
    padding: 16px;
    cursor: pointer;
}