/* === Base Styles === */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === Content Block === */
.content-block {
  color: #333;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.content-block h1 {
  color: blue;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.content-block h2 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.content-block h3 {
  color: #333;
  font-size: 1em; /* ✅ Fixed spacing error: was '1.0 em' */
  margin-bottom: 0.5em;
}

.content-block p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* === Global Headings === */
h1 {
  text-align: left;
  color: blue;
  font-size: 1.17em;
  font-weight: bold;
  margin: 1em 0;
} /* ✅ Completed block: added missing semicolon + closing brace */

h2 {
  text-align: left;
  font-size: 1.1em;
  color: #333; /* ✅ Removed extra semicolon */
}

h3, h4 {
  text-align: left;
  font-size: 1em;
  color: #333;
}

/* === Dynamic Entry Form === */
.dynamic-entry {
  border: 1px solid #999;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  display: grid;
  gap: 10px;
  background-color: #ededed;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
} /* ✅ Merged duplicate blocks */

.dynamic-entry input[type="text"],
.dynamic-entry input[type="email"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Responsive Grid === */
@media (min-width: 768px) {
  .dynamic-entry {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* === Remove Entry Button === */
.remove-entry {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: 10px;
} /* ✅ Merged duplicate block */

.remove-entry:hover {
  background-color: #e0e0e0;
  color: #000;
}

/* === Form Buttons === */
#add-entry, #submit-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  width: auto;
}

#add-entry:hover, #submit-button:hover {
  background-color: #0056b3;
}

/* === Comments Section === */
.comments-section {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  border: 1px solid #999;
  margin-bottom: 30px;
} /* ✅ Merged duplicate blocks */

.comments-section textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  margin-top: 10px;
}

/* === Header and Navigation === */
.header {
  background-color: white;
  color: black;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  margin-bottom: 10px;
}

.logo img {
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  background-color: #f0f0f0;
  padding: 10px 0;
  color: #000;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: blue;
  font-weight: bold;
}

/* === Hamburger Menu === */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: absolute;
  z-index: 999;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



/* === Utility Classes === */
.relative-layer {
  position: relative;
  z-index: 1;
}

.centered {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* === Poster Layout === */
.poster-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #F8F8FF;
  border-radius: 6px;
}

.poster-layout img {
  max-width: 220px;
  max-height: 300px; /* ✅ Added missing semicolon */
  height: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
  flex-shrink: 0;
  display: block;
}

.poster-text {
  flex: 1;
  min-width: 250px;
  background-color: #F8F8FF;
}

/* === Instructions === */
.instructions {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* === CAPTCHA === */
.captcha-fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-top: 2rem;
  background-color: #ededed;
  box-sizing: border-box;
  border-radius: 6px;
}

.captcha-fieldset legend {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.captcha-container {
  margin-top: 0.5rem;
  display: flex;
  justify-content: left;
}

/* === Symposium Description === */
.symposium-description {
  margin-top: 2rem;
  font-family: sans-serif;
  padding: 20px;
  background-color: #ededed;
  border: 1px solid #999;
  border-radius: 6px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
}

.symposium-block {
  margin-bottom: 2rem;
}

.symposium-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.symposium-block div {
  white-space: pre-wrap;
  line-height: 1.5;
}

.objectives-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.objectives-list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* === Poster Float in Overview === */
.poster-float {
  float: right;
  width: 220px;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.overview-wrapper {
  overflow: hidden;
}

.overview-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* === Responsive Overrides === */
@media (max-width: 768px) {
  .registration-wrapper {
    display: block;
  }

  .poster-layout img {
    margin-bottom: 1rem;
  }

  .poster-text {
    width: 100%;
  }

  .instructions-dt {
    display: none;
  }

  .instructions-m {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 375px) {
  .poster-layout img {
    display: none;
  }
}

@media (min-width: 769px) {
  .poster-layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .instructions-dt {
    display: block;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
  }

  .instructions-m {
    display: none;
  }
}

/* === CAPTCHA Scaling for Small Screens === */
@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}


/* === Form Field Improvements === */
.form-field,
.dynamic-entry input[type="text"],
.dynamic-entry input[type="email"],
.dynamic-entry select,
.comments-section textarea {
  width: 100%;
  padding: 12px; /* ✅ Increased from 8px for better touch targets */
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 20px; /* ✅ Doubled from 10px for clearer spacing */
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Dropdown Styling === */
.dynamic-entry select {
  height: 44px; /* ✅ Increased height for visual clarity */
  background-color: #fff;
  appearance: none; /* Optional: removes native styling for consistency */
  padding-right: 30px; /* ✅ Leaves space for dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.radio-group + select {
  margin-top: 12px; /* ✅ Adds clean vertical spacing between selector and dropdown */
}


label[for="referral_source"] {
  display: block;
  margin-bottom: 10px; /* ✅ Adds space below the question */
  font-weight: bold;
}

.referral-options label {
  display: block;
  margin-bottom: 8px; /* ✅ Adds vertical spacing between options */
  line-height: 1.5;
  cursor: pointer;
}

.referral-options label {
  margin-right: 15px; /* ✅ Adds horizontal breathing room */
}


@media (max-width: 375px) {
  .captcha-fieldset {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #ededed;
    border-radius: 6px;
    position: relative; /* ✅ Ensures it respects container flow */
  }

  .captcha-container {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    left: 0;
  }
}


/*  testing boundaries overflow
.captcha-fieldset {
  outline: 1px solid red;
}
*/

