
.new-join-form {
  margin: 20px auto;
}

h2 {
  font-size: 1.5rem;
  /*margin: 1.25rem 0rem 0rem 0rem;*/
}

h3 {
  font-size: 1.2rem;
  /*margin: 1.25rem 0rem 0rem 0rem;*/
}

.main-container {
  max-width: 1220px;
  /*min-width: 1220px;*/
  padding: 0px;
  background-color: white;
  display: flex;
  gap: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

/* Left and Right Containers */

.left {
  flex: 3; /* 30% of 10 total */
  max-width: 390px;
}

.right {
  flex: 7; /* 70% of 10 total */
  max-width: 810px;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
}

.left,
.right {
  padding: 5px;
  box-sizing: border-box;
}

.right h2 {
  font-weight: 600;
  margin-top: 0;
  color: #000000;
}

/*Banner - left side*/

.banner-box {
  display: flex;
  align-items: center;
  padding: 10px 5px 10px 5px;
margin: 0px auto  10px auto;
   gap: 10px;
}

.banner-image {
  width: 380px;
  height: 59px;
}

/*Breadcrumb Line*/

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
  margin-bottom: 30px;
padding: 0px 10px 10px 5px;
width: 95%;

}

.step {
  width: 25px;
  height: 25px;
  background-color: #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.step-first {
  margin-left: 5px;
}

.step.completed {
  background-color: #00539b;
  color: #fff;
}

.step.active {
  border: 2px solid #00539b;
  background-color: #fff;
  color: #00539b;
}

.line {
  flex-grow: 1;
  height: 2px;
  background-color: #ddd;
}


/*Left Part - Join Us Form - Page 1*/
.join-container {
align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
  border-radius: 0px;
  max-width: 380px;
  width: 100%;

margin: 20px auto 20px auto;
}

.join-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.join-border {
  border: 1px solid #ccc;
  padding: 20px 15px 30px 15px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 12px 12px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  background-color: white;
  color: #333;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.social-button:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.social-button:focus,
.social-button:active,
.social-button:visited {
  text-decoration: none;
  color: #333;
}

/* Utility to remove underline on specific anchor cases from Twig */
.no-underline { text-decoration: none !important; }

.social-button img {
  width: 20px;
  height: 20px;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: #999;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ccc;
}

.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}
/*Email Form*/
.email-wrapper {
  position: relative;
}

.email-wrapper input[type="email"] {
  width: 100%; /* complete input box without grey area */
  height: 42px; /* unify height with password */
  padding: 10px 15px 10px 15px; /* normal padding for complete box */
  border: 1px solid #ccc;
  border-radius: 10px; /* complete rounded rectangle */
  font-size: 16px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18); /* subtle dark shadow like screenshot */
}

.email-wrapper input[type="email"]:focus {
  border: 2px solid #000;
  border-radius: 10px; /* complete rounded rectangle */
  outline: none;
  width: 100%; /* complete input box without grey area */
  padding: 10px 15px 10px 15px; /* normal padding for complete box */
}

/* Override the global .form-control width rule specifically for email input */
.new-join-form .email-wrapper input[type="email"].form-control {
  width: 100% !important; /* complete input box without grey area */
  max-width: none !important;
  border-radius: 10px !important; /* complete rounded rectangle */
}

.new-join-form .email-wrapper input[type="email"].form-control:focus {
  width: 100% !important; /* complete input box without grey area */
  max-width: none !important;
  border-radius: 10px !important; /* complete rounded rectangle */
}

.email-wrapper input::placeholder {
  color: #515050f0;
}


/* Email icon styles removed - now using complete input box */


/*Password Form*/

.password-inline-form {
  margin-top: 30px;
  position: relative;
}

/* Keep the input as a separate complete box before the submit button */
.password-inline-form input[type="password"] {
  display: block !important;
  width: calc(100% - 61px) !important; /* end 1px before submit button (for the border width) */
  max-width: calc(100% - 61px) !important; /* ensure no other styles override */
  height: 42px;
  padding: 10px 15px 10px 15px; /* normal padding since we're not overlapping */
  border: 1px solid #ccc;
  border-radius: 10px 0 0 10px; /* curved left, square right to match submit button */
  font-size: 16px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18); /* match email shadow effect */
}

.password-inline-form input[type="password"]:focus {
  border: 2px solid #000 !important;
  border-radius: 10px 0 0 10px !important; /* curved left, square right to match submit button */
  outline: none;
  width: calc(100% - 62px) !important; /* end 2px before submit button (for the border width) */
  max-width: calc(100% - 62px) !important; /* ensure no other styles override */
  padding-right: 15px;
}

/* Override the global .form-control width rule specifically for password input */
.new-join-form .password-inline-form input[type="password"].form-control {
  width: calc(100% - 61px) !important; /* default state */
  max-width: calc(100% - 61px) !important;
  border-radius: 10px 0 0 10px !important; /* curved left, square right to match submit button */
}

.new-join-form .password-inline-form input[type="password"].form-control:focus {
  width: calc(100% - 62px) !important; /* focus state */
  max-width: calc(100% - 62px) !important;
  border-radius: 10px 0 0 10px !important; /* curved left, square right to match submit button */
}

/* Drupal renders submit as <input type="submit">; style and place it like the grey block */
.password-inline-form input[type="submit"].password-submit-button {
  position: absolute;
  right: 0;
  top: 0; /* lock to input's top so wrapper height changes don't affect it */
  height: 42px; /* match 42px input with 1px border overlap */
  width: 60px; /* same width as email grey block */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d9d9d9;
  /* Text arrow only (no image) */
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  color: #ffffff; /* show text arrow */
  border: none;
  border-radius: 0 6px 6px 0; /* match email grey block curve */
  cursor: pointer;
  font-size: 0; /* prevent text layout shifts */
  line-height: 1;
  transition: background-color 0.3s ease;
}

