*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #fff0f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height: 100vh;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #ffc2d1;
  padding: 1.2rem 2.4rem;
}

ul {
  display: flex;
  gap: 1.6rem;
}

a:hover {
  color: #f8f9fa;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.4rem;
  padding-bottom: 4px;
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 24px;
  color: #e2e8f0;
}

.container {
  background-color: #c5c2c2;
  min-width: 720px;
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  padding: 24px 48px;
  border-radius: 12px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/form.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.form_container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
  border-radius: 1.2rem;
  background-color: #b7b7b7;
  width: 100%;
  max-width: 34rem;

  >input {
    padding: 0.8rem;
    border-radius: 0.4rem;
    border: none;
    background: none;
    outline: none;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
  }

  >textarea {
    outline: none;
    border: none;
    background: none;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    padding: 0.8rem;
    border-radius: 0.4rem;
  }
}

label {
  margin: 0;
  padding: 0;
  color: #0004ff;
}

button {
  background: none;
  outline: none;
  border: none;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  background-color: #ff5c8a;
  color: #f8f9fa;
  transition: all 0.3s ease;
}

button:hover,
button:focus {
  background-color: #ff0a54;
  cursor: pointer;
}
