:root {
  --dgam-purple: #5d278e; /*#5d3578*/
  --dgam-dark-purple: #351d46;
  --dgam-light-grey: #e8e8e8;
  --dgam-text: #555;
  --dgam-white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dgam-text);
}

.dgam-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.dgam-narrow {
  max-width: 900px;
}

.dgam-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  text-align: center;
  background: #ccc url("https://placehold.co/1600x600") center/cover no-repeat;
}

.dgam-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, 0.45);
}

.dgam-hero__content {
  position: relative;
  z-index: 1;
}

.dgam-hero h1 {
  margin: 0 0 30px;
  color: var(--dgam-white);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  font-weight: 800;
}

.dgam-btn {
  display: inline-block;
  background: var(--dgam-purple);
  color: var(--dgam-white);
  padding: 18px 34px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 5px;
}

.dgam-btn:hover{
  background: var(--dgam-dark-purple);
}

.dgam-btn--small {
  padding: 12px 18px;
  font-size: 0.85rem;
}

.dgam-btn--light {
  background: var(--dgam-white);
  color: var(--dgam-dark-purple);
}

.dgam-btn--light:hover{
  background: var(--dgam-purple);
  color: var(--dgam-white);
}

.dgam-intro,
.dgam-downloadables {
  padding: 55px 0;
  text-align: center;
}

.dgam-intro h2,
.dgam-get-involved h2,
.dgam-downloadables h2,
.dgam-faq h2,
.dgam-form-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.dgam-intro p {
  font-size: 1.25rem;
  line-height: 1.35;
}

.dgam-intro strong {
  display: block;
  margin-top: 25px;
  color: var(--dgam-purple);
  font-size: 1.4rem;
}

.dgam-get-involved {
  background: var(--dgam-light-grey);
  padding: 45px 0;
  text-align: center;
}

.dgam-get-involved > .dgam-container > p {
  margin-top: -8px;
  font-size: 1.15rem;
}

.dgam-card-grid,
.dgam-download-grid {
  display: grid;
  gap: 34px;
  margin-top: 38px;
}

.dgam-card-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.dgam-card {
  background: var(--dgam-white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dgam-card:hover,
.dgam-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
  border-color: rgba(93, 53, 120, 0.15);
}

.dgam-card .dgam-btn {
  margin-top: auto;
}

.dgam-card h3,
.dgam-download h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
  line-height: 1.05;
}

.dgam-card p {
  font-size: 0.9rem;
  line-height: 1.2;
}

.dgam-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ddd url("https://placehold.co/500x375") center/cover no-repeat;
  border-radius: 5px;
}

.dgam-img--poster {
  aspect-ratio: 3 / 4;
  background: #ddd url("https://placehold.co/375x500") center/cover no-repeat;
  border-radius: 5px;
}

.dgam-download-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dgam-download {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.dgam-download:hover,
.dgam-download:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  outline: 2px solid rgba(93, 53, 120, 0.35);
}

.dgam-faq {
  background: var(--dgam-purple);
  padding: 55px 0;
  text-align: center;
  color: var(--dgam-white);
}

.dgam-accordion {
  margin-top: 30px;
}

.dgam-accordion details {
  margin-bottom: 12px;
  border-radius: 5px;
  overflow: hidden;
}

.dgam-accordion summary {
  padding: 16px 20px;
  background: var(--dgam-white);
  color: var(--dgam-purple);
  border: 0;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.dgam-accordion summary:hover {
  background: #f5f5f5;
  color: var(--dgam-text);
}

.dgam-accordion details p {
  background: #fff;
  color: #222;
  padding: 18px 24px;
  margin: 0;
}

.dgam-form-section {
  background: var(--dgam-dark-purple);
  padding: 55px 0;
  text-align: center;
  color: var(--dgam-white);
}

.dgam-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dgam-form__field {
  display: grid;
  gap: 10px;
  text-align: left;
}

.dgam-form label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
}

.dgam-form input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: var(--dgam-white);
  font-size: 1rem;
  border-radius: 12px;
}

.dgam-form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.dgam-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(93, 53, 120, 0.14);
}

.dgam-form button {
  grid-column: 2 / 3;
  justify-self: stretch;
  padding: 18px 24px;
  font-size: 1rem;
  max-width: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dgam-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(93, 53, 120, 0.25);
}

.dgam-form__intro,
.dgam-form h3 {
  grid-column: 1 / -1;
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.dgam-form__note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dgam-form .dgam-btn--light {
  background: var(--dgam-purple);
  color: var(--dgam-white);
  border: none;
}

.dgam-form__notice{
  border: 1px solid var(--dgam-white);
  color: var(--dgam-white);
  border-radius: 5px;
  padding: 18px 24px;
}
.dgam-form__notice--error{
  background-color: red;
}
.dgam-form__notice--success{
  background-color: green;
}

.first-name-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .dgam-card-grid--four,
  .dgam-download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dgam-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dgam-form button {
    grid-column: auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .dgam-hero {
    min-height: 330px;
  }

  .dgam-card-grid--four,
  .dgam-download-grid {
    grid-template-columns: 1fr;
  }

  .dgam-intro p {
    font-size: 1.05rem;
  }

  .dgam-form input {
    font-size: 1.2rem;
  }
}