/* Default text arrow overlaid on wrapper; does not affect button position */
.password-inline-form::after {
  content: "\2192"; /* Unicode right arrow → */
  position: absolute;
  right: 20px; /* same as two-piece head position */
  top: 8px; /* moved up slightly for better vertical alignment */
  transform: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
}

/* hide any duplicate submit that Drupal might render in .form-actions below */
.password-inline-form ~ .form-actions .form-submit { display: none; }

.password-inline-form input[type="submit"].password-submit-button:hover {
  background-color: #bebcbc;
}

/* push Drupal password strength UI below the input+arrow row */
.password-strength,
.password-confirm,
.password-suggestions,
.password-confirm-match,
.password-indicator {
  width: 100%;
  margin-top: 8px;
}

.buy-gift-button {
  margin-top: 20px;
 }

a.buy-gift-button {
  text-decoration: none;
}

/*Right Part - Page 1*/

/*Promotions section*/

.promotions-section {
  background-color:#fff;/*#630f00de;*/
  padding: 0px;
  border-radius: 10px;
  color: white;
  max-width: 800px;
  margin: 10px auto 10px auto;
}

.promotions-grid {
  display: grid;
  grid-template-columns: 450px 300px; /*main promo + side banners*/
  gap: 5px;
  max-width: 760px;
  margin: auto;
  padding: 5px;
}

.main-promo-banner {
  display: block;
padding:0px;
}


.main-promo-banner img {
width: 450px;
height: 295px;

}

.side-banners {
  display: grid;
 grid-template-columns: 1fr 1fr;
  gap: 3px;

}

.side-banners img {
   width: 140px;
  height: 140px;
}

.left-promo {
    width: 450px;
height: 295px;
}

.right-promo {
 width: 140px;
  height: 140px;
}

.hide-on-mobile-right {
  display: block;
}

/*Favorites - circles*/

.favorites-section {
  background-color: #00539b;
  padding: 5px 20px 20px 20px;
  border-radius: 10px;
  color: white;
  max-width: 800px;
  margin: auto;
}

.favorites-section h3 {
  font-size: 1.7em;
  margin-bottom: 15px;
  font-weight: 600;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-start;
}

.logo-grid img {
  width: 69px;
  height: 69px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

.logo-grid img:hover {
  transform: scale(1.05);
}

.more-link {
  display: inline-block;
  margin-top: 20px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
font-size: 1.4em;
}

.more-link:hover {
  text-decoration: none;
}

.more-link:visited {
  text-decoration: none;
}


/*Shopping Promos - Page 1*/

.promo-section {
  background-color:#fff;/*#f3d2e2;*/
  padding: 0.3rem 1.1rem 1.6rem 1.1rem;
  border-radius: 10px;
  color: white;
  max-width: 800px;
  margin: 10px auto 10px auto;
}

.category {
  margin-bottom: 30px;
}

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
}

.promo-card {
  width: 140px;
  height: 140px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.promo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding-bottom: 2.1rem;
  /*padding-left: 1rem;*/

}

.promo-text {
  font-size: 1em;
font-weight:600;
  color: #000;
  padding-top: 10px; /* Space above text */
  margin-top: -60px; /* Raise it visually above bottom */
  text-decoration: none;
  margin-left: 5px;
}


.one-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

  }

 .shopping-title {
    font-weight: bold;
    font-size: 1.4rem;
    color:#000;
  }

  .shopping-link {
    color: #00539B;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
  }

  .shopping-link:hover {
    text-decoration: none;
  }


