.intro-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.intro-section iframe {
  width: 968px;
  max-width: 100%;
  height: 850px;
  border: none;
}

/* When screen width is smaller than the form width */
@media (max-width: 968px) {
  .intro-section {
    padding: 0 16px;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }

  .intro-section iframe {
    width: 100%;
    height: 1100px; /* ensure Google Form is not cramped */
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-title-image {
    width: 140px;
    height: auto;
  }
}

/* Frame around Google Form */
.form-frame {
  position: relative;
  border: none;
  border-top: 1px solid #666;
  border-left: 1px solid #666;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  border-radius: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  margin: 2rem 0;
}

.form-frame::before {
  content: "";
  display: block;
  width: 100%;
  height: 20px;              /* white top area */
  background: #ffffff;       /* solid white */
}

/* Responsive */
@media (max-width: 968px) {
  .form-frame {
    padding: 0;      /* still no padding on mobile */
    border-radius: 4px;
    margin: 2rem 0;
  }
}

/* Loading overlay for Google Form */
.form-loading {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
  color: #ccc;
}
