:root {
  --bg-top: #111521;
  --bg-bottom: #22314d;
  --surface: rgba(14, 24, 43, 0.9);
  --surface-soft: rgba(24, 40, 68, 0.76);
  --text: #f6f8ff;
  --text-soft: #ced9f2;
  --accent: #e3b34f;
  --accent-dark: #b17f20;
  --line: rgba(227, 179, 79, 0.34);
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 15%, rgba(227, 179, 79, 0.15), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(120, 168, 255, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

header {
  width: min(1040px, 96vw);
  height: 240px;
  margin-top: 20px;
  border-radius: 24px 24px 0 0;
  border: 3px solid var(--accent);
  border-bottom: none;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.08)),
    url("../../assets/images/baniere.png");
  background-size: cover;
  background-position: center;
}

.section-1 {
  width: min(1040px, 96vw);
  margin-bottom: 34px;
  border: 3px solid var(--accent);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 24px 14px 30px;
  display: grid;
  justify-items: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(10, 19, 36, 0.94), rgba(18, 34, 59, 0.9));
  box-shadow: var(--shadow);
}

.hero {
  text-align: center;
  max-width: 64ch;
}

.badge {
  margin: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #ffe6bb;
  background: rgba(227, 179, 79, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1 {
  margin: 10px 0 8px;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
}

h1 span {
  color: #ffd58f;
}

.hero p {
  margin: 0;
  color: var(--text-soft);
}

.search-panel {
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 10px 12px;
  font-size: 1rem;
  color: #1f2a3d;
  background: #f8fbff;
}

input:focus {
  outline: none;
  border-color: #79b1ff;
}

.validate {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 130px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #21190f;
  background: linear-gradient(180deg, #f7cb7e, var(--accent));
  box-shadow: 0 6px 0 var(--accent-dark);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.12s ease;
}

.validate:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.validate:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.results-panel {
  width: min(700px, 100%);
  min-height: 240px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface-soft);
  padding: 14px;
}

.response-container {
  width: 100%;
  text-align: left;
  display: block;
}

.response-container > a {
  color: #fff2d4;
  font-weight: 700;
  text-decoration: none;
}

.response-container > a:hover {
  text-decoration: underline;
}

.response-container p {
  color: #d9e6ff;
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.45;
}

footer {
  width: min(1040px, 96vw);
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  display: flex;
  justify-content: flex-end;
  background: var(--surface);
}

#contact {
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: #e7eeff;
  background: rgba(118, 156, 255, 0.2);
}

a {
  color: #ffd7a1;
}

a:hover {
  color: #ffe8c9;
}

@media (max-width: 720px) {
  header {
    height: 170px;
    border-radius: 18px 18px 0 0;
  }

  .section-1 {
    border-radius: 0 0 18px 18px;
    padding: 16px 8px 20px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .validate {
    width: 100%;
  }
}