/**
 * schedule-a-tour + Pikaday look (scoped to #schedule-a-tour).
 */

#schedule-a-tour.palma-creekstone-schedule {
  --sat-text: var(--heading-color);
  --sat-border: #b8c2c8;
  --sat-muted: #a8a8a8;
  --sat-pika-selected: var(--frond-color);
  --sat-pika-bg: #f3f2f1;
}

#schedule-a-tour.palma-creekstone-schedule .palma-sat-required-note {
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.4;
}

#schedule-a-tour.palma-creekstone-schedule .palma-sat-req {
  color: #b94a48;
}

#schedule-a-tour.palma-creekstone-schedule #schedule-container {
  width: 100%;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  min-height: 430px;
  padding: 0 0 50px;
}

@media only screen and (min-width: 1024px) {
  #schedule-a-tour.palma-creekstone-schedule .sat-wrapper {
    padding: 0 0 180px;
  }
}

/* Form visible on load; calendar opens only when Date field is focused/clicked (bound Pikaday). */
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container {
  display: block;
}

#schedule-a-tour.palma-creekstone-schedule #ApptDate {
  cursor: pointer;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm {
  width: 90%;
}

@media only screen and (min-width: 480px) {
  #schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm {
    width: 80%;
  }
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper {
  margin: 0 0 20px;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper label.frm-label {
  display: block;
  margin: 0 0 5px;
  font-weight: 400;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input[type="text"],
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input[type="email"],
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input[type="tel"],
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input[type="number"] {
  width: 100%;
  border: 1px solid var(--sat-border);
  height: 40px;
  padding: 8px;
}


#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper select {
  width: 100%;
  border: 1px solid var(--sat-border);
  height: 44px;
  color: #222A2E;
  font-weight: 300;
  line-height: 32px;
  padding: 8px;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper select:disabled {
  color: #999;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input,
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper select,
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper textarea {
  margin: 0 0 5px;
  border-radius: 0;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper input:focus,
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper select:focus,
#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .input-wrapper textarea:focus {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 4px rgba(170, 170, 170, 0.6);
  border-color: #a8a8a8;
  outline-color: #a8a8a8;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .error {
  color: #dc3232;
  font-size: 12px;
  font-weight: normal;
  display: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* API / submit errors (outside .sat-wrapper so form can be hidden while message shows) */
#schedule-a-tour.palma-creekstone-schedule #scheduleError.schedule-form-api-error {
  display: none;
  margin: 0;
  padding: 16px;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #58151c;
  background-color: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: 0.375rem;
}

body #schedule-a-tour.palma-creekstone-schedule #scheduleError.schedule-form-api-error {
  margin-top: 24px;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .submit-wrapper {
  margin: 60px 0 0;
  text-align: center;
}

@media only screen and (min-width: 1024px) {
  #schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .submit-wrapper {
    text-align: left;
  }
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .submit-wrapper input[type="submit"] {
  appearance: none;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  padding: 0 0 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom-width: 4px;
  border-bottom-style: solid;
  color: var(--sat-text);
  border-bottom-color: var(--sat-text);
  border-radius: 0;
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .submit-wrapper input[type="submit"]:hover {
  color: rgba(34, 42, 46, 0.75);
  border-bottom-color: rgba(34, 42, 46, 0.75);
}

#schedule-a-tour.palma-creekstone-schedule .sat-wrapper #schedule-container .box #scheduleForm .frm-loader {
  display: none;
  color: var(--sat-text);
  font-size: 33px;
  margin: 10px auto 15px auto;
}

#schedule-a-tour.palma-creekstone-schedule #scheduleSuccess h3 {
  color: var(--sat-text);
  font-size: 25px;
  letter-spacing: 1px;
  margin: 10px 0;
  text-transform: uppercase;
}

#schedule-a-tour.palma-creekstone-schedule #scheduleSuccess p {
  font-family: "Source Serif Pro", Georgia, serif;
  color: var(--sat-muted);
  font-size: 14px;
}

body #schedule-a-tour.palma-creekstone-schedule #scheduleSuccess {
  margin-top: 45px;
}

/*
 * Pikaday: with bound:true the calendar is appended to document.body.
 * Theme class palma-schedule-tour-pika (set in schedule-tour.js) scopes these rules.
 */
.pika-single.palma-schedule-tour-pika {
  --sat-text: var(--heading-color, #222a2e);
  --sat-border: #b8c2c8;
  --sat-muted: #a8a8a8;
  --sat-pika-selected: var(--frond-color, #1a4d2e);
  --sat-pika-bg: #f3f2f1;
  z-index: 10050;
  display: block;
  position: relative;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 32px));
}

.pika-single.palma-schedule-tour-pika.is-hidden {
  display: none;
}

.pika-single.palma-schedule-tour-pika.is-bound {
  position: absolute;
  box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
}