.view-more {
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.view-more a {
  color: #00539b;
  text-decoration: none;
  font-weight: bold;
}

.view-more a:hover {
  text-decoration: none;
}



.promo-text:hover {
  text-decoration: none;
}

/*Right side - FAQ*/

.faq-section {
  background-color: #fff;/*#a1a2a7;*/
  padding: 0.3rem 1.6rem 1.6rem 1.6rem;
  border-radius: 10px;
  color: #000000;
  max-width: 800px;
  margin: 10px auto 10px auto;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-input {
  display: none;
}

.faq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.faq-label::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-input:checked + .faq-label::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 15px 20px;
  background-color: #fff;
  font-size: 0.95rem;
  color: #333;
}

.faq-input:checked ~ .faq-content {
  display: block;
}

/*Left Side -  Page 2*/


/*form-wrapper ?? - maybe deleted*/
.form-wrapper {
  width: 350px;
  background-color: #fff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

/* Widen form fields inside Joinflow: override theme's 400px max-width cap */
.new-join-form .form-control,
.new-join-form .select-wrapper,
.new-join-form .select-wrapper .form-control {
  max-width: none !important;
  width: 100% !important;
}

/* Normalize Drupal form-item wrappers so spacing is controlled by our .form-group/.row.form-group */
.new-join-form .js-form-item,
.new-join-form .form-item {
  margin: 0 !important;
  padding: 0 !important;
}
/* Joinflow: ensure Drupal's container wrappers don't constrain width in this form */
.new-join-form .form-wrapper:not(.family-form) {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


.form-group {
  margin-bottom: 25px; /* unified spacing between boxes */
}

/* Remove any top margin that might be added by the next section wrapper */
.new-join-form .row.form-group,
.new-join-form .form-group + .row.form-group {
  margin-top: 0 !important;
}

/* Adjust spacing for the row group to match singles */
.row.form-group {
  margin-bottom: 25px;
}

/* Phone/Address rows: force horizontal flex layout */
.new-join-form .row.form-group {
  display: flex !important;        /* force flex layout */
  flex-direction: row !important;  /* force horizontal */
  flex-wrap: nowrap; /* prevent items from dropping to next line */
  gap: 14px;
  align-items: flex-start !important; /* top-align fields so errors do not shift inputs */
  width: 100%;
}

/* Phone field: full width since no dropdown */
.new-join-form .form-group .form-item-phone {
  width: 100% !important;
}

.new-join-form .form-group .form-item-phone input {
  width: 100% !important;
}


/* Phone input */
.new-join-form .row.form-group input[type="tel"] {
  width: 100%;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  box-sizing: border-box;
}



/* Error state: make Phone border red only when Drupal flags error */
.new-join-form .form-group .form-item-phone input.error,
.new-join-form .form-item--error input.form-control,
.new-join-form .form-item--error select.form-control,
.new-join-form .form-item--error .select-wrapper select {
  border: 2px solid #ef4444 !important;
  box-shadow: none !important;
}

/* Row children (wrappers) evenly fill the row width (default) */
.new-join-form .row.form-group > .js-form-item,
.new-join-form .row.form-group > .form-item {
  flex: 1 1 0;
  min-width: 0;  /* allow shrinking within flex */
}

/* Inputs/selects fill their wrapper (no overflow) */
.new-join-form .row.form-group > .js-form-item input,
.new-join-form .row.form-group > .form-item input,
.new-join-form .row.form-group > .js-form-item select,
.new-join-form .row.form-group > .form-item select {
  width: 100% !important;
  box-sizing: border-box;
}

/* Keep row inputs in place when errors render below them */
.new-join-form .row.form-group > .js-form-item,
.new-join-form .row.form-group > .form-item {
  display: flex !important;
  flex-direction: column !important;   /* stack input then error */
}
.new-join-form .row.form-group > .js-form-item .form-item--error-message,
.new-join-form .row.form-group > .form-item .form-item--error-message {
  margin-top: 6px !important;
}

/* Exact 3-column fill: Unit / City / Postal */
.new-join-form .row.form-group .form-item-unit,
.new-join-form .row.form-group .form-item-city,
.new-join-form .row.form-group .form-item-postal {
  flex: 0 0 calc((100% - 20px) / 3) !important; /* 2 gaps of 10px */
}

/* Rebalance widths: Unit slightly wider, City and Postal split the rest */
.new-join-form .row.form-group .form-item-unit {
  flex: 0 0 calc((100% - 20px) / 5) !important; /* ~20% of row */
}
.new-join-form .row.form-group .form-item-city,
.new-join-form .row.form-group .form-item-postal {
  flex: 0 0 calc(((100% - 20px) * 2) / 5) !important; /* ~40% each */
}




input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  padding: 10px;
  font-size: 0.875em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input[type="date"] {
  padding: 10px;
  border: none;
  margin-bottom: 0px;
  font-size: 1em;
  color: black;
}

input[type="date"]:focus {
  outline: none;
} /*delete focus border on date*/

.dob {
  width: 100%;
  padding-left: 0px;
  padding: 2px 0px 2px 6px;
  margin: 0px;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid #ccc;
  background-color: #ffffff;
  color: grey;
}
/* Ensure DOB label and input render on one line inside the box */
.dob {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;       /* shrink vertical padding */
  height: 50px;            /* requested fixed height */
  box-sizing: border-box;
}
.dob label {
  display: inline-block;
  margin: 0 10px 0 0;
  white-space: nowrap;
}
/* Make the date input slimmer inside the dob box */
.dob input[type="date"] {
  padding: 2px 4px;
  height: 26px;
}


.dob:active {
  border: 2px solid black;
}

.row {
  display: flex;
  gap: 10px;
}





















/* Toggle checkbox hidden */
input[type="checkbox"].family-toggle {
  display: none;
}

/* Add Family memeber section */
.family-section {
  display: none;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 15px;
  position: relative;
}

/* Show family section when checked */
input.family-toggle:checked ~ .family-section {
  display: block;
}

.description {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  padding: 12px 0px 0px 0px;
}

.submit-button {
  margin: 30px 0 0 0 !important;        /* flush with left/right of content column */
  padding: 10px 14px;                   /* height like previous */
  background-color: #d8242a !important; /* red */
  color: #fff !important;               /* white text */
  border: none !important;              /* no border */
  width: 100% !important;               /* stretch to both sides */
  display: block !important;
  box-sizing: border-box;
  border-radius: 6px !important;        /* match form field curve */
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.submit-button:hover,
.submit-button:focus {
  background-color: #c52127 !important; /* darker red on hover */
  text-decoration: none;
}

/*new toggle family*/
.toggle-link {
  color: #0056cc;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  display: inline-block;
  font-size: 14px;
}

/* High-specificity override to ensure curved border, spacing, and width */
/* Make inputs inside the family form span the wider interior */
.new-join-form #family-forms-container .family-form input:not([type="submit"]):not([type="button"]),
.new-join-form #family-forms-container .family-form select,
.new-join-form #family-forms-container .family-form .dob input[type="date"] {
  width: 100% !important;
}


/* Active vs Locked state styling for associate forms */
#family-forms-container .family-form.is-active {
  border: 2px solid #0056cc !important;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
#family-forms-container .family-form.is-locked {
  border: 1px solid #ddd !important;
  box-shadow: none !important;
}

.new-join-form #family-forms-container .family-form {
  border-radius: 14px !important;
  padding: 24px 14px !important;   /* reduce side padding so content area is wider */
  border: 2px solid #0056cc !important;
  background: #ffffff !important;
  width: calc(100% + 10px) !important; /* keep slight full-box width increase */
  margin-left: -5px !important;        /* keep it centered within the column */
  margin-right: -5px !important;
  box-sizing: border-box !important;
}

/* Associate form: visually gray out DOB and Email when locked/disabled after Done */
#family-forms-container .family-form input[disabled],
#family-forms-container .family-form .dob input[disabled] {
  background-color: #f0f0f0 !important;
  color: #666 !important;
}
#family-forms-container .family-form .dob[disabled],
#family-forms-container .family-form .dob:has(input[disabled]) {
  background-color: #f7f7f7 !important;
  border-color: #ddd !important;
}
/* Match greying style used by first/last name when locked */
#family-forms-container .family-form .dob.is-locked,
#family-forms-container .family-form .dob.is-locked input {
  background-color: #ededed !important;
  color: #999 !important;
  border-color: #ddd !important;
}
/* Remove any inner wrapper padding/margins that constrain field width */
.new-join-form #family-forms-container .family-form .form-group,
.new-join-form #family-forms-container .family-form .js-form-item,
.new-join-form #family-forms-container .family-form .form-item {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Force inputs/selects to ignore theme max-width caps in this context */
.new-join-form #family-forms-container .family-form .form-group input,
.new-join-form #family-forms-container .family-form .form-group select,
.new-join-form #family-forms-container .family-form .form-item input,
.new-join-form #family-forms-container .family-form .form-item select,
.new-join-form #family-forms-container .family-form .js-form-item input,
.new-join-form #family-forms-container .family-form .js-form-item select {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Reduce inner padding of inputs to make text/content area wider */
.new-join-form #family-forms-container .family-form input[type="text"],
.new-join-form #family-forms-container .family-form input[type="email"],
.new-join-form #family-forms-container .family-form input[type="tel"],
.new-join-form #family-forms-container .family-form select,
.new-join-form #family-forms-container .family-form .form-control {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Date field inside DOB wrapper */
.new-join-form #family-forms-container .family-form .dob input[type="date"] {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Explicitly override theme .form-control max-width in this scope */
/* Remove any forced grey styling from associate email field */
.new-join-form #family-forms-container .family-form input[type="email"] {
  background-color: #fff !important;
  color: inherit !important;
}

