/* Kids Fair Modern Base Styles */
:root {
  --kids-green: #10b981;
  --kids-red: #ef4444;
  --kids-blue: #3b82f6;
  --kids-bg: #f9fafb;
  --kids-text: #1f2937;
  --container-max-width: 1200px;
}

.kids-fair-block, 
.kids-hero, 
.whats-to-come, 
.kids-community, 
.kids-faq {
  color: var(--kids-text);
  line-height: 1.6;
}

/* Hero Section */
.kids-hero {
  position: relative;
  overflow: hidden;
}

.kids-hero__image {
  width: 100%;
  height: auto;
  display: block;
}

/* What's to Come Section */
.whats-to-come {
  padding: 80px 0;
  background-color: var(--kids-bg);
}

.whats-to-come__header {
  text-align: center;
  margin-bottom: 50px;
}

.whats-to-come__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #2c3e50;
}

.whats-to-come__description {
  font-size: 1.25rem;
  color: #6b7280;
}

.whats-to-come__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.whats-to-come__card {
  background-color: white;
  border-radius: 20px;
  padding: 50px 30px 30px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: visible;
}

.whats-to-come__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

.whats-to-come__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.whats-to-come__icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-accent, var(--kids-purple));
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.whats-to-come__icon img {
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1); /* Make icons white if they are dark */
}

.whats-to-come__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #3e242b;
}

.whats-to-come__card-description {
  font-size: 1rem;
  color: #4b5563;
}

/* Kids Community Section */
.kids-community {
  padding: 100px 0;
  background: linear-gradient(135deg, #fff 0%, #fdecf2 100%);
  position: relative;
}

.kids-community__wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.kids-community__content {
  flex: 1;
}

.kids-community__title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #000;
}

.kids-community__description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #374151;
}

.kids-community__image {
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 25px 25px 0px #f55f95;
}

.kids-community__image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--kids-purple);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background-color: #7c3aed;
  transform: scale(1.05);
}

.community_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 35px;
  border: 1px solid #F55890;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 16px;
  color: #F55890;
  background-color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.community_button:hover {
  background-color: #F55890;
  color: #fff;
  transform: translateY(-2px);
}

/* Kids FAQ Section */
.kids-faq {
  padding: 80px 0;
}

.kids-faq__header {
  text-align: center;
  margin-bottom: 50px;
}

.kids-faq__title {
  font-size: 2.5rem;
  font-weight: 800;
}

.kids-faq__accordion {
  max-width: 800px;
  margin: 0 auto;
}

.kids-faq__item {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.kids-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.kids-faq__question h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.kids-faq__toggle::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--kids-purple);
  font-weight: bold;
  transition: transform 0.3s ease;
  display: inline-block;
}

.kids-faq__item.is-open .kids-faq__toggle::after {
  transform: rotate(45deg);
}

.kids-faq__answer {
  padding-top: 15px;
  color: #4b5563;
  display: none; /* Initially hidden */
}

/* Responsive */
@media (max-width: 991px) {
  .kids-community__wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .kids-community__image {
    box-shadow: 15px 15px 0px #f55f95;
  }
  
  .whats-to-come__title, .kids-community__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .kids-faq, 
  .whats-to-come, 
  .kids-community {
    padding: 40px 10px;
  }
  
  .whats-to-come__title, .kids-community__title {
    font-size: 2rem;
  }
  
  .whats-to-come__grid {
    grid-template-columns: 1fr 1fr;
  }
 
}


@media (max-width: 420px) {
  .whats-to-come__grid{
    gap: 43px;
  }
  .whats-to-come__card-title{
      font-size: 12px;
  }
  .whats-to-come__card-description{
    font-size: 10px;
  }
  .whats-to-come__card{
    padding: 50px 10px 25px;
  }
}

/* Registration Form Styling */
.kids-fair-form {
  max-width: 700px;
  margin: 60px auto;
  background: #fff;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

#kids-fair-registration-form .form-subtitle {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

 #kids-fair-registration-form .form-title {
  color: #ff7675;
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
}

