body {
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center; /* Optional: centers the main element itself */
  margin: 0;
  padding: 0;
  background-color: #B7CCC0;
  /*background: url(/images/background_image.jpg) no-repeat;
  background-size: cover; */
}

/* child of body */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  width: 90%;
  min-height: 100dvh;
}

/* child of .page-container */
.navbar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: #B7CCC0;
}

/* Base style for all three columns */
.nav-side {
  flex: 1; /* Forces all three sections to be exactly equal width */
  display: flex;
  align-items: center;
}

/* Align center content perfectly in the middle */
.nav-center {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content:center;
  align-items: center;
  padding: 10px;
  margin: 10px;
  border:rgba(0, 0, 0, 0.3) 2px solid;
  border-radius: 8px;
  box-sizing: border-box;
}

.nav-center h5 {
  font-size: clamp(0.25rem, 1vw + 0.50rem, 0.86rem);  
}

.nav-center h1, .nav-center h2, .nav-center h5 {
  margin: 5px;
}

.nav-left {
  justify-content: flex-start;
  gap: 15px;
}

.nav-right {
  justify-content: flex-end;
  gap: 15px;
  font-size: 20px;
}

/* child of .page-container */
.services-portal-container {
    display: grid;
    /* CHANGED: auto-fit works best here to allow the dynamic centering logic */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* CRITICAL: This centers the active grid columns horizontally in the row */
    justify-content: center;
    /* Centers the cards within their individual grid cells */
    place-items: center;
    gap: 40px;
    width: 100%; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 40px;
}

.services-portal-container a {
  text-align: center;
}

/* child of .services-portal-container */
.service-portal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  font-size: 20px;
  box-shadow: 0px 2px 5px #888;
  border-radius: 8px;
  width: 100%;
  /* CRITICAL: Prevents the card from stretching too wide when it centers */
  max-width: 250px; 
  height: 100%;
  box-sizing: border-box; 
  background-color: #B7CCC0;
}

.resources-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  
  /* Responsive Layout Fixes */
  width: 100%;
  max-width: 1200px;        /* Prevents the container from becoming too wide on large desktops */
  gap: 16px;                 /* Native flexbox spacing instead of reliant margins */
  margin: 0 auto 5px auto;  /* Centers the container horizontally and retains bottom spacing */
  
  padding: 5px;
  height: auto;
  border-radius: 8px;
  box-sizing: border-box;    /* Ensures padding doesn't break the 100% width math */
}

.resource-narrow {
  width:20%;
  height: auto;
}

#sig-submit-btn {
  text-size-adjust: inherit;
}

/* Ensure the child elements scale responsively inside the container */
.resources-container > * {
  flex: 1 1 250px;           /* Grow, shrink, and set a base width of 250px */
  max-width: 100%;           /* Prevents child elements from clipping on tiny screens */
}

.img-our-ponies {
  margin: 10px 0px;
  width: 200px;
  height: auto;           /* Allows the height to be calculated by the aspect ratio */
  aspect-ratio: 1 / 1;   /* Sets your desired ratio (e.g., 1:1, 4:3, 16:9) */
  object-fit: cover;      /* Crops the image to fit the container without distortion */
}

#gallery img {
  width: 200px;
  height: 300px;
}

#gallery img {
  height: 200px;
}

.resource-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  height: 50%;
  
  /* Spacing & Padding */
  padding: 10px;
  
  /* Hover Transition */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* child of .resource-container */
.centered-list {
  text-align: left;
  list-style-position: inside;
  padding-left: 0; /* Removes default browser spacing */
}

.centered-list li {
  font-size: 20px;
}

/* Hover Effect */
.product-container:hover {
  transform: translateY(-5px); /* Lifts the card slightly */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); /* Darkens and grows the shadow */
}

/* Responsive Mobile Sizing */
@media (max-width: 768px) {
  .product-container {
    height: auto; /* Lets content dictate height on small screens */
    width: 100%;  /* Fills the screen width on mobile */
    padding: 15px;
  }
}