.new-join-form #family-forms-container .family-form .form-control {
  max-width: none !important;
  width: 100% !important;
}


.family-form {
  margin-top: 12px;
  margin-left: 0;   /* ensure centered within column */
  margin-right: 0;  /* ensure centered within column */
  width: 100%;      /* fill column width */
  box-sizing: border-box; /* include border/padding in width for alignment */
  border: 2px solid #0056cc;
  padding: 20px 14px;      /* reduce side padding to widen visible content */
  border-radius: 12px;     /* more curved corners on the blue outline */
  background: #fff;        /* ensure white canvas inside the outline */
  transition: all 0.3s ease;
}




.family-form.locked {
  border-color: #ccc;
  background-color: #f9f9f9;
  box-shadow: inset 0 0 5px #ccc;
}


/* Remove any pill/box styling that themes apply to the form actions wrapper of the add button */
#add-link-container .form-actions {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  display: inline-block !important;
}

/* Ensure the add button itself shows as plain link (no white pill) */
#add-link-container .form-actions .form-submit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.done-btn,
.remove-btn {
  background-color: #d8242a;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
/* Place Done and Remove side-by-side inside associate form */
.new-join-form #family-forms-container .family-form .actions-row {
  display: flex;
  gap: 0;
  margin-top: 6px;
}

/* Button styling to match screenshot */
.new-join-form #family-forms-container .family-form .done-btn {
  background-color: #d8242a !important; /* red */
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
.new-join-form #family-forms-container .family-form .remove-btn {
  background-color: #9b9b9b !important; /* grey */
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

/* Fallback selectors without .new-join-form to ensure styling applies */
#family-forms-container .family-form .actions-row {
  display: flex;
  gap: 0;
  margin-top: 6px;
}
/* ensure buttons don't stretch full width */
#family-forms-container .family-form .actions-row .form-actions,
#family-forms-container .family-form .actions-row .form-submit {
  width: auto !important;
  display: inline-flex !important;
}
/* remove default Drupal actions spacing */
#family-forms-container .family-form .actions-row.form-actions {
  margin: 0 !important;
  padding: 0 !important;
}

#family-forms-container .family-form .done-btn {
  background-color: #d8242a !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
/* Force the actions row to align horizontally overriding any theme rules */
#family-forms-container .family-form .actions-row.form-actions.js-form-wrapper.form-wrapper {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  width: auto !important;
}
#family-forms-container .family-form .actions-row.form-actions.js-form-wrapper.form-wrapper .form-submit {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Reduce visual width of submit buttons to 75% of their current size */
#family-forms-container .family-form .actions-row input.form-submit {
  flex: 0 0 auto !important;
  width: auto !important;
  transform: scale(0.75);
  transform-origin: left center;
}

#family-forms-container .family-form .actions-row .done-btn {
  background: #d8242a !important;
  color: #fff !important;
  border: none !important;
}
#family-forms-container .family-form .actions-row .remove-btn {
  background: #9b9b9b !important;
  color: #fff !important;
  border: none !important;
}

  justify-content: center !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
#family-forms-container .family-form .remove-btn {
  background-color: #9b9b9b !important;
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

/* Ensure theme .form-actions wrappers around our buttons are neutral */
#family-forms-container .family-form .actions-row .form-actions {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

  font-size: 13px;
}

/* Hide empty associates region even if whitespace/comments exist */
#family-forms-container:not(:has(.family-form)) {
  display: none !important;
}

/* Remove any hr that themes might inject between sections inside this form */
#caask_joinflow_form_wrapper hr {
  display: none !important;
}

/* Hide empty .form-actions wrappers inside add-link container */
#add-link-container .form-actions:empty {
  display: none !important;
}

/* Hide any AJAX progress bars/throbbers in this form area by default */
#add-link-container .ajax-progress,
#family-forms-container .ajax-progress,
/* Ensure each family form fills the available column width and centers visually */
#family-forms-container .family-form {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

#caask_joinflow_form_wrapper .ajax-progress {
  display: none !important;
}

/* Hide empty associates container to avoid a visible white bar */
#family-forms-container:empty {
  display: none !important;
}

/* Ensure associates container has no visual chrome */
#family-forms-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 0 0 !important;
  min-height: 0 !important;
}

.remove-btn {
  background-color: #999;
  margin-left: 10px;
}

.add-link-container {
  margin-top: 15px;
}

.action-row {
  display: flex;
  justify-content: flex-start;
}


