/* Base */
body {
  margin: 0;
  font: clamp(18px, 3vw, 20px) / 1.6 Verdana, Geneva, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #00B7FF;
  text-decoration: none;
}

/* Header */
#header-banner-container {
  width: 100%;
  background-color: #182d4c;
  margin: 0;
}

#header-banner {
  max-width: 1400px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 10px;
  line-height: 1.3;
  align-items: center;
}

#header-title {
  color: #fff;
  font-size: clamp(24px, 4.5vw, 28px);
  line-height: 1.25;
  margin: 0;
}

#header-bmm-logo {
  height: 150px;
  max-width: 100%;
  display: block;
}

/* Form */
.form-container {
  width: 100%;
  padding-top: 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: fit-content;
  margin: 0 auto;
}

.form__title {
  font-size: clamp(1.25rem, 3vw, 1.4rem);
  font-weight: 600;
  color: #182d4c;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  color: #182d4c;
  opacity: 0.9;
  line-height: 1.35;
}

input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: clamp(1.05rem, 2.8vw, 1.1rem);
  background: #fff;
  transition: border-color 0.15s ease;
  line-height: 1.4;
}

input:focus {
  border-color: #182d4c;
  outline: none;
}

/* Button */
button {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: #182d4c;
  color: #fff;
  font-size: clamp(1.05rem, 2.8vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  line-height: 1.35;
}

button:hover {
  opacity: 0.9;
}

/* Layout container */
#container {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 10px;
}

/* Headings and sections */
.header-text {
  font-size: clamp(28px, 6vw, 36px);
  text-align: center;
  line-height: 1.25;
  margin: 0;
}

.goody-section {
  margin: 50px 0;
  padding: 0 10px;
}

.goody-section-header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100px;
}

.goody-section-header {
  font-size: clamp(32px, 6.5vw, 40px);
  line-height: 1.2;
  margin: 0;
}

.goody-section-header-logo {
  max-width: 200px;
  margin-left: 20px;
}

.goody-section-video-container {
  width: 100%;
  text-align: left;
}

.goody-section-video {
  width: 100%;
  max-width: 800px;
  display: block;
}

.goody-section-image-with-link-container {
  width: fit-content;
  display: flex;
  flex-direction: column;
}

.goody-section-image {
  height: 600px;
  max-width: 100%;
  object-fit: cover;
}

/* Logout */
.logout-btn-container {
  width: 100%;
  text-align: right;
}

#logout-button {
  margin-right: 20px;
}

/* Mobile and tablet adjustments */
@media (max-width: 900px) {
  /* Stack header elements and center */
  #header-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  #header-title {
    order: 1;
    font-size: clamp(26px, 6vw, 32px);
  }

  #header-bmm-logo {
    order: 2;
    height: 120px;
  }

  /* Make form readable and full width */
  .form {
    width: 100%;
    max-width: 520px;
    padding: 0 16px;
  }

  .form__title {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
  }

  label {
    font-size: clamp(1.05rem, 3.2vw, 1.15rem);
  }

  input {
    font-size: clamp(1.1rem, 3.2vw, 1.15rem);
  }

  button {
    font-size: clamp(1.1rem, 3.2vw, 1.15rem);
    padding: 0.9rem;
  }

  /* Larger, more readable body text on small screens */
  body {
    font: clamp(18px, 4vw, 22px) / 1.6 Verdana, Geneva, sans-serif;
  }

  /* Headings scale up for readability */
  .header-text {
    font-size: clamp(30px, 8vw, 40px);
  }

  .goody-section-header {
    font-size: clamp(34px, 8vw, 44px);
  }

  /* Make videos full width with side margin */
  .goody-section-video {
    max-width: 100%;
    margin: 0 12px;
  }

  .goody-section-video-container {
    padding: 0 12px;
  }

  /* Ensure images scale down */
  .goody-section-image {
    height: auto;
    max-width: 100%;
  }

  /* Center logout on small screens */
  .logout-btn-container {
    text-align: center;
    margin-top: 12px;
  }

  #logout-button {
    margin: 0;
  }
}
