body {
  background: url(/images/The-After-Tiled-bkgd_small2.jpg);
  color: white;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
  padding-left: max(15px, calc(50vw - 480px));
  padding-right: max(15px, calc(50vw - 480px));
}

.logo {
    max-width: 320px; 
}

.rsvp-asap {
    max-width: 290px;
    margin-top: 1.5em;
}

.already-rsvpd {
    max-width: 660px;
    margin: 3em auto;
}

.frame {
  background: url(/images/bg-gold.jpg) no-repeat;
  background-size: cover;
  padding: 15px;
  margin: 60px 0;
  flex: 1;
  box-shadow: 3px 3px 10px grey;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: url(/images/bg-wood.jpg) no-repeat;
  background-size: cover;
}

input[type=radio],
input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio {
  padding-right: 50px;
}
.checkmark {
  position: relative;
  float: left;
  height: 20px;
  width: 20px;
  border: 1px solid #333333;
  background-color: white;
  margin-right: 5px;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
input:checked ~ .checkmark:after {
  display: block;
}

label {
  display: block;
  position: relative;
  margin: 30px 0 0;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0.06em;
}

label#name-field {
    width: 480px;
    max-width: 100%;
}

.row {
  display: flex;
  justify-content: space-between;
  width: 480px;
  max-width: 100%;
}

.row-center {
  justify-content: center;
}

input[type=text],
input[type=email] {
  border: none;
  outline: none;
  margin-top: 5px;
  padding: 7px 10px;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #FFFFFF!important;
  opacity: 1;
  box-sizing: border-box;
}

.row input[type=text],
.row input[type=email] {
  width:  50%;
}

.row input[type=text]:first-child,
.row input[type=email]:first-child {
  margin-right: 15px;
}

.notice {
  max-width: 400px;
  text-align: center;
  font-size: 11px;
  margin: 25px 0;
}

#extra-fields {
  width:  480px;
  max-width: 100%;
}

label#without_guest-field {
  margin-top: 12px;
  font-size: .88em;
}

input[type=submit] {
  background: url(/images/rsvp_asap_v3.png);
  background-size: contain;
  width: 148px;
  height: 48px;
  border: none;
  padding: 0;t
  cursor: pointer;
}

a {
  color: white;
}

.thank-you,
.sorry {
  margin: 30px 0;
  max-width: 600px;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
}

.error {
  font-size: 14px;
  line-height: 30px;
  max-width: 400px;
  text-align: center;
}

.required {
  display: none;
  color: red;
}

@media screen and (max-width: 768px) {
  .frame {
    margin: 15px 0;
  }

  .row {
    flex-direction: column;
  }

  .row-center {
    align-items: flex-start;
  }

  .row input[type=text],
  .row input[type=email] {
    width:  100%;
  }

}