/*Left Side - Payment container - Page 3*/
/*Pay outer - section*/
.pay-container {
  background: #fff; /*#b4b0b0;*/
  padding: 0.3rem;
  border-radius: 10px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.pay-border {
  border: 1px solid #ccc;
  padding: 0.1rem;
}

.pay-txt {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

/*Pay inner - section*/
.payment-container {
  max-width:370px;
  font-family: Arial, sans-serif;
  margin: auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

/*Membership card - section*/
.membership-summary {
  max-width: 360px;
  margin: 20px auto;
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
/*Prices - section*/
.summary-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.summary-card img {
  width: 120px;
  border-radius: 6px;
  border: 2px solid #3399ff;
}

.summary-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem; /* ensure a minimum space between label and amount even when zoomed */
  font-size: 14px;
  margin-bottom: 6px;
}

.summary-line-txt {
  padding-left: 6px;
}

.summary-line.total {
  font-weight: bold;
  font-size: 16px;
}

/*Promocode - section*/

.promocode-container {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  max-width: 370px;
}

.promocode-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
}

.promocode-input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.promocode-apply-btn {
  background-color: #fff;
  color: #00539b;
  border: 2px solid #00539b;
  padding: 10px 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.promocode-apply-btn:hover {
  background-color: #00539b;
  color: #fff;
}

.promocode-remove-btn {
  background-color: #fff;
  color: #d72f2f;
  border: 2px solid #d72f2f;
  padding: 10px 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.promocode-remove-btn:hover {
  background-color: #d72f2f;
  color: #fff;
}

.promocode-msg {
  margin: 5px 0 0;
  font-size: 14px;
}

.promocode-success {
  color: green;
}

.promocode-error {
  color: red;
}

.promocode-hidden {
  display: none;
}

.rv-checkbox {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  gap: 5px;
  font-weight: 700;
}


/*Left side - Choose payment Option -section - Page 3)*/

.payment-options {
  margin-top: 15px;
}

.payment-options label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}


.payment-options input[type="radio"] {
  margin-right: 8px;
}

.subtext {
  font-size: 10px;
  color: #555;
  display: block;
  margin-left: 2.06rem;
}

/* Layout styles for the Monthly plan section */
.plan-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  max-width: 350px;
  font-family: sans-serif;
}

.plan-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-text {
  display: flex;
  flex-direction: column;
}

.plan-title {
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: bold;
  }

.plan-title-annual {
  margin-left: 10px;
}


.plan-subtext {
  font-size: 10px;
  color: #555;
}

.plan-breakdown {
  font-size: 10px;
  color: #d93025;
  margin-top: 3px;
}



.plan-right {
  display: block;
  margin-top: 4px;
  width: 100px;
  margin-left: 30px;
  font-size: 14px;
}

.plan-right a {
  color: #00539b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.plan-right a:hover {
  text-decoration: underline;
}

/* Popup styling */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 38rem;
  height: 39rem;
  background: white;
  transform: translate(-50%, -50%);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  overflow-y: auto;
  z-index: 1000;
  display: none;

}

#terms:target ~ .popup-overlay,
#terms:target ~ .popup {
  display: block;
}

.popup .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  text-decoration: none;
  font-size: 20px;
  color: #000;
  font-weight: bold;
}

.popup h3 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

.table-settings {
 width: 100%;
 font-size: 1rem;
 border-collapse: collapse;
 border: 1px solid #ccc;
}

.table-header {
  background-color: #f2f2f2;
  font-weight: bold;
}

.text-header {
  font-weight: bold;
  text-align: center;
}

.pop-text {
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Agree Button */
.agree-btn {
  margin-top: 20px;
  background-color: white;
  color: #00539b;
  border: 2px solid #00539b;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  text-decoration: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 10rem;
}

.agree-btn:hover {
  background-color: #00539b;
  color: white;
  text-decoration: none;
}

.breakdown {
  color: red;
}

.terms {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  gap: 5px;
  font-weight: 700;
}

.terms a {
  color: #00539b;
  text-decoration: underline;
  display: block;
  margin-top: 4px;
}


/*PayPal / Apple pay buttons section*/
.pay-methods {
  margin-top: 20px;
}

.method-btn {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #f8f8f8;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  transition: background-color 0.2s ease;
}

.method-btn img {
  width: 20px;
  height: 20px;
}

.method-btn:hover {
  background-color: #f0f0f0;
}

/*or divider section*/
.or-pay {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
  color: #888;
}

/*Payment Card form section*/
.card-form {
  max-width: 370px;
  margin: 0 auto;
}

.card-form input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.card-details {
  display: flex;
  gap: 10px;
}

.card-details input {
  flex: 1;
}

.pay-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  padding: 10px;
  background-color: #d32f2f;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.error-msg {
  color: red;
  font-size: 14px;
  margin-top: 8px;
}



/*Right side - Roadside Assistance section (Pay(new) page) - 1*/

.roadside-section {
  background-color: #fff;/* #630f00de;*/
  padding: 0.3rem 1.6rem 1.6rem 1.6rem;
  border-radius: 10px;
  color: #000000;
  max-width: none;
  margin: 0.63rem auto 0.63rem auto;
}

/*.side-container {
    width: 820px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
  }*/

.section {
  margin-bottom: 40px;
}

/* SERVICE ICONS */
.services-grid h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.road-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.service-box {
  text-align: center;
  background: #f9f9f9;
  padding: 5px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: default;
}

.service-box img {
  display: block;
  margin: 0 auto 5px;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: bounceIn 0.6s ease-out;
}

/* Ensure all roadside icons render without any CSS background */
.roadside-section .service-box img {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: multiply; /* neutralize white canvas across all icon PNGs */
}


.service-box:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.2);
}

.service-box p {
  font-size: 14px;
  margin: 0;
}

.service-hide-on-mobile {
    display: none;
  }


/*Membersip Plan section (Pay(new) page) - 2*/

.membersip-plan-section {
  background-color: #fff;/* #00539b;*/
  padding: 0.3rem 1rem 1.6rem 1rem;
  border-radius: 10px;
  color: #000000;
  max-width: 800px;
  margin: 0.63rem auto 0.63rem auto;
}

