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

  --hg-text: #ffffff;
  --hg-btn-bg: #0a0a0a;
  --hg-btn-text: #ffffff;
  --hg-input-bg: #ffffff;
  --hg-input-text:#0a0a0a;
  --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: #B5E1EC;
  --blue-300: #82CADE;
  --blue-400: #48ABC8;
  --blue-500: #2DBFAD;
  --blue-950: #132A39;
}

.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: #c69f73; /* fallback if image not loaded */
  box-shadow: 0 10px 35px rgba(0,0,0,0.18);
}

.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: #6b7280; }

.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: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: var(--blue-950);
  color: #fff;
  border: none;
  box-sizing: border-box; /* Include padding in height calculation */
}

.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(--blue-950);
}

.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(--blue-500); /* 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: #e6fff0;
}

.hg-terms{
  margin: 8px 2px 0 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.hg-terms a{
  color: #fff;
  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; }
}