/* LAYOUT */
/* LAYOUT */
#custom-registration-module>div:nth-child(2)>div {
  display: none;
}
#custom-registration-module>div>div.active-step {
  display: block;
}
#custom-registration-module h2 {
  text-align: center;
}

.custom-error {
  display: none;
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
}

/* Required field indicator */
.required-field {
  color: red;
  margin-left: 2px;
}

.active {
  display: block;
}

.inactive {
  display: none;
}

.button-active {
  display: block !important;
}
.button-hidden {
  display: none !important;
}

/* MEMBERSHIP SELECTION CSS */
.membership-selection-inside>div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 50px;
}
.membership-selection-block {
  padding: 25px;
  background: #efefef;
  border-radius: 25px;
  width: calc(50% - 25px);
}
.membership-selection-block-info h3 {
  font-size: 25px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}
.membership-selection-block-info {
  text-align: center;
  padding-bottom: 25px;
}
.membership-selection-block-cta a {
  text-align: center;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  background-color: #2F7751;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 15px;
  max-width: 250px;
  margin: 0 auto;
}
.membership-selection-block-cta {
  padding-top: 25px;
  text-align: center;

}
.membership-selection-block-price {
  background: #1D3447;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  margin-left: -25px;
  margin-right: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.membership-selection-block-price span.dollar-value {
  font-size: 50px;
  font-weight: bold;
}
.membership-selection-block-price>div>div {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}
.skip-step {
  padding-top: 0px;
}

.agreement-checkbox {
  height: 20px;
  width: 20px;
}

.skip-step a {
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
/*   background: #aaaaaa; */
/*   color: #ffffff; */
  padding: 20px 25px;
  border-radius: 15px;
  min-width: 250px;
  display: inline-block;
  text-align: center;
}
.next-step a {
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  min-width: 250px;
  background: #2f7751;
  color: #ffffff;
  padding: 20px 25px;
  border-radius: 15px;
}
.next-step {
  text-align: center;
  padding-top: 50px;
}
.membership-selection-block-cta a {
  position: relative;
  transition: 0.2s;
}
.membership-selection-block-cta a:before {
  opacity: 0;
  z-index: -1;
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 25px;
  height: 15px;
  border-bottom: 6px solid #ffffff;
  border-left: 6px solid #ffffff;
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: 0.2s;
}
.membership-selection-block-cta a.active:before {
  opacity: 1;
  z-index: 1;
}
.membership-selection-block-cta a.active {
  color: #2f7751;
}


/*  FORM CSS  */
.membership-form-inside h4 {
  margin-top: 25px;
  margin-bottom: 0;
}
.membership-form-inside label {
  padding-top: 15px;
}
.membership-form-inside form {
  background: #efefef;
  padding: 25px;
  border: none;
  border-radius: 25px;
}
.membership-form-inside fieldset {
  border: none;
  padding: 25px;
}
.field-group-3 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  align-items: flex-start;
  gap: 15px;
}
.field-group-3>div {
  width: calc(33.33% - 15px);
}
.custom-multi-display, .membership-form-inside form input[type=date], .membership-form-inside form input[type=email], .membership-form-inside form input[type=file], .membership-form-inside form input[type=number], .membership-form-inside form input[type=password], .membership-form-inside form input[type=search], .membership-form-inside form input[type=tel], .membership-form-inside form input[type=text], .membership-form-inside form select, form textarea {
  min-height: 50px;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  display: flex;
  background: #ffffff;
  border: 1px solid #aaaaaa;
  font-size: 18px;
  color: #000000;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}
.custom-multi-display>div {
  padding: 5px 10px;
  background: #1d3447;
  color: #fff;
  border-radius: 10px;
  margin: -5px 5px;
}
.membership-form-inside label {
  font-weight: bold;
  margin: 5px 0;
}

/* Add child button - green for positive action */
.add-child {
  padding-top: 15px;
  display: flex;
  justify-content: flex-start;
}

.add-child a {
  background: #2f7751;  /* Green accent color */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.add-child a:hover {
  background: #246240;  /* Darker green on hover */
}

.add-child a i {
  font-size: 16px;
}

.field-group-2 {
  align-content: flex-start;
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.field-group-2>div {
  width: calc(50% - 15px);
}

.checkbox-container{
  display: flex
}

.checkbox{
  padding-top: 15px;
  margin-top: 5px;
  margin-bottom: 5px:
}

.checkbox-container.invalid label {
  color: red; /* A clear red for error text */
  font-weight: bold;
}

/* Remove child button - red for destructive action */
.child-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.child-title h4 {
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.child-title a.remove-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #d32f2f;  /* Red for remove/delete */
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  gap: 6px;
  text-transform: uppercase;
}

.child-title a.remove-child:hover {
  background: #b71c1c;  /* Darker red on hover */
}

.child-title a.remove-child i {
  font-size: 14px;
}

.child-form {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

/* Child counter - auto-numbering */
#add_children_div {
  counter-reset: child-counter;
}

.child-form-wrapper {
  counter-increment: child-counter;
  margin-bottom: 20px;
}

h4.child_number::before {
  content: "Child " counter(child-counter);
}


/* DONATION CSS */
.membership-donation-recurring input {
  height: 25px;
  width: 25px;
}
.membership-donation-recurring {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  gap: 10px;
}
.donation-annually, .donation-onetime {
  display: none;
}
.donation-annually.active, .donation-onetime.active {
  display: block;
}
.membership-donation-block {
  padding: 25px 40px;
  background: #efefef;
  text-align: center;
  border-radius: 15px;
  min-width: 150px;
  cursor: pointer;
}
.membership-donation-inside {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
}

span.donation-amount {
  font-size: 40px;
  font-weight: bold;
}
.membership-donation-block>div {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  justify-content: center;
}
#donation-selection-module h2 {
  text-align: center;
}
.membership-donation-block.selected {
  background: #1d3447;
  color: #ffffff;
}
.custom-multi-wrapper {
  position: relative;
}
.custom-multi-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.custom-multi-options label {
  display: block;
  padding: 8px 10px;
  cursor: pointer;
}
.custom-multi-wrapper.open .custom-multi-options {
  display: block;
}
#membership-form-module select[multiple] {
  display: none !important;
}