/* MEMBERSHIP PLANS */
.membership h2 {
  margin-bottom: 20px;
}

.plan-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}


.plan-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/*Pay(new) - Discounts & Savings section - 3*/
.discounts-section {
  background-color: #f3d2e2;
  padding: 0.3rem 1.6rem 1.6rem 1.6rem;
  border-radius: 10px;
  color: #000000;
  max-width: 800px;
  margin: 0.63rem auto 0.63rem auto;
}


/* DISCOUNTS */
.discounts-flex h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.discounts-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.discount-box {
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.discount-box img {
  width: 48px;
  height: 48px;
  margin-right: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: bounceIn 0.6s ease-out;
}

.discount-box:hover img {
  transform: scale(1.15) rotate(-5deg);
  filter: brightness(1.2);
}

.discount-box p {
  margin: 0;
  font-size: 14px;
}

/*Pay(new) - Travel & Trip Protection section - 4*/
.travel-trip-section {
  background-color: #a1a2a7;
  padding: 0.3rem 1.6rem 1.6rem 1.6rem;
  border-radius: 10px;
  color: #000000;
  max-width: 800px;
  margin: 0.63rem auto 0.63rem auto;
}

/* TRAVEL PROTECTION */
.protection-fixed h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.protection-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.trip-box {
  width: calc(33.333% - 13.33px); /* 3 boxes per row with spacing */
  background: #f9f9f9;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.trip-box img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: bounceIn 0.6s ease-out;
}

.trip-box:hover img {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.2);
}

.trip-box p {
  font-size: 14px;
  margin: 0;
}

/* ICON ENTRY ANIMATION */
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Reset styles */
.plan-grid input[type="radio"] {
  display: none;
}



/* Default card style */
.plan-card {
  width: 180px;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  background: #fafafa;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Active style when input is checked */
input[type="radio"]:checked + .plan-card {
  border: 2px solid red;
  background: #fff;
  transform: scale(1.07);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}



/*Responsive Design*/



@media (min-width: 900px) and (max-width: 1220px) {

.main-container {
    flex-direction: row;
  }
/* Left and Right Containers */
  .left {
    width: 360px;
    padding: 0px;
  }

    .right {
    width: 650px;
    margin-top: 20px;
  }

.right h2 {
  text-align: center;
}


/* Left Side Banner */
.banner-box {
   display: flex;
  align-items: center;
  padding: 5px;
  gap: 5px;
  }

.banner-image {
  width: 350px;
  height: 54px;
}

/* Left Side Form Join Us - Page 1*/
.join-container {
  padding: 10px;

  max-width: 340px;
  width: 100%;
margin: 0px auto 0px auto;
}

/*Right Part - Page 1*/

/*Promotions section*/

.promotions-section {
  background-color: #fff; /*#46f534;*/
  padding: 3px;
  max-width: 620px;
}

.main-promo-banner img {
  width: 610px;
height: 400px;
}

.side-banners img {
  width: 148px;
  height: 148px;
}


.promotions-grid {
    grid-template-columns: 1fr;
  }

  .side-banners {
    grid-template-columns: repeat(4, 1fr);
gap:2px;

  }

/* Favorites section - circles*/

  .logo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    justify-items: center;
  }

.favorites-section h3 {
  text-align: center;
}

.fav-1024-hide-on-mobile {
    display: none;
  }

/* Shopping section - circles*/
.promo-section {
  background-color: #fff;/* #fff345;*/
  }

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.promo-card {
  width: 130px;
  height: 130px;
}

.promo-text {
   margin-top: -68px; /* Raise it visually above bottom */

}

.promo-360-hide-on-mobile {
    display: none;
 }


/* Roadside section - right */
.roadside-section {
  background-color: #fff;/* #fff345;*/
  padding: 0.3rem 1rem 1.6rem 1rem;
  max-width: none;
}

.road-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.service-box img {
  width: 40px;
  height: 40px;
}



/*Membersip Plan section (Pay(new) page) - 2*/

.membersip-plan-section {
  background-color: #fff;/* #fff345;*/
  padding: 0.3rem 1rem 1.6rem 1rem;
  max-width: none;
}



/*Pay(new) - Discounts & Savings section - 3*/
.discounts-section {
  background-color: #fff;/* #fff345;*/
  padding: 0.3rem 1rem 1.6rem 1rem;
  max-width: 620px;
}

/*Pay(new) - Travel & Trip Protection section - 4*/
.travel-trip-section {
  background-color: #fff;/* #fff345;*/
  padding: 0.3rem 1rem 1.6rem 1rem;
  max-width: 620px;
}

}


@media (min-width: 320px) and (max-width: 440px){

.main-container {
    flex-direction: column;
  }

.right h2 {
  text-align: center;
}

/* Left and Right Containers */
.left {
    width: 320px;
    padding: 0px;
  }

  .right {
    width: 320px;
    margin-top: 20px;
  }

/* Left Side Banner */
.banner-box {
   display: flex;
  align-items: center;
  padding: 5px;
  gap: 5px;
  }

.banner-image {
  width: 320px;
  height: 49px;
}

/* Left Side Form Join Us - Page 1*/
.join-container {
  padding: 10px;
  max-width: 320px;
  width: 100%;
margin: 0px auto 0px auto;
}

/*Right Part - Page 1*/

/*Promotions section*/

.promotions-section {
  background-color: #fff;/* #fff345;*/
  padding: 3px;
  max-width: 320px;
}

.promotions-grid {
    grid-template-columns: 1fr;
  }

.main-promo-banner img {
  width: 320px;
height: 220px;
}

  .side-banners {
    grid-template-columns: repeat(2, 1fr);
gap:2px;

  }

.side-banners img {
  width: 150px;
  height: 150px;
}

/* Favorites section - circles*/

  .logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    justify-items: center;
  }


.favorites-section h3 {
  text-align: center;
}

.fav-360-hide-on-mobile {
    display: none;
  }


