.trial-page {
  padding: 140px 20px 120px;
}

@media screen and (max-width: 768px) {
  .trial-page {
    padding: 100px 0 120px;
  }
}


/* form */

.form-note,
.confirm-note {
  text-align: center;
  margin-bottom: 60px;
  font-size: 14px;
}

.required,
.optional {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  margin-left: 10px;
  vertical-align: middle;
}

.required {
  background: #C49700;
  color: #fff;
}

.error {
  color: #E62222;
  font-size:16px;
  margin-left: 10px;
}

.optional {
  background: #999;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .form-note,
  .confirm-note {
    margin-bottom: 30px;
  }
}

.form-section {
  padding-bottom: 40px;
  border-bottom: 1px solid #C49700;
  margin-bottom: 40px;
}

.form-title {
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: 700;
  display: grid;
  align-items:center;
  grid-template-columns: auto auto 1fr;
}

@media screen and (max-width: 768px) {
  .form-title {
    margin-bottom:10px;
  }
  .error {
    grid-column: 1 / -1;
    margin-top: 4px;
    margin-left:0;
  }
}

.reserve-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .reserve-row {
    gap:10px;
  }
}

.form-group {
  margin-bottom: 35px;
}

.form-group label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items:center;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .form-group label {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .error {
    grid-column: 1 / -1;
    margin-top: 4px;
    margin-left:0;
  }
}

input,
select,
textarea {
  width: 100%;
  height:60px;
  line-height:60px;
  padding:0 20px;
  border: 1px solid #D9D9D9;
  background: #fff;
  font-size: 16px;
  font-weight:400;
  outline: none;
  border-radius: 6px;
}

textarea {
  height: auto;
  min-height: 120px;
  line-height: 1.7;
  padding: 14px 20px;
}

.select-wrap{
  position:relative;
  width:240px;
}

@media screen and (max-width: 768px) {
  .select-wrap{
    width:100%;
  }
}

.select-wrap select {
  appearance: none;
  padding-right: 30px;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #C49700;
  border-bottom: 2px solid #C49700;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #B3B3B3;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #B3B3B3;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #B3B3B3;
}

input::placeholder,
textarea::placeholder {
  color: #B3B3B3;
  opacity: 1;
}

.date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.date-wrap {
  position: relative;
}

.date-wrap img {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}


textarea {
  height: 240px;
  resize: vertical;
}

.birthday-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}

.birthday-wrap select {
  max-width: 240px;
}

.birthday-note {
  font-size: 14px;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .birthday-note {
      text-align:center;
    }
}
.privacy-wrap {
  text-align: center;
  margin: 50px 0 40px;
}

.privacy-wrap a:hover{
  text-decoration:underline;
}

@media screen and (max-width: 768px) {
  .privacy-wrap {
    margin: 0 0 24px;
  }
}

.privacy-wrap label{
  display:flex;
  width:100%;
  justify-content:center;
  align-items:center;
  gap:12px;
  font-weight:400;
}

.privacy-wrap input[type="checkbox"]{
  width:16px;
  height:16px;
}

.submit-wrap {
  text-align: center;
}

.submit-btn,
.send-btn,
.back-btn,
.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap:30px;
  max-width: 400px;
  width:100%;
}

.submit-btn,
.send-btn {
  background: #000;
  color: #c89b2b;
}

.back-btn,
.thanks-btn {
  background: transparent;
  color: #c89b2b;
}

.confirm-box {
  margin-bottom: 70px;
}

.confirm-section {
  padding-bottom: 40px;
  border-bottom: 1px solid #c89b2b;
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .confirm-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #c89b2b;
    margin-bottom: 30px;
  }
}

.confirm-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  align-items:center;
}

.confirm-label {
  min-width: 120px;
}

.confirm-item {
  margin-bottom: 40px;
}

.confirm-item .label {
  color: #666;
  margin-bottom: 15px;
}

.confirm-item .value {
  font-size: 20px;
  line-height: 1.7;
  font-weight:700;
}

.confirm-value{
  font-size:20px;
  font-weight:700;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.thanks-message {
  text-align: center;
  margin-bottom: 70px;
}


.thanks-btn-wrap {
  text-align: center;
}

/* responsive */

@media (max-width: 768px) {

  .trial-heading h1 {
    font-size: 40px;
  }

  .reserve-row {
    grid-template-columns: 1fr;
  }

  .birthday-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .birthday-wrap select {
    max-width: 100%;
  }

  .confirm-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .confirm-item .value {
    font-size: 24px;
  }

  .confirm-buttons {
    flex-direction: column-reverse;
  }

  .submit-btn,
  .send-btn,
  .back-btn,
  .thanks-btn {
    width: 100%;
    min-width: auto;
  }

  .thanks-message p {
    font-size: 18px;
  }
}