input:disabled {
  cursor: not-allowed;
  background: lightgray !important;
}

/* Highlight invalid fields after submit */
form.was-validated input:required:invalid,
form.was-validated select:required:invalid,
form.was-validated textarea:required:invalid {
  border: 2px solid red !important;
  background-color: #ffecec !important;
}

/* Highlight fields dynamically failing custom validation */
.invalid-highlight {
  border: 2px solid red !important;
  background-color: #ffecec !important;
}

/* Override browser autofill for highlighted/invalid fields */
input.invalid-highlight:-webkit-autofill,
input:required:invalid:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #ffecec inset !important; /* sets background */
  -webkit-text-fill-color: #000 !important;            /* text color */
  border: 2px solid red !important;
}

/* Optional: for Firefox autofill (less common) */
input:-moz-autofill {
  box-shadow: 0 0 0px 1000px #ffecec inset !important;
  -moz-text-fill-color: #000 !important;
  border: 2px solid red !important;
}

/* Waivers */

.header-content{
  text-align: center;
}

.waiver-module-block {
    padding: 10px;
    background: #f8f8f8;
    border-radius: 20px;
    margin-bottom: 50px;
}

.waiver-module-inside {
    max-width: 1200px;
    width: 100% !important;
    margin: 0 auto;
    overflow-y: scroll;
    padding: 0 0 !important;
    max-height: calc(100vh - 300px); 

}

.waiver-module-agreement>div {
    text-align: center;
}
.form-container{
  padding:5px;
}
.waiver-header {
  background-color: yellow; border: 2px solid red; text-align: center;
}

.waiver-subheader{
  background-color: yellow; border: 2px solid red; text-align: left;
  padding: 15px;
}

.waiver-bold-text {
  font-weight: bold;
}

