/* Form Table */
.form-table {
  display: flex;
  flex-wrap: wrap;
  margin:-15px -20px;
}

.form-table .row {
  flex:0 0 50%;
  max-width:50%;
  padding:15px 20px;
}

.form-table .row--full {
  flex:1 1 100%;
  max-width:100%;
}

.form-table .row-inner {
  display: flex;
}

.form-table .th {
  width:140px;
  font-size:2rem;
  line-height: 1;
  padding:15px 0px;
}

.form-table .td {
  width:calc(100% - 140px);
}

.form-table input,
.form-table select {
  width:100%;
  height:50px;
  font-size:2rem;
  background-color: #f5f5f5;
}

.form-table textarea {
  display: block;
  resize: none;
  width:100%;
  height:200px;
  font-size:2rem;
  background-color: #f5f5f5;
  padding:20px;
}

.form-table .email .email-inner {
  display: flex;
  align-items: center;
}

.form-table .email .email-box {
  display: block;
  width:32%;
}

.form-table .email .email-box:last-child {
  margin-left:12px;
}

.form-table .email span {
  display: block;
  text-align: center;
  font-size:2rem;
  margin:0px 10px;
}

@media screen and (max-width:1200px) {
  .form-table .th {
    width:120px;
    font-size:1.8rem;
  }

  .form-table .td {
    width:calc(100% - 120px);
  }

  .form-table input,
  .form-table select {
    font-size:1.8rem;
  }

  .form-table textarea {
    font-size:1.8rem;
  }

  .form-table .email span {
    font-size:1.8rem;
  }
}
@media screen and (max-width:992px) {
  .form-table {
    margin:-10px;
  }
  
  .form-table .row {
    padding:10px;
  }
  
  .form-table .th {
    padding:10px 0px;
  }

  .form-table input,
  .form-table select {
    height:44px;
  }

  .form-table textarea {
    padding:16px;
  }
}
@media screen and (max-width:768px) {
  .form-table .row {
    flex:1 1 100%;
    max-width:100%;
  }

  .form-table .row-inner {
    display: block;
  }

  .form-table .th {
    width:100%;
    font-size:1.7rem;
    padding:0px 0px 16px;
  }

  .form-table .td {
    width:100%;
  }

  .form-table input,
  .form-table select {
    height:40px;
    font-size:1.7rem;
  }

  .form-table textarea {
    height: 140px;
    font-size:1.7rem;
    padding:16px;
  }

  .form-table .email span {
    font-size:1.7rem;
  }
}
@media screen and (max-width:576px) {
  .form-table {
    margin:-6px;
  }
  
  .form-table .row {
    padding:6px;
  }

  .form-table .th {
    font-size:1.6rem;
    padding:0px 0px 12px;
  }

  .form-table input,
  .form-table select {
    font-size:1.6rem;
  }

  .form-table textarea {
    font-size:1.6rem;
    padding:12px;
  }

  .form-table .email .email-inner {
    flex-wrap: wrap;
    justify-content:space-between;
  }

  .form-table .email .email-box {
    width:46%;
  }

  .form-table .email .email-box:last-child {
    width:100%;
    margin-left:0px;
    margin-top:10px;
  }

  .form-table .email span {
    width:4%;
    font-size:1.6rem;
    margin:0px;
  }
}


/* Form Agree */
.form-agree {
  display: flex;
  justify-content: flex-end;
  margin-top:30px;
}

.form-agree label {
  display: block;
  position: relative;
  cursor: pointer;
}

.form-agree input {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  opacity:0;
  visibility: hidden;
}

.form-agree i {
  display: inline-block;
  position: absolute;
  top:50%;
  left:0;
  transform: translateY(-50%);
  width:22px;
  height:22px;
  background-size: auto 22px;
  background-repeat: no-repeat;
  background-image: url('/child/img/common/btn_check_off.png');
}

.form-agree span {
  display: flex;
  align-items: center;
  font-size:2rem;
  padding-left:30px;
}

.form-agree button {
  display: inline-block;
  font-size: inherit;
  font-weight:700;
  line-height:inherit;
  text-decoration: underline;
  text-underline-offset:6px;
  color:#1fb8df;
}

.form-agree input[type="checkbox"]:checked ~ i {
  background-image: url('/child/img/common/btn_check_on.png');
}

@media screen and (max-width:1200px) {
  .form-agree span {
    font-size:1.8rem;
  }
}
@media screen and (max-width:992px) {
  .form-agree {
    margin-top:24px;
  }

  .form-agree i {
    width:18px;
    height:18px;
    background-size:auto 18px;
  }

  .form-agree span {
    padding-left:24px;
  }
}
@media screen and (max-width:768px) {
  .form-agree {
    justify-content: center;
    margin-top:20px;
  }

  .form-agree span {
    font-size:1.7rem;
  }
}
@media screen and (max-width:576px) {
  .form-agree i {
    width:15px;
    height:15px;
    background-size:auto 15px;
  }

  .form-agree span {
    font-size:1.6rem;
    padding-left:20px;
  }
}


/* Form Buttons */
.form-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top:40px;
}

@media screen and (max-width:1200px) {

}
@media screen and (max-width:992px) {
  .form-buttons {
    margin-top:30px;
  }
}
@media screen and (max-width:768px) {
  .form-buttons {
    margin-top:24px;
  }
}
@media screen and (max-width:576px) {

}


/* Form Modal */
.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  visibility: hidden;
  z-index: 9999999;
}

.form-modal .modal-container {
  position: relative;
  display: grid;
  place-items: center;
  margin: 20px;
  max-width:830px;
  width:100%;
  padding:0px 15px;
  z-index:10;
}

.form-modal .modal-background {
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  background-color: rgba(0, 0, 0, .6);
  z-index:1;
  cursor: pointer;
}

.form-modal .modal-inner {
  width:100%;
  padding:20px;
  background-color: #fff;
}

.form-modal .textarea {
  width:100%;
  height:400px;
  border:1px solid #bfbfbf;
  overflow-y: auto;
}

.form-modal .textarea div {
  padding:20px;
}

.form-modal .textarea p {
  font-size:1.6rem;
  line-height:1.6;
}

.form-modal.open {
  display: grid;
  visibility: visible;
}

@media (max-height:800px) {
  .form-modal .textarea {
    height:280px;
  }
}
@media screen and (max-width:1200px) {

}
@media screen and (max-width:992px) {

}
@media screen and (max-width:768px) {

}
@media screen and (max-width:576px) {

}