.kids-fair-form .form-group {
  margin-bottom: 25px;
}

.kids-fair-form .form-row {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.kids-fair-form .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.kids-fair-form .form-group.full-width {
  width: 100%;
}

.kids-fair-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 8px;
}

.kids-fair-form input[type="text"],
.kids-fair-form input[type="email"],
.kids-fair-form input[type="tel"],
.kids-fair-form input[type="date"] {
  width: 100%;
  padding: 10px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background-color: #fff;
  color: #1f2937;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.kids-fair-form input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.kids-fair-form input:focus {
  outline: none;
  border-color: #ff7675;
  box-shadow: 0 0 0 4px rgba(255, 118, 117, 0.15);
  background-color: #fff;
}

.kids-fair-form .submit-button {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #ff7675 0%, #fab1a0 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  box-shadow: 0 10px 25px rgba(255, 118, 117, 0.4);
}

.kids-fair-form .submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 118, 117, 0.5);
  filter: brightness(1.05);
}

.consents-wrapper {
  margin: 35px 0;
  padding-left: 0; /* Alignment fix: ensure it starts where labels do */
}

.kids-fair-form .form-check {
  display: flex ;
  align-items: flex-start ;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.kids-fair-form .form-check-input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  margin-top: 2px; /* Align with first line of label text */
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;

  /* Kill Drupal/browser required red shadow */
  box-shadow: none;
  outline: none ;
}
.kids-fair-form .form-check-input[type="checkbox"]:checked {
  background-color: #ff7675;
  border-color: #ff7675;
}
.kids-fair-form .form-check-input[type="checkbox"]:focus {
  border-color: #ff7675;
  box-shadow: 0 0 0 4px rgba(255, 118, 117, 0.2) !important;
}

/* Remove the aggressive red outline from required checkboxes */
.kids-fair-form input[type="checkbox"]:required {
  box-shadow: none ;
  outline: none ;
}

.kids-fair-form .form-check-label {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  display: inline ;
}

.kids-fair-form .form-item {
    margin-bottom: 15px;
}

/* Dynamic Child Section Styles */
.children-list {
  margin-bottom: 20px;
}


#children-wrapper,
.children-list {
  overflow: visible;
}
/* Card — padding-top makes room so button never overlaps fields */
.child-row-container {
  position: relative;
  background: #fff;
  border: 1.5px solid #f1f5f9;
  border-radius: 15px;
  padding: 45px 20px 20px 20px; /* ← top padding creates button zone */
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* ← intentionally hidden now, no hacks needed */
}

.child-row-container:first-child {
  border: none;
  padding: 0;
  margin-bottom: 25px;
  overflow: visible;
}

.child-row-container:hover {
  border-color: #fab1a0;
  box-shadow: 0 5px 15px rgba(250, 177, 160, 0.1);
}

/* Button sits cleanly inside the card top-right */
.kids-fair-form .remove-child-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff5e57;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 300;        /* lighter weight = visually centered × */
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(255, 94, 87, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.kids-fair-form .remove-child-btn:hover {
  background: #e03e37;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(255, 94, 87, 0.5);
}

.kids-fair-form .remove-child-btn:active {
  transform: scale(0.93);
}
.kids-fair-form .add-child-btn {
  display: block;
  width: fit-content;
  margin: 30px auto;
  background: white;
  color: #FF6B6B;
  border: 2px solid #FF6B6B;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kids-fair-form .add-child-btn:hover {
  background: #FF6B6B;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

@media (max-width: 600px) {
  .kids-fair-form {
    padding: 30px 20px;
    margin: 30px 10px;
  }
  
  .kids-fair-form .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  #kids-fair-registration-form .form-title {
    font-size: 1.8rem;
  }
  
 .kids-fair-form input.remove-child-btn {
  top: 10px;
  right: 10px;
}
}


.kids-fair-form .form-type-checkbox {
  display: unset;
}