/* Shopping section - circles*/
.promo-section {
  background-color: #fff;/* #fff345;*/
  }

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}


.promo-card {
  width: 125px;
  height: 125px;
}

.promo-360-hide-on-mobile {
    display: none;
  }


/* Roadside section - right */
.roadside-section {
  background-color: #fff;/* #fff345;*/
    padding: 3px;
  max-width: none;
}

.road-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.service-box img {
  width: 40px;
  height: 40px;
}

/*Membersip Plan section (Pay(new) page) - 2*/

.membersip-plan-section {
  background-color: #fff;/* #fff345;*/
    padding: 3px;
  max-width: 320px;
  justify-content: center;
  align-items: center;
}



  .popup {
  width: 90%;
  margin-top: 50px;
  overflow: scroll;
  max-height: 80vh;
  }
}

@media (min-width: 230px) and (max-width: 320px)

{

/* Responsive Design - left, right*/

.main-container {
    flex-direction: column;
  }

 .left {
    width: 280px;
    padding-left: 0px;
  }

  .right {
    width: 280px;
    margin-top: 20px;
  }


/* Left Side Banner */

  .banner-box {
    display: flex;
  align-items: center;
  padding: 5px;
    gap: 5px;
  }

.banner-image {
  width: 280px;
  height: 43px;
}

/* Left Side Form Join Us - Page 1*/
.join-container {
  padding: 10px;
   max-width: 280px;
  width: 100%;
}

.password-inline-form input[type="password"] {
    padding: 10px 5px;
    width: 0.625rem;

}


/*Right Part - Page 1*/

/*Promotions section*/

.promotions-section {
  background-color: #fff;/* #fff345;*/
  padding: 3px;
  max-width: 290px;
}


.main-promo-banner img {
  width: 290px;
height: 190px;
}

.side-banners img {
  width: 140px;
  height: 140px;
}

/*Favorites section - circles*/
.logo-grid img {
  width: 54px;
  height: 54px;
}

/*Shopping section - circles*/

.promo-section {
  background-color: #fff;/* #fff345;*/
  }

.promo-card {
  width: 180px;
  height: 180px;
}

.promo-text {
   margin-top: -68px; /* Raise it visually above bottom */

}

.road-service-grid {
  display: grid;
  grid-template-columns: repeat(1, 7fr);
  gap: 5px;
  }

/* T&C paragraph in checkout popup */
/* Prominent in-panel warnings for checkout errors, without altering layout */
.new-join-form #payment-error .error-message-text.warning {
  display: inline-block;
  background: #fdf3f3;          /* banner bg to match profile banner */
  color: #3A3A3A;               /* banner body text color */
  border: 1px solid #fca5a5;    /* banner border color */
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 10px;
}

/* Keep button below warning with comfortable spacing */
.new-join-form .pay-btn { margin-top: 10px; }

.checkout-tnc-note { margin-top: 15px; font-size: 13px; }

/* Utility to visually hide but keep in DOM, equivalent to inline absolute-offscreen */
.offscreen-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.service-box img {
  width: 30px;
  height: 30px;
 }

   .popup {
  width: 90%;
  margin-top: 80px;
  overflow: scroll;
  max-height: 80vh;
  }
}

/* PROTECTION: Override ALL theme and global CSS interference */
/* Maximum specificity protection against theme css/style.css and styles.css */

/* Force base layout structure with maximum specificity */
.new-join-form .main-container {
  max-width: 1220px !important;
  padding: 0px !important;
  background-color: white !important;
  display: flex !important;
  gap: 10px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  flex-wrap: wrap !important;
}

.new-join-form .left {
  flex: 3 !important;
  max-width: 390px !important;
}

.new-join-form .right {
  flex: 7 !important;
  max-width: 810px !important;
  background-color: #fff !important;
  padding: 10px !important;
  border-radius: 10px !important;
}

/* Protect against ALL responsive overrides at 768px and below */
@media (max-width: 768px) {
  .new-join-form .promotions-grid {
    display: grid !important;
    grid-template-columns: 450px 300px !important;
    gap: 5px !important;
    max-width: 760px !important;
    margin: auto !important;
    padding: 5px !important;
  }

  .new-join-form .side-banners {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
  }

  .new-join-form .side-banners img {
    width: 140px !important;
    height: 140px !important;
  }

  .new-join-form .logo-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    justify-content: flex-start !important;
  }

  .new-join-form .logo-grid img {
    width: 69px !important;
    height: 69px !important;
  }
}

/* Protect against styles.css @media (max-width: 480px) overrides */
@media (max-width: 480px) {
  .new-join-form .side-banners img {
    width: 140px !important;
    height: 140px !important;
    display: block !important;
  }
}
/* Mobile-only: nudge the overlay arrow down slightly without moving the button */
@media (max-width: 480px) {
  .password-inline-form::after {
    top: 11px !important; /* centers a ~20px glyph within a 42px-tall button */
  }
}


/* Protect against styles.css @media (max-width: 400px) overrides */
@media (max-width: 400px) {
  .new-join-form .main-container {
    flex-direction: column !important;
  }

  .new-join-form .left {
    width: 320px !important;
    padding: 0px !important;
  }

  .new-join-form .right {
    width: 320px !important;
    margin-top: 20px !important;
  }
}

/* Force our responsive design over any global styles */
.new-join-form .promotions-section {
  background-color: #fff !important;
  padding: 0px !important;
  border-radius: 10px !important;
  color: white !important;
}

/* Override theme default red error border to our brand red inside new-join-form */
.new-join-form .form-item input.error,
.new-join-form .form-item select.error {
  border: 2px solid #ef4444 !important; /* lighter red */
}


/* Universal error border inside new-join-form, catches Drupal wrapper and aria-invalid */
.new-join-form .form-item--error input,
.new-join-form .form-item--error select,
.new-join-form [aria-invalid="true"],
.new-join-form .form-item--error .select-wrapper select {
  border: 2px solid #ef4444 !important;
  box-shadow: none !important;
}

