/* =========================================================
   style casa - Contact Form 7 / common parts
   Replace tswp_sys.css with this file if this CSS is only used
   for the current site/page layout.
========================================================= */

/* Contact Form 7 reset */
.wpcf7 {
  background: none;
  border: none;
  margin: 0;
}

.wpcf7 form {
  margin: 0;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* screen reader / validation messages */
.screen-reader-response {
  display: none;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #b00000;
  font-size: 1.2rem;
  line-height: 1.5;
}

.wpcf7-response-output {
  max-width: 900px;
  margin: 24px auto 0 !important;
  padding: 14px 18px !important;
  border: 1px solid #111 !important;
  color: #111;
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: center;
}

/* =========================================================
   Contact form layout
========================================================= */

.inquiry,
.inquiry * {
  box-sizing: border-box;
}

/* Form table */
table.inquiry {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  border: 1px solid #dcdcdc;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

.inquiry tr {
  border: 0 !important;
}

.inquiry th,
.inquiry td {
  border: 1px solid #dcdcdc;
  vertical-align: middle;
  word-break: break-word;
}

.inquiry th {
  width: 190px;
  padding: 18px 16px;
  background: #f7f7f7;
  color: #111;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.inquiry td {
  padding: 14px 18px;
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  text-align: left;
}

/* Required / optional labels */
.haveto,
.any {
  display: inline-block;
  min-width: 34px;
  margin-right: 8px;
  padding: 4px 6px;
  border-radius: 2px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.haveto {
  background: #b85c5c;
}

.any {
  background: #8b8b8b;
}

/* Input fields */
.inquiry input,
.inquiry select,
.inquiry textarea {
  width: 100%;
  margin: 4px 0;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
}

.inquiry input:focus,
.inquiry select:focus,
.inquiry textarea:focus {
  border-color: #111;
}

.inquiry textarea {
  min-height: 240px;
  resize: vertical;
}

.inquiry input::placeholder,
.inquiry textarea::placeholder {
  color: #888;
}

/* Checkbox / radio */
.inquiry .wpcf7-checkbox,
.inquiry .wpcf7-radio {
  display: block;
  width: auto;
  margin: 0;
}

.inquiry .wpcf7-list-item {
  display: inline-block;
  margin: 0 22px 8px 0;
}

.inquiry .wpcf7-list-item.first {
  margin-left: 0;
}

.inquiry input[type="checkbox"],
.inquiry input[type="radio"] {
  width: auto;
  margin: 0 6px 0 0;
  padding: 0;
  border: 1px solid #777;
  vertical-align: middle;
}

.inquiry .wpcf7-list-item-label {
  padding: 0;
  vertical-align: middle;
}

/* Vertical option list utility */
.verticallist {
  display: inline-grid;
}

/* =========================================================
   Preferred date/time area
========================================================= */

.inquiry .hope_date_area p {
  display: block;
}

.hope_date_area .hope_note {
  margin: 0 0 16px;
  line-height: 1.8;
}

.hope_date_area .hope_group {
  margin-bottom: 18px;
  padding: 16px 18px 14px;
  border: 1px solid #e5e5e5;
  background: #fcfcfc;
}

.hope_date_area .hope_group:last-child {
  margin-bottom: 0;
}

.hope_date_area .hope_label {
  margin: 0 0 6px;
  color: #111;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.hope_date_area .hope_time {
  margin-bottom: 2px;
}

.hope_date_area .hope_time .wpcf7-form-control {
  width: auto;
}

.hope_date_area .hope_time .wpcf7-list-item {
  margin: 0 22px 8px 0;
}

.hope_date_area input[type="date"] {
  max-width: 100%;
}

/* Privacy area */
.privacy_area {
  max-width: 900px;
  margin: 14px auto 0;
  color: #111;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: center;
}

.privacy_area p {
  margin: 0 0 10px;
}

.privacy_area .wpcf7-checkbox {
  display: inline-block;
  width: auto;
}

.privacy_area .wpcf7-list-item {
  margin: 0;
}

.privacy_area input[type="checkbox"] {
  width: auto;
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.privacy_area .wpcf7-list-item-label {
  vertical-align: middle;
}

/* Submit button */
.wpcf7-submit {
  display: block;
  width: 420px;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.wpcf7-submit:hover {
  background: #222;
  opacity: 1;
}

/* Utility */
.red {
  color: #b00000;
}

.w1000 {
  width: 90%;
  margin: auto;
  padding: 1em 0;
}

@media all and (min-width: 768px) {
  .w1000 {
    max-width: 1000px;
  }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {
  table.inquiry {
    max-width: 100%;
  }

  table.inquiry th,
  table.inquiry td {
    display: block;
    width: 100%;
    border-width: 1px 1px 0;
  }

  table.inquiry tr:last-child td {
    border-bottom: 1px solid #dcdcdc;
  }

  .inquiry th {
    padding: 14px 14px;
    font-size: 1.4rem;
  }

  .inquiry td {
    padding: 14px;
    font-size: 1.4rem;
  }

  .inquiry input,
  .inquiry select,
  .inquiry textarea {
    font-size: 1.6rem;
  }

  .inquiry textarea {
    min-height: 180px;
  }

  .inquiry .wpcf7-list-item,
  .hope_date_area .hope_time .wpcf7-list-item {
    display: inline-block;
    margin: 0 18px 10px 0;
  }

  .hope_date_area .hope_group {
    padding: 14px;
  }

  .privacy_area {
    font-size: 1.3rem;
    text-align: left;
  }

  .wpcf7-submit {
    width: 100%;
    margin-bottom: 30px;
  }

  .pcdate {
    display: none;
  }
}

@media (min-width: 769px) {
  .spdate {
    display: none;
  }

  .wpcf7-date.dateform {
    width: 25%;
  }
}

/* =========================================================
   Blog pager / wp-pagenavi
   Kept from the original stylesheet so other pages do not break.
========================================================= */

.blog_pager1 {
  width: 100%;
  height: 50px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;
}

.wp-pagenavi {
  clear: both;
  height: 0;
  padding-top: 0;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  margin: 0 2px;
  padding: 8px 15px;
  border: 1px solid #e0e0d2;
  border-radius: 3px;
  background-color: #fff;
  color: #999;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.wp-pagenavi a:hover {
  border-color: #111;
  background-color: #111;
  color: #fff;
}

.wp-pagenavi span.current {
  border-color: #111;
  background-color: #111;
  color: #fff;
  font-weight: 700;
}
