/* VVP Registration – header, hero, footer + form field helpers */

:root {
  --vvp-red: #b93338;
  --vvp-red-dark: #9a2b2f;
  --vvp-maroon: #b10022;
  --vvp-dark: #1d2127;
  --vvp-text: #626262;
  --vvp-text-dark: #272727;
  --vvp-border: #d4d4d4;
  --vvp-bg: #f7f7f7;
  --vvp-white: #ffffff;
  --font-body: "Roboto", sans-serif;
  --font-heading: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

a {
  color: var(--vvp-red);
  text-decoration: none;
}

a:hover {
  color: var(--vvp-red-dark);
}

/* Header */
.site-header {
  background: var(--vvp-white);
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 58px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.site-nav__link:hover {
  opacity: 0.8;
}

.site-nav__link--enquiry {
  color: var(--vvp-maroon);
}

.site-nav__link--enquiry:hover {
  color: var(--vvp-red-dark);
}

.site-nav__link--external {
  color: var(--vvp-text-dark);
}

.site-nav__link--external:hover {
  color: var(--vvp-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 44, 52, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 64px 24px;
  max-width: 960px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  color: var(--vvp-white);
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__title-line {
  display: block;
}

/* Form field helpers (used with Tailwind layout) */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--vvp-text-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--vvp-text-dark);
  background: var(--vvp-white);
  border: 1px solid var(--vvp-border);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-control:focus {
  outline: none;
  border-color: var(--vvp-red);
  box-shadow: 0 0 0 3px rgba(185, 51, 56, 0.12);
}

.field-control.error {
  border-color: var(--vvp-red);
}

.field-error {
  font-size: 12px;
  color: var(--vvp-red);
  min-height: 16px;
}

#formMessage.form-message--error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

#formMessage.form-message--success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Thank you page */
.thank-you {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.thank-you__card {
  background: var(--vvp-white);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px 40px;
  max-width: 560px;
  text-align: center;
}

.thank-you__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.thank-you__card h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--vvp-text-dark);
  margin: 0 0 12px;
}

.thank-you__card p {
  margin: 0 0 24px;
  font-size: 15px;
}

.btn-back {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--vvp-white);
  background: var(--vvp-red);
  padding: 12px 32px;
  border-radius: 6px;
}

.btn-back:hover {
  background: var(--vvp-red-dark);
  color: var(--vvp-white);
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-header__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .site-nav {
    justify-content: center;
    gap: 20px;
  }

  .site-logo {
    height: 48px;
  }

  .hero {
    min-height: min(56vh, 420px);
  }

  .hero__title {
    letter-spacing: 0.02em;
  }
}
