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

:root {
  --gold: #d39a38;
  --gold-dark: #a87831;
  --brown: #4a3023;
  --ink: #3f332e;
  --line: #ded1c4;
  --panel: rgba(255, 252, 247, 0.88);
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: #fff9f2 url("../img/fondoA.png") center / cover fixed no-repeat;
}

.register-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 46px 20px 32px;
  position: relative;
}

.back-link {
  position: absolute;
  left: clamp(22px, 7vw, 86px);
  top: 54px;
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
  text-decoration: none;
}

.register-panel {
  width: min(610px, 100%);
  padding: 0 0 26px;
  background: transparent;
}

h1 {
  font-family: "Playfair Display", serif;
  color: var(--brown);
  font-size: clamp(38px, 5.1vw, 54px);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}

.lead {
  text-align: center;
  color: #69605b;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 34px;
}

.request-form {
  display: grid;
  gap: 24px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.field-label img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.field-label span {
  width: 26px;
  color: var(--brown);
  font-size: 24px;
  text-align: center;
}

input,
select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #5d5551;
  font: 500 16px/1.3 "Poppins", sans-serif;
  padding: 0 22px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 154, 56, 0.16);
}

.notice-box {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 238, 229, 0.72);
  color: #5a504c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.notice-box span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.privacy-check {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.privacy-check input {
  width: 24px;
  min-height: 24px;
  accent-color: var(--gold);
}

.privacy-check a {
  color: var(--gold-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.submit-btn {
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: var(--brown);
  color: white;
  font: 700 25px/1 "Poppins", sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(63, 45, 28, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: submit-shine 3s ease-in-out infinite;
}

.submit-btn:hover {
  background: #5a3827;
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(63, 45, 28, 0.28);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 9px rgba(63, 45, 28, 0.24);
}

.submit-btn img,
.submit-btn {
  isolation: isolate;
}

@keyframes submit-shine {
  0%, 48% {
    transform: translateX(-120%);
  }

  72%, 100% {
    transform: translateX(120%);
  }
}

.submit-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 12px;
  vertical-align: middle;
}

.safe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #706762;
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 30px;
}

.safe-note img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.divider img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(168, 120, 49, 0.58);
}

.contact-help {
  color: #5d5551;
  text-align: center;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 600;
}

.contact-help span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-right: 8px;
  border: 2px solid rgba(168, 120, 49, 0.38);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 24px;
  vertical-align: middle;
}

.contact-help strong {
  color: #3f332e;
  font-size: 20px;
}

@media (max-width: 640px) {
  .register-page {
    padding-top: 72px;
  }

  .back-link {
    top: 24px;
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .notice-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .submit-btn {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .submit-btn,
  .submit-btn::before {
    animation: none;
    transition: none;
  }
}
.form-honey {
  display: none;
}

.form-message {
  display: none;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.form-message.show {
  display: block;
  animation: message-pop 0.35s ease both;
}

.form-message.success {
  color: #3f332e;
  background: rgba(232, 211, 178, 0.72);
  border: 1px solid rgba(168, 120, 49, 0.42);
}

.form-message.error {
  color: #6d221c;
  background: rgba(255, 235, 232, 0.85);
  border: 1px solid rgba(164, 64, 51, 0.3);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}