/* child of .page-container */
.sticky-footer {
  position:sticky;
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 5px;
  width: 90%;
  background-color: #222;
  color: #d3d4d6;
  bottom: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

a {
  color: black;
}

.link-paragraph a {
  display: block;    /* Makes the link fill the width of the paragraph */
  padding: 15px;     /* Gives the clickable area some breathing room */
  color: #333;       /* Sets text color */
  text-decoration: none; /* Removes the default underline if desired */
  color: inherit;
  font: inherit;
}

/* Optional: Add a hover effect to signal interactivity */
.link-paragraph a:hover {
  background-color: #f0f0f0;
}

.buttons-container {
    display: flex;
    justify-content: space-around;
    margin: 10px;
}

.other-details-grid-container {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  justify-content: space-evenly; 
  width: 100%;  
}

.schedule-form {
  align-items: center;
  width: 75%;
}

@media (max-width: 768px) {
  .schedule-form, .root-container {
    width: 75%;
  }
}

#scheduled-event-container {
  width: 75%;
}

.root-container {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.row-wrapper {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.fields-parent-container {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1.25rem);  
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background-color: #ffffff;
  margin: 20px;
}

.fields-container-item {
  flex: 1 1 50px;
}

/* child of .grid-container*/
.fields-container {
  display: flex;
  flex-wrap: wrap; /* Stack label above input */
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background-color: #ffffff;
}

.checkbox-group {
  margin: 20px 5px 20px 5px;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 5px 20px 10px 20px;
}

[class^="clear-div-accessories-"], [class*=" clear-div-accessories-"] {
  display: flex;
}

.clear-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}

.clear-div label {
  margin-bottom: 5px;
}

.clear-div label, .clear-div input {
  margin: 15px;
}
/*


@media (min-width: 768px) {
  .input-group {
    flex-direction: row;
    align-items: center;
    margin: 10px 40px;
  }
}

@media (min-width: 768px) {
  .input-group input, .input-group select {
  margin: 0 10px;
  font-size: 14px;
  padding: 2px 0;
  min-width: 50px;
  }
}
*/

.input-group input, .input-group select {
  margin: 0px 20px 0px 20px;
  align-self: center;
  padding: 4px 0px 4px 0px;
  width: 100%;
  height: auto;
  font-size: 16px;
  
}

.input-group label {
  font-weight: bold;
  margin: 0px;
}

.grid-container {
  display: grid; /* Changed from inline-grid to occupy full available width */
  /* Dynamically fits columns based on content size, wraps automatically on mobile */
  grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr)); 
  grid-template-rows: auto; 
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1.25rem);  
}

/*
#schedule-event {
  max-width: 800px; 
}
*/

.waiver-container hr {
  margin-top: 25px;
  margin-bottom: 10px;
}

.waiver-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  box-shadow: 0px 2px 5px #888;
  border-radius: 8px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1.25rem); 
  width:50%; 
}

.fields-container h3 {
  align-self: center;
}

/* Actual Form Controls (Inputs, Selects, etc.) */
.field input, 
.field select, 
.field textarea {
  width: auto;
  padding: 8px;
  box-sizing: border-box; /* Prevents padding from breaking width */
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* Desktop Adjustment for 2-Column enforcement */
@media (min-width: 650px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* Forces exactly 2 equal columns */
  }
}

.form-submit-div {
  margin-top: 10px;
}

.no-full-width {
  width:auto;
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
}

/* Styles the select text color ONLY when the placeholder is active */
.custom-select:invalid {
  color: #999999; /* Your placeholder gray color */
}

.custom-select option[disabled] {
  display: none;
}

/* Styles the actual options inside the dropdown menu back to standard dark text */
.custom-select option {
  color: #000000; 
}

.responsive-container, .responsive-input {
  /* Scale width */
  width: clamp(100px, 50vw, 200px);
  /* Scale padding */
  padding: clamp(0.25rem, 1vw, 0.5rem);
}

#event-type-reset {
  display: none;
}

#other-event-type {
  display: none;
}

.styled-border {
  /* Standard styling borders */
  border: 2px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 5px;
}

.downstream-req-body-data {
  display: none;
}

.responsive-input:focus {
border-color: #0066cc;
outline: none;
}

.standard-underline {
  text-decoration: underline;
}

/* used with canvas */
.actions {
  margin-top: 10px;
}