.checkbox-input {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  padding: 10px;
  align-items: center;  
}

.checkbox-input>input{
  height: 20px;
  width:20px; 
}

.checkbox-input>label{
  margin:0px;
}

.waiver-header-block{
  background-color: yellow; border: 3px solid red; display: flex; flex-direction: row;
}

.waiver-block{
  display: flex; flex-direction: row;
}

.small-sub-block{
  width: 10%; min-width: 40px;
  padding-left: 5px
}

.large-sub-block{
  width: 90%
}
/*McKenzie Addition */

.agreement-button-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky; 
    align-items: center;
    bottom: 0;
    background: #ffffff; 
    border-top: 1px solid #e0e0e0; 
}

.unchecked{
  background-color: #FFADB0;
  border: 2px solid red;  
}

.checked {
  background-color: #90ee90;
  border: 2px solid green;  
}

/* Progress Indicator */
.registration-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px auto 40px;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
}

.registration-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 13px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.progress-step.active .step-number {
  background: #2f7751;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 119, 81, 0.2);
}

.progress-step.active .step-label {
  color: #2f7751;
  font-weight: bold;
}

.progress-step.completed .step-number {
  background: #4caf50;
  color: #ffffff;
}

.progress-step.completed .step-number::after {
  content: '✓';
}

.progress-step.completed .step-label {
  color: #4caf50;
}

/* Error Summary */
.error-summary {
  background: #ffebee;
  border: 2px solid #f44336;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.error-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.error-summary-header i {
  color: #f44336;
  font-size: 24px;
}

.error-summary-header h4 {
  margin: 0;
  color: #d32f2f;
  font-size: 18px;
}

.error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.error-summary li {
  color: #d32f2f;
  margin-bottom: 8px;
  font-size: 15px;
}

/* Empty State for Children */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 2px dashed #ddd;
  margin-bottom: 20px;
}

.empty-state i {
  opacity: 0.5;
}

/* Better Focus States */
input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border: 2px solid #2f7751 !important;
  box-shadow: 0 0 0 3px rgba(47, 119, 81, 0.1);
  background: #ffffff !important;
}

input:focus:invalid,
select:focus:invalid {
  border: 2px solid #f44336 !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Contact Message - for staff and special membership types */
.contact-message {
  text-align: center;
  padding: 60px 40px;
  background: #f8f9fa;
  border-radius: 20px;
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid #e0e0e0;
}

.contact-message-icon {
  margin-bottom: 20px;
}

.contact-message-icon i {
  font-size: 48px;
  color: #1D3447;
}

.contact-message h2 {
  color: #1D3447;
  margin: 0 0 20px 0;
  font-size: 28px;
}

.contact-message p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.contact-message a {
  color: #2f7751;
  font-weight: bold;
  text-decoration: none;
}

.contact-message a:hover {
  text-decoration: underline;
}

/* Better Mobile Responsiveness */
@media only screen and (max-width: 1200px) {
  .membership-selection-block {
      width: calc(50% - 25px);
  }
}

@media only screen and (max-width: 800px) {
  .membership-selection-block {
      width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .child-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .child-title h4 {
    width: 100%;
  }
  
  .child-title a.remove-child {
    width: 100%;
    justify-content: center;
  }
  
  .registration-progress {
    padding: 0 10px;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .error-summary {
    padding: 15px;
  }
  
  .error-summary-header h4 {
    font-size: 16px;
  }
  
  .contact-message {
    padding: 40px 20px;
    margin: 20px auto;
  }
  
  .contact-message h2 {
    font-size: 24px;
  }
  
  .contact-message-icon i {
    font-size: 36px;
  }
}

/* Signature Section - same styles as general waiver */
.signature-section {
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.name-input-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.name-input-container label {
  flex-shrink: 0;
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

.field-required {
  color: #dc3545;
  margin-left: 4px;
}

.waiver-name-input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.waiver-name-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
  .name-input-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .name-input-container label {
    margin-bottom: 8px;
  }
  
  .waiver-name-input {
    width: 100%;
  }
}