.pika-single.palma-schedule-tour-pika::before,
.pika-single.palma-schedule-tour-pika::after {
  content: " ";
  display: table;
}

.pika-single.palma-schedule-tour-pika::after {
  clear: both;
}

.pika-single.palma-schedule-tour-pika .pika-lendar {
  box-sizing: border-box;
  width: 95%;
  max-width: 100%;
  margin: 12px auto 20px;
}

.pika-single.palma-schedule-tour-pika .pika-title {
  padding: 0 0 20px;
  position: relative;
  text-align: center;
  font-size: 24px;
  color: var(--sat-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
}

.pika-single.palma-schedule-tour-pika .pika-title select {
  cursor: pointer;
  position: absolute;
  z-index: 2;
  margin: 0;
  left: 0;
  top: 5px;
  opacity: 0;
}

.pika-single.palma-schedule-tour-pika .pika-label {
  display: inline-block;
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: 0;
  padding: 5px 3px;
  line-height: 20px;
  font-weight: 500;
}

.pika-single.palma-schedule-tour-pika .pika-prev,
.pika-single.palma-schedule-tour-pika .pika-next {
  display: block;
  cursor: pointer;
  position: relative;
  outline: none;
  border: 0;
  padding: 0;
  width: 40px;
  height: 28px;
  text-indent: 40px;
  white-space: nowrap;
  overflow: hidden;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.pika-single.palma-schedule-tour-pika .pika-prev:hover,
.pika-single.palma-schedule-tour-pika .pika-next:hover {
  opacity: 1;
}

.pika-single.palma-schedule-tour-pika .pika-prev.is-disabled,
.pika-single.palma-schedule-tour-pika .pika-next.is-disabled {
  cursor: default;
  opacity: 0.2;
}

.pika-single.palma-schedule-tour-pika .pika-prev,
.pika-single.palma-schedule-tour-pika.is-rtl .pika-next {
  float: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23222A2E'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.pika-single.palma-schedule-tour-pika .pika-next,
.pika-single.palma-schedule-tour-pika.is-rtl .pika-prev {
  float: right;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23222A2E'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.pika-single.palma-schedule-tour-pika .pika-select {
  display: inline-block;
  font-size: 17px;
}

.pika-single.palma-schedule-tour-pika .pika-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
}

.pika-single.palma-schedule-tour-pika .pika-table th,
.pika-single.palma-schedule-tour-pika .pika-table td {
  padding: 2px;
  box-sizing: border-box;
  vertical-align: top;
}

.pika-single.palma-schedule-tour-pika .pika-table th {
  line-height: 20px;
  font-weight: 500;
  text-align: center;
  color: var(--sat-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pika-single.palma-schedule-tour-pika .pika-table abbr {
  border-bottom: none;
  cursor: help;
}

@media only screen and (max-width: 767px) {
  .pika-single.palma-schedule-tour-pika .pika-button {
    padding: 3px 5px 15px 5px !important;
  }
}

.pika-single.palma-schedule-tour-pika .pika-button {
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  outline: none;
  border: 1px solid var(--sat-border);
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 3px 5px 25px 5px;
  color: #666;
  font-size: 12px;
  line-height: 15px;
  text-align: left;
  background: var(--sat-pika-bg);
}

.pika-single.palma-schedule-tour-pika .is-today .pika-button {
  color: var(--frond-color, var(--sat-pika-selected));
  font-weight: 500;
}

.pika-single.palma-schedule-tour-pika .is-selected .pika-button {
  color: #fff;
  font-weight: bold;
  background: var(--sat-pika-selected);
  border-radius: 0;
}

.pika-single.palma-schedule-tour-pika .is-disabled .pika-button,
.pika-single.palma-schedule-tour-pika .is-outside-current-month .pika-button {
  color: #999;
  opacity: 0.3;
}

.pika-single.palma-schedule-tour-pika .is-disabled .pika-button {
  pointer-events: none;
  cursor: default;
}

.pika-single.palma-schedule-tour-pika .pika-button:hover {
  color: #fff;
  background: var(--sat-pika-selected);
  box-shadow: none;
  border-radius: 0;
}

.pika-single.palma-schedule-tour-pika .pika-button .is-selection-disabled {
  pointer-events: none;
  cursor: default;
}

.pika-single.palma-schedule-tour-pika .pika-week {
  font-size: 11px;
  color: #999;
}

.pika-single.palma-schedule-tour-pika .is-inrange .pika-button {
  color: #666;
  background: #d5e9f7;
}

.pika-single.palma-schedule-tour-pika .is-startrange .pika-button {
  color: #fff;
  background: #6cb31d;
  box-shadow: none;
  border-radius: 0;
}

.pika-single.palma-schedule-tour-pika .is-endrange .pika-button {
  color: #fff;
  background: #3af;
  box-shadow: none;
  border-radius: 0;
}

.palma-schedule-tour__notice {
  padding: 1rem 0;
  color: #666;
}