canvas { 
  border: 2px dashed #ccc; 
  border-radius: 4px; 
  background: #fafafa; 
  cursor: crosshair; 
  max-width: 100%; 
  touch-action: none;
}

.signature-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  box-sizing: border-box;
}

.signature-container {
  width: 100%;
  aspect-ratio: 3 / 1;
  position: relative;
  background-color: #fafafa;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  /* Keeps layout clean, but buttons must live outside this container */
  overflow: hidden; 
}

.signature-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.sig-controls { margin-top: 10px; margin-bottom: 20px; }

button, a.cancel-button {
  max-width: 100px;
  box-sizing: border-box;
  padding: 10px;
  /* Fixed: Removed horizontal margin to prevent container overflow */
  margin: 5px 0; 
  font-size: 20px;
  border: none;
  border-radius: 8px;
  color: white;             
  cursor: pointer;           /* Changes cursor to a hand on hover */
  transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
  align-self: center;
}

button a {
  color: #03362a;             
}
a.cancel-button, button a {
  text-decoration: none;
}

.submit-button {
  background-color: pink;
  color: #03362a;
  border: none;
  border-radius: 8px;
  text-decoration: none;
}

.cancel-button {
  background-color: gray; 
}

button:hover, button span:hover {
  color: #00adb5;
  transition: color 0.2s ease-in-out; /* Smooth hover transition */
}

label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}

hr.layout-hr {
  border: none;             /* Removes the default 3D border */
  height: 1px;              /* Sets the thickness of your line */
  background-color: rgba(0, 0, 0, 0.3); /* Changes the actual color */
  opacity: 1;               /* Overrides any default browser transparency */
  width: 90%;
  margin-top: 50px;
  margin-bottom: 50px;
}

.logo-container .title-container {
  display: flex;
}

.title-container h1, .title-container h2, .title-container h3, .title-container h4 {
  text-align: center;
}

h2 {
  font-style: italic;
}

.navbar img {
  width: 125px; 
  height: 125px;
}

/* Hover and active states */
a:hover,
a.active {
    color: #00adb5;
}

@media screen and (min-width: 860px) {
  .sticky-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
}

@media screen and (max-width: 859px){
  .sticky-footer {
      display:flow-root;
      text-align: center;
      padding: 10px;
  }
}

.sticky-footer p span {
  font-size: 20px;
  padding: 0 5px 0 5px;
}

.sticky-footer img {
  width: 100px;
  height: 75px;
  padding-top: 5px;
  padding: 5px;
}

.sticky-footer a {
  color: lightgray;
}

.socials {
  display: flex;
}

.socials span {
padding-left: 15px;
padding-right: 15px;
}

.socials img {
  width: 40px;
  height: 40px;
}

.socials img:hover {
  opacity: 0.5;
}

.calendar-container { 
  max-width: 1000px; 
  margin: 0 auto; 
  background: #fff; 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  padding: 20px; 
  position: relative; 
}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays div { font-weight: bold; text-align: center; padding: 10px 0; background: #eee; }


/* Mobile views (default) */
.grid { 
  display: grid; 
  grid-template-columns: repeat(1, 1fr); /* 1 column on small screens */
  gap: 4px; 
}

/* Mobile landscape / Small tablets */
@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); 
  }
}

/* Tablets */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(5, 1fr); 
  }
}

/* Laptops and Desktops */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(7, 1fr); /* Your original 7 columns */
    min-width: 800px;
  }
}