/* Size and spacing for promotions section (stronger than theme) */
.new-join-form .promotions-section {
  max-width: 800px !important;
  margin: 10px auto 10px auto !important;
}

.new-join-form .favorites-section {
  background-color: #00539b !important;
  padding: 5px 20px 20px 20px !important;
  border-radius: 10px !important;
  color: white !important;
  max-width: 800px !important;
  margin: auto !important;
}

/* Keep Primary Member DOB (mm/dd/yyyy) in a fixed visual position even with errors */
.new-join-form .form-item-dob .dob {
  min-height: 50px !important;    /* preserve original box height */
  height: auto !important;        /* expand only to accommodate error */
  display: flex !important;
  align-items: center !important; /* keep input vertically centered */
  gap: 10px !important;
  flex-wrap: wrap !important;     /* place error on next line if injected inside */
}
.new-join-form .form-item-dob .form-item--error-message {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;     /* show error below input without moving it */
}

/* Hide asterisk for associate DOB label only (inside family-form) */
#family-forms-container .family-form .dob label.form-required::after {
  content: '' !important;
}

/* Anchor Primary Member DOB input and render its error absolutely below without moving the input */
.new-join-form .form-item-dob {
  position: relative !important;
  /* no extra padding so original DOB position stays exactly the same */
}
.new-join-form .form-item-dob > .form-item--error-message {
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 4px) !important; /* show directly below the DOB box */
  width: 100% !important;
  margin: 0 !important;
}

/* Hide the built-in asterisk span for Associate DOB only */
#family-forms-container .family-form .dob label .form-required,
#family-forms-container .family-form .dob .form-required {
  display: none !important;
}



/* Final overrides: ensure associate DOB and Email appear gray when locked */
.new-join-form #family-forms-container .family-form .dob.is-locked {
  background-color: #eee !important;
  border-color: #ddd !important;
}
.new-join-form #family-forms-container .family-form .dob.is-locked input[type="date"] {
  background-color: #eee !important;
  color: #999 !important;
  border-color: #ddd !important;
}
.new-join-form #family-forms-container .family-form input[type="email"][disabled] {
  background-color: #eee !important;
  color: #999 !important;
  border-color: #ddd !important;
}


/* Override any later blue border rules: locked associate forms must not show blue */
.new-join-form #family-forms-container .family-form.is-locked,
.new-join-form #family-forms-container .family-form.is-locked:focus,
.new-join-form #family-forms-container .family-form.is-locked:focus-within {
  border: 1px solid #ddd !important;
  outline: none !important;
  box-shadow: none !important;
}


/* Locked associate card: neutral box look + compact (about half height) */
.new-join-form #family-forms-container .family-form.is-locked {
  border: 1px solid #ddd !important;
  background: #f2f2f2 !important; /* gray card when locked */
  box-shadow: none !important; /* remove neutral shadow */
  border-radius: 10px !important;
  padding: 10px 12px !important; /* roughly half padding */
}
.new-join-form #family-forms-container .family-form.is-locked h3 {
  font-size: 20px !important;
  margin: 0 0 8px 0 !important;
}
.new-join-form #family-forms-container .family-form.is-locked p {
  font-size: 13px !important;
  margin: 0 0 8px 0 !important;
}
/* Compress field spacing and sizes when locked */
.new-join-form #family-forms-container .family-form.is-locked .form-group,
.new-join-form #family-forms-container .family-form.is-locked .js-form-item,
.new-join-form #family-forms-container .family-form.is-locked .form-item {
  margin-bottom: 8px !important;
}
.new-join-form #family-forms-container .family-form.is-locked input[type="text"],
.new-join-form #family-forms-container .family-form.is-locked input[type="email"],
.new-join-form #family-forms-container .family-form.is-locked input[type="tel"],
.new-join-form #family-forms-container .family-form.is-locked select,
.new-join-form #family-forms-container .family-form.is-locked .form-control,
.new-join-form #family-forms-container .family-form.is-locked .dob,
.new-join-form #family-forms-container .family-form.is-locked .dob input[type="date"] {
  padding: 6px 8px !important;
  font-size: 14px !important;
}
/* Tighten buttons row spacing when locked */
.new-join-form #family-forms-container .family-form.is-locked .actions-row {
  margin-top: 6px !important;
}


/* red star next to inline labels (DOB) */
.req-star { color: #d8242a; font-weight: bold; }


/* Align native select arrow with text by using consistent line-height/height */
.new-join-form .row.form-group .form-item-phone-type select {
  height: 44px !important;
  line-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Ensure the dropdown arrow sits on the same baseline on WebKit/Blink */
.new-join-form .row.form-group .form-item-phone-type select::-ms-expand { display: none; }

/* Nudge the custom arrow in the phone-type select a bit lower */
.new-join-form .row.form-group .form-item-phone-type .select-wrapper::after {
  top: 15px !important; /* was ~11px in theme; lower it slightly */
}


/* Checkout page layout helpers (moved from template inline <style>, no visual change) */
.new-join-form .left { order: 1; min-height: 650px !important; }
.new-join-form .right { order: 2; }
.new-join-form .main-container { flex-direction: row; flex-wrap: wrap; }
@media (max-width: 682px), (max-height: 539px) {
  .new-join-form .main-container { flex-direction: column; }
  .new-join-form .left, .new-join-form .right { width: 100%; max-width: none; }
}

/* Make payment iframe responsive and prevent horizontal scrolling */
.new-join-form iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  margin-bottom: 30px !important;
}

/* Ensure payment container children are responsive */
.new-join-form .pay-methods,
.new-join-form .payment-container,
.new-join-form .membership-summary,
.new-join-form .summary-box,
.new-join-form .promocode-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Prevent any element inside new-join-form from causing horizontal overflow */
.new-join-form * {
  max-width: 100%;
  box-sizing: border-box;
}


a.disabled {
  pointer-events: none;
  color: gray;
  text-decoration: none;
  cursor: default;
}

