:root {
  --hg-radius: 28px;
  --hg-maxw: 1280px;
  --hg-height: 560px;
  --hg-padX: 40px;
  --hg-padY: 48px;

  --hg-text: var(--palette-white);
  --hg-btn-bg: var(--palette-black);
  --hg-btn-text: var(--palette-white);
  --hg-input-bg: var(--palette-white);
  --hg-input-text: var(--palette-black);
  --hg-input-border: rgba(255, 255, 255, 0);
  --hg-focus: rgba(255, 255, 255, 0.55);

  --hg-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.0) 75%);

  /* Button variables from unified styles */
  --blue-200: var(--palette-gray-6);
  --blue-300: var(--palette-gray-5);
  --blue-400: var(--palette-gray-4);
  --blue-500: var(--palette-black);
  --blue-950: var(--palette-black);
}

.hawaa-guide-hero {
  position: relative;
  max-width: var(--hg-maxw);
  height: var(--hg-height);
  margin: 24px auto;
  border-radius: var(--hg-radius);
  overflow: hidden;
  background: #F0F9FF;
  /* Sky Blue - Professional information gathering */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  transition: background-color 0.3s ease;
}

.hg-media {
  position: absolute;
  inset: 0;
}

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

.hawaa-guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hg-overlay);
  z-index: 1;
}

.hg-content {
  position: relative;
  z-index: 2;
  color: var(--hg-text);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--hg-padY) var(--hg-padX);
  max-width: 560px;
}

.hg-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.2vw, 56px);
  margin: 0 0 18px 0;
}

.hg-sub {
  font-family: "Outfit", system-ui, sans-serif;
  margin: 0 0 22px 0;
  font-size: clamp(14px, 1.35vw, 18px);
  color: rgba(255, 255, 255, 0.92);
}

/* Form */
.hg-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 520px;
  margin: 0 0 10px 0;
  align-items: center;
  /* Ensure input and button align properly */
}

.hg-input {
  height: 54px;
  /* Same height as button */
  border-radius: 9999px;
  /* Full radius to match button */
  border: 1px solid var(--hg-input-border);
  padding: 0 16px;
  background: var(--hg-input-bg);
  color: var(--hg-input-text);
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  /* Include padding in height calculation */
}

.hg-input::placeholder {
  color: var(--palette-gray-3);
}

.hg-input:focus {
  box-shadow: 0 0 0 3px var(--hg-focus);
  border-color: transparent;
}

/* Updated button style - Primary icon + text button with proper hover effects */
.hg-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 54px;
  /* Same height as input field */
  padding: 0 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
  overflow: hidden;
  background: #3B82F6;
  color: #FFFFFF;
  border: none;
  box-sizing: border-box;
  /* Include padding in height calculation */
}

.hg-btn:hover {
  background: #2563EB;
  opacity: 0.95;
}

.hg-btn:active {
  background: #1D4ED8;
  opacity: 1;
}

.hg-btn .material-symbols-rounded {
  width: 1.3em;
  height: 1em;
  margin-right: 8px;
  /* 8px gap between icon and text */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  /* Center icon vertically */
  justify-content: center;
  /* Center icon horizontally */
}

/* Ripple layers (for primary button) */
.hg-btn .button-bg {
  overflow: hidden;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--palette-black);
}

.hg-btn .button-bg-layers {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: -60%;
  aspect-ratio: 1/1;
  width: max(200%, 10rem);
}

.hg-btn .button-bg-layer {
  border-radius: 9999px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  opacity: 0;
}

.hg-btn .-purple {
  background-color: var(--blue-300);
}

.hg-btn .-turquoise {
  background-color: var(--blue-400);
}

.hg-btn .-yellow {
  background-color: var(--blue-200);
}

/* Hover Animations */
.hg-btn:hover {
  background: var(--palette-gray-1);
  /* Change background color on hover */
}

.hg-btn:hover .material-symbols-rounded {
  transform: translateX(-5px);
}

.hg-btn:hover .button-bg-layer {
  opacity: 1;
}

.hg-btn:hover .button-bg-layer-1 {
  transform: scale(1);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s linear;
}

.hg-btn:hover .button-bg-layer-2 {
  transform: scale(1);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.1s, opacity 0.3s linear 0.1s;
}

.hg-btn:hover .button-bg-layer-3 {
  transform: scale(1);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s, opacity 0.3s linear 0.2s;
}

.hg-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--hg-focus);
}

.hg-msg {
  grid-column: 1 / -1;
  margin: 2px 0 0 2px;
  font-size: 14px;
  min-height: 18px;
  color: var(--palette-gray-6);
}

.hg-terms {
  margin: 8px 2px 0 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.hg-terms a {
  color: var(--palette-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 880px) {
  :root {
    --hg-height: 520px;
    --hg-padX: 24px;
    --hg-padY: 28px;
  }

  .hg-form {
    grid-template-columns: 1fr;
  }

  .hg-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --hg-height: 500px;
  }
}