@media (max-width: 768px) {

} 
@media (max-width: 768px) {
  /* Reduce outer container padding */
  .calendar-container {
  margin: 0 auto; 
  background: #fff; 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  position: relative; 
  padding: 10px;
  }
}
    
    /* Calendar Day Layout */
    .calendar-day { 
      border: 1px solid var(--border-color); min-height: 100px; padding: 6px; 
      display: flex; flex-direction: column; background: #fdfdfd; position: relative;
    }
    .day-number { font-weight: bold; margin-bottom: 4px; }
    .adjacent-month { padding: 6px; background-color: #f1f0f0; color: white; }
    .adjacent-month span:hover {
      color: #00adb5;
    }
    .today { background: #eef7ff; border-color: #007bff; }

    /* Event Badges */
    .event-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
    .event-badge { background: #B7CCC0; color: black; font-size: 11px; padding: 2px 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .more-events { font-size: 11px; color: #666; font-weight: bold; margin-top: 2px; cursor: pointer; text-align: right; }

    /* Popover Styles */
    .popover {
      display: none; position: absolute; z-index: 10; background: white; border: 1px solid #aaa;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 6px; padding: 12px; width: 220px;
    }
    .popover h4 { margin: 0 0 8px 0; font-size: 14px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
    .popover ul { margin: 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.4; }

/*
.calendar-container {
  width: 100%; max-width: 900px; margin: 20px auto;
  font-family: system-ui, sans-serif; border: 1px solid #e0e0e0;
  border-radius: 8px; overflow: hidden; background: #fff;
}
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0;
}
.nav-btn { background: none; border: 1px solid #ccc; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.nav-btn:hover { background: #e9ecef; }
.weekday-row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-weight: 600; background: #f1f3f5;
  border-bottom: 1px solid #e0e0e0; padding: 8px 0;
}
.slider-viewport {
  position: relative; overflow: hidden; width: 100%; height: 750px;
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr); height: 100%; width: 100%;
  position: absolute; top: 0; left: 0; transition: transform 0.3s ease-in-out, opacity 0.3s;
}
.day-cell {
  border-right: 1px solid #f1f3f5; border-bottom: 1px solid #f1f3f5;
  padding: 6px; display: flex; flex-direction: column; background: #fff;
}
.outside-month { background: #f8f9fa; color: #adb5bd; }
.day-number { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.event-list { overflow-y: auto; flex-grow: 1; }
.event-pill {
  background: #B7CCC0; color: black; font-size: 11px;
  padding: 2px 6px; border-radius: 3px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.calendar-more-items {
    font-size: 11px;
    font-weight: 600;
    color: #5f6368; 
    padding: 2px 6px;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    align-self: flex-start; 
}

.calendar-more-items:hover {
    background-color: #f1f3f4;
    color: #1a73e8; 
}

.calendar-events-popover {
    position: absolute;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    min-width: 180px;
    max-width: 240px;
    padding: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.15s ease-out;
}

.popover-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #70757a;
    margin-bottom: 4px;
    letter-spacing: 0.8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}




.autocomplete-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  font-family: sans-serif;
}
*/

#address-input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestions-hidden {
  display: none;
}

#suggestions-list li {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

#suggestions-list li:hover {
  background-color: #f0f0f0;
}

/* Dimmed background overlay */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999; /* Just below the panel */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.overlay-backdrop.active {
    opacity: 1;
    pointer-events: auto; /* Allows clicking to close */
}

/* Slide over side expander */
.side-expander {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;

    /* NEW: Turns the panel into a flexible vertical column */
    display: flex;
    flex-direction: column; 
}

.side-expander.open {
    transform: translateX(0);
    width: max-content;
}

/* Inner formatting */
.expander-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; /* Prevents header from compressing */
}

.expander-content {
  width: max-content;
  padding: 20px;
  flex-grow: 1;           /* Takes up all remaining vertical space */
  overflow-y: auto;       /* Enables vertical scrolling when content overflows */
  
  /* Optional: Adds smooth inertia scrolling on iOS mobile devices */
  -webkit-overflow-scrolling: touch; 
}

.event-meta p {
    margin: 8px 0;
}

.event-meta h3 {
  text-align: center;
}

.expander-fieldname {
  margin-right: 5px;
  font-weight: bold;
}

.login-form {
  align-items: center;
}

.button-div {
  display: flex; 
  justify-content: center;
}

.login-button {
  align-self: center;
}

.login-container, .alt-login-container {
  width: 25%;
  justify-self: center;
  margin: 10px;
  padding: 10px;
}

.alt-login-container {
  font-size: 20px;
}

.alt-login-container hr {
  margin: 25px 0px 25px 0px;
  background-color: #a8a7a7;
}

.password-container {
  position: relative;
  width: 100%;
}

.text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 5px;
  font-size: 20px;
  border: 1px solid #ddd;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}