/* ----------------------------------------
   Footer Section Styles (works for style1 and style2)
---------------------------------------- */

#footer.footer-section {
  /* wrapper.css already provides big padding. Keep it. */
  padding-bottom: 4em; /* matches wrapper.css intent */
  border-radius: 0;
  overflow: visible;
}

/* Title spacing */
#footer.footer-section .section-title {
  margin: 0 0 2rem 0;
}

/* Layout container */
#footer.footer-section .container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-areas:
    "copy form"
    "legal legal";
  gap: clamp(1.5rem, 4vw, 4rem);

  align-items: center;
}

/* Left column copy */
#footer.footer-section header.style1 {
  grid-area: copy;

  width: 100%;
  max-width: 520px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;

  margin: 0;
}

#footer.footer-section header.style1 h2 {
  margin: 0;
  line-height: 1.25;
  font-size: 2em;
}

#footer.footer-section header.style1 p {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.6;
}

#footer.footer-section header.style1 a {
  display: inline-block;
  text-decoration: none;
}

#footer.footer-section header.style1 a:hover {
  text-decoration: underline;
}

/* Right column form */
#footer.footer-section #contact-form {
  grid-area: form;

  width: 100%;
  max-width: 900px;
  justify-self: center;

  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;

  margin: 0;
}

/* MyMusicStaff usually injects an iframe */
#footer.footer-section #contact-form iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: none;
  display: block;
  height: 720px;
}

/* Copyright */
#footer.footer-section #copyright {
  grid-area: legal;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9em;
}

#footer.footer-section #copyright ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer.footer-section #copyright ul li {
  display: inline;
  margin: 0 0.5em;
}

/* ----------------------------------------
   Theme colors
---------------------------------------- */

/* Dark footer (wrapper style2) */
.wrapper.style2#footer.footer-section header.style1 h2 {
  color: #cd533b;
}

.wrapper.style2#footer.footer-section header.style1 p,
.wrapper.style2#footer.footer-section header.style1 a {
  color: #fff;
}

.wrapper.style2#footer.footer-section #copyright {
  color: #aaa;
}

/* Light footer (wrapper style1) */
.wrapper.style1#footer.footer-section header.style1 h2 {
  color: #cd533b;
  font-weight: 525;
}

.wrapper.style1#footer.footer-section header.style1 p {
  color: #0a2463;
  font-weight: 500;
}

.wrapper.style1#footer.footer-section header.style1 a {
  color: #1f4fd8;
  font-weight: 500;
}

.wrapper.style1#footer.footer-section #copyright {
  color: rgba(10, 36, 99, 0.7);
  font-size: 0.8em;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */

@media screen and (max-width: 900px) {
  #footer.footer-section .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "form"
      "legal";
    justify-items: center;
    text-align: center;
    align-items: start;
  }

  #footer.footer-section header.style1 {
    align-items: center;
    text-align: center;
    max-width: 34rem;
  }

  #footer.footer-section #contact-form {
    max-width: 560px;
  }

  #footer.footer-section #contact-form iframe {
    height: 650px;
  }
}
