* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(125, 0, 0, 0.75)),
    url("../img/contact-hero.jpg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  margin-top: 24px;
}

.brand-link h1 {
  margin: 0;
  color: #fff;
  letter-spacing: 2px;
  font-size: 34px;
  transition: transform 0.25s ease;
}

.brand-link h1:hover {
  transform: scale(1.02);
}

.wrapper {
  width: 100%;
  max-width: 460px;
  padding: 30px 16px 50px;
}

.main {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.top-block {
  background: linear-gradient(135deg, #111111, #c61d25);
  color: #fff;
  padding: 28px 24px;
  text-align: center;
}

.top-block h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.top-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.form-area {
  padding: 28px 24px 30px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #222;
}

input {
  width: 100%;
  height: 50px;
  background: #f7f7f7;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid #ddd;
  outline: none;
  border-radius: 12px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus {
  border-color: #c61d25;
  box-shadow: 0 0 0 4px rgba(198, 29, 37, 0.12);
  background: #fff;
}

button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #111111, #c61d25);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.helper-text {
  margin-top: 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

.helper-text a {
  color: #c61d25;
  font-weight: 700;
  text-decoration: none;
}

.helper-text a:hover {
  text-decoration: underline;
}

#message {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid #efb5b5;
  color: #a32020;
  line-height: 1.6;
  font-size: 14px;
}

#message a {
  color: #a32020;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .brand-link h1 {
    font-size: 28px;
  }

  .top-block h2 {
    font-size: 24px;
  }

  .top-block,
  .form-area {
    padding-left: 18px;
    padding-right: 18px;
  }
}