* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f3f3f3;
    color: #333;
}

.begin {
    text-align: center;
    padding: 30px 0 15px;
}

form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 7px rgba(0,0,0,0.1);
}

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

fieldset h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

fieldset > div {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

textarea {
    min-height: 70px;
}

fieldset div div label {
    display: inline-block;
    margin-right: 10px;
    font-weight: normal;
}

.button {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button input[type="submit"] {
    background: #e53935;
    color: #fff;
}

.button input[type="reset"] {
    background: #ddd;
}

.button input[type="submit"]:hover {
    background: #d32f2f;
}

.button input[type="reset"]:hover {
    background: #ccc;
}

@media (max-width: 600px) {
    .button {
        flex-direction: column;
    }

    .button input {
        width: 100%;
    }
}
