/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Hide the old nav-search column entirely */
#nav-search {
  display: none !important;
}

/* Pull menu away from the fixed RA button */
#main-nav .holesum {
  padding-right: 185px !important;
}

/* Button is icon-only below 1500px â€” much less clearance needed */
@media (max-width: 1500px) {
  #main-nav .holesum {
    padding-right: 70px !important;
  }
}

/* RA button â€” fixed top-right at all sizes */
.ra-desktop-btn {
  position: fixed;
  right: 25px;
  top: 0;
  height: 54px;
  display: flex;
  align-items: center;
  z-index: 1031;
}

/* Shift left to sit beside the hamburger up to 991px */
@media (max-width: 991px) {
  .ra-desktop-btn {
    right: 80px;
    height: 50px;
    margin-top: 15px;
  }
}

/* =====================
   WIDGET SECTION
   ===================== */
body {font-family: Montserrat, sans-serif;}   

#aiContainer {
  padding:20px;
  border-radius: 10px;
}

.gov-hero__btns {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin: auto;
}

.gov-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.gov-btn--outline {
  border: 1px solid #ccc;
  color: #1a2744;
}

.gov-btn--outline:hover {
  color: #1a2744;
  text-decoration: none;
}

 #aiFieldWrap {
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#homeAiInput {
  position: relative;
  flex: 1 0 100%;
  margin-bottom: 0.5rem;
}

#homeAiText {
  width: 98%;
  height: 46px;
  padding: 0 10px;
  background: #fff;
  font-size: 16px !important;
  color: #333;
  outline: none;
  font-family: Roboto, sans-serif;
  border: 1px solid #ccc;
  border-radius: 10px;
}

#homeAiText:focus { border-color: #00607d; }

.button_ai-voice-search {
  position: absolute;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #000 !important;
  background: none !important;
  border: 0 !important;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.button_ai-voice-search:hover { color: #000; }

.button_ai-voice-search i.listening {
  animation: pulse-icon-scale 1s infinite;
  color: #f2b14a;
}

#homeAiInputSubmit {
  background: none !important;
  position: absolute;
  right: 30px;
  top: 5px;
  height: 35px;
  width: 2.3rem;
  border: 0;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background-size: 200% auto;
  padding: 10px;
}

#homeAiInputSubmit:hover { background-position: right center; }
#homeAiInputSubmit svg { fill: #000; }
#homeAiInputSubmit:hover svg { fill: #000; }

.gov-hero__btns .aiCard {
  opacity: 1;
  background: #f3eee7;
  border-radius: 10px;
  padding: 0;
  margin-top: 0;
  flex-basis: auto;
  cursor: pointer;
}

.gov-hero__btns .aiCard:hover {
  background: #ffffff;
}

.gov-hero__btns .aiCard p {
  margin: 0;
  color: #1a2744;
  font-family: Montserrat, sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  white-space: wrap;
}

#aiDisclaimer {
    text-align: center;
    margin: 1rem auto 0 auto;
    color:#fff;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes pulse-icon-scale {
  0%   { transform: translateY(-50%) scale(1); }
  50%  { transform: translateY(-50%) scale(1.15); }
  100% { transform: translateY(-50%) scale(1); }
}

@media (max-width: 768px) {
  #aiFieldWrap { max-width: 100%; }
}

/* =====================
   Resident Assistant button
   ===================== */
#aiToggle {
  background-image: linear-gradient(to right, #f2b14a 0%, #F2C94C 51%, #f1a329 100%);
  background-size: 200% auto;
  padding: 8px 14px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: background-position 0.5s;
  vertical-align: middle;
}

#aiToggle:hover,
#aiToggle:focus {
  background-position: right center;
  outline: none;
}

#aiToggle svg {
  vertical-align: sub;
}

#aiToggle span {
  padding-left: 2px;
}

/* =====================
   Fullscreen chat overlay
   ===================== */
#fullscreenChatOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999 !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 2rem !important;
  width: 100% !important;
}

#fullscreenChatOverlay.active {
  display: flex;
  opacity: 1;
}

#fullscreenChatContainer {
  position: relative;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100% !important;
  max-height: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

#fullscreenChatHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #2b2b2b;
  color: #fff;
}

#fullscreenChatHeader h1 {
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 16px;
}

#fullscreenChatHeader h1 svg {
  fill: wheat;
  vertical-align: sub;
}

#fullscreenChatClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

#fullscreenChatClose:hover {
  background: rgba(255, 255, 255, 0.1);
}

#fullscreenChatBody {
  flex: 1;
  overflow: hidden;
}

@media (max-width: 900px) {
  #fullscreenChatContainer {
    top: 1rem; left: 1rem; right: 1rem; bottom: 1rem;
  }
}

@media (max-width: 768px) {
  #fullscreenChatContainer {
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 0;
  }
}
