/*
  This work is licensed under the Creative Commons Attribution 4.0
  International License. To view a copy of this license,
  visit http://creativecommons.org/licenses/by/4.0/ or send a letter to
  Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
*/

.glam-contact-section {
  border: 1px solid var(--glam-footer-border-color);
  box-shadow: var(--glam-footer-p-box-shadow);
  margin: 6.35% auto 6.35% auto;
  padding: 5px 35px 35px 35px;
  width: 45vw;
}

.glam-contact-header {
  margin: 35px auto;
  width: clamp(150px, 35%, 50%);
}

.glam-light .glam-contact-header img {
  filter: invert(1);
}

.glam-contact-header img {
  width: 100%;
}

.glam-contact-section h1 {
  color: var(--glam-color-muted);
  font-family: 'Bebas Neue', cursive;
  font-size: 4.35ch;
  letter-spacing: .5ch;
  padding: 0 0 0 .5ch;
  text-align: center;
}

.glam-contact-form {
  align-items: center;
  border: 1px solid var(--glam-footer-border-color);
  display: grid;
  grid-auto-flow: row;
  font-size: 3ch;
  letter-spacing: .35ch;
  margin: 35px auto 0 auto;
  padding: 35px;
}

.glam-contact-form div {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1.5fr 2fr;
  margin: 10px 0;
}

.glam-contact-form label {
  font-size: 1.235rem;
  letter-spacing: .075rem;
  margin: 0 15px 0 0;
}

.glam-contact-form input[type = 'text'] {
  align-items: center;
  display: flex;
  min-height: 5ch;
  padding: 0 15px;
}

.glam-contact-form textarea {
  align-items: center;
  display: flex;
  height: 5ch;
  padding: 0 15px;
  width: 100%;
}

.glam-button-group {
  display: flex;
  gap: 1rem;
}

.glam-contact-form button[type = 'reset'] {
  background-color: var(--glam-background-color);
  border: 1px solid var(--glam-footer-border-color);
  color: var(--glam-color);
}

.glam-contact-form button[type = 'submit'] {
  background-color: var(--glam-color);
  border: 1px solid var(--glam-background-color);
  color: var(--glam-background-color);
}

.glam-contact-form button[type = 'reset'],
.glam-contact-form button[type = 'submit'] {
  align-items: center;
  display: flex;
  flex-grow: 1;
  font-size: 1.35ch;
  justify-content: center;
  letter-spacing: .2rem;
  margin: 1rem 0 0 0;
  min-height: 3.735rem;
  padding: 0 15px;
  text-transform: uppercase;
}

@media only screen and (max-width: 1440px) {
  .glam-contact-section {
    width: 65vw;
  }
}

@media only screen and (max-width: 1024px) {
  .glam-contact-section {
    margin: 15% 5% 105px 5%;
    width: 85vw;
  }

  .glam-contact-form div {
    display: flex;
    flex-flow: column;
    margin: 0;
  }

  .glam-contact-form input[type = 'text'],
  .glam-contact-form label {
    margin: 15px 0;
    width: 100%;
  }

  .glam-contact-form button {
    width: 100%;
  }
}

@media only screen and (max-width: 1024px) {
  .glam-contact-section {
    width: auto;
  }
}

@media only screen and (max-width: 500px) {
  .glam-contact-form {
    padding: 1.735rem;
  }

  .glam-contact-form label {
    font-size: .835rem;
    line-height: 2rem;
  }

  .glam-contact-form input {
    margin: 0;
    width: 100%;
  }
}
