/* Bluejack Ranch - contact */

/* Call / location / email */

.bjr-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: var(--bjr-white);
}
.bjr-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 6.65vw, 8.5rem) var(--bjr-gutter) clamp(3.25rem, 7.9vw, 10rem);
  background: var(--bjr-gold);
}
.bjr-contact-card:nth-child(even) { background: var(--bjr-orange); }
.bjr-contact-card__icon {
  display: grid;
  place-items: center;
  width: clamp(64px, 4.9vw, 98px);
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: clamp(1.5rem, 2.1vw, 2.7rem);
  line-height: 1;
}
/* min-height keeps the three buttons level */
.bjr-contact-card__text {
  display: flex;
  align-items: center;
  min-height: 3.1em;
  margin: clamp(1.25rem, 1.95vw, 2.5rem) 0 clamp(1.5rem, 2.5vw, 3.25rem);
  font-style: normal;
  font-size: clamp(1.05rem, 1.35vw, 1.7rem);
  line-height: 1.55;
}
.bjr-contact-card__text a { color: inherit; text-decoration: none; }
.bjr-contact-card__text a:hover,
.bjr-contact-card__text a:focus-visible { text-decoration: underline; }

/* Form (layout is in Forms > Contact) */

.bjr-contact-form {
  padding: clamp(3rem, 6.5vw, 8rem) clamp(1rem, 4.5vw, 5.75rem);
  background: var(--bjr-cream);
}
.bjr-contact-form__card {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.25rem, 4.2vw, 5.5rem) clamp(1.25rem, 6vw, 7.5rem) clamp(2.25rem, 5vw, 6.5rem);
  background: var(--bjr-white);
}
.bjr-contact-form__title {
  margin: 0 0 clamp(1.5rem, 3vw, 3.75rem);
  font-family: var(--bjr-font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.9vw, 3.5rem);
  line-height: 1.15;
  text-align: center;
}
.bjr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 1.9vw, 2.25rem) clamp(1rem, 2.4vw, 3rem);
}
.bjr-form__field--wide { grid-column: 1 / -1; }
.bjr-form input[type="text"],
.bjr-form input[type="email"],
.bjr-form input[type="tel"],
.bjr-form input[type="date"],
.bjr-form select,
.bjr-form textarea {
  display: block;
  width: 100%;
  height: clamp(50px, 4vw, 76px);
  padding: 0 clamp(.9rem, 1.5vw, 1.75rem);
  border: 1.5px solid rgba(198, 157, 102, .6);
  border-radius: 0;
  font-family: inherit;
  font-size: clamp(.95rem, 1.15vw, 1.35rem);
  color: var(--bjr-brown);
  background: var(--bjr-white);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s ease;
}
.bjr-form textarea {
  height: clamp(140px, 9.5vw, 180px);
  padding-top: clamp(.8rem, 1.2vw, 1.4rem);
  padding-bottom: clamp(.8rem, 1.2vw, 1.4rem);
  line-height: 1.5;
  resize: vertical;
}
.bjr-form ::placeholder { color: var(--bjr-brown); opacity: 1; }
.bjr-form input:focus,
.bjr-form select:focus,
.bjr-form textarea:focus { outline: none; border-color: var(--bjr-orange); }
.bjr-form select {
  padding-right: 2.75rem;
  background: var(--bjr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c69d66' stroke-width='1.6'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") right 1.1rem center / 14px no-repeat;
  cursor: pointer;
}
/* small label above fields that have no placeholder (date, time) */
.bjr-form__label {
  display: block;
  margin-bottom: .5em;
  font-weight: 500;
  font-size: clamp(.7rem, .75vw, .9rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bjr-gold);
}
.bjr-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(1.5rem, 2.6vw, 3.25rem);
}
.bjr-form__note { margin: 0; font-size: clamp(.72rem, .75vw, .95rem); }
.bjr-form__note a { color: inherit; }
.bjr-form__foot .bjr-btn { margin: 0 4px 0 auto; }

/* the note under the form replaces the badge */
.grecaptcha-badge { visibility: hidden; }

/* Request Info pop-up (Snippets > bjr_request_info). The dark overlay is .bjr-modal in news.css */

.bjr-modal[hidden] { display: none; }
.bjr-modal--form .bjr-modal__box { width: min(100%, 780px); }
.bjr-modal__card {
  max-height: calc(100vh - 6.5rem);
  max-height: calc(100svh - 6.5rem);
  padding: clamp(1.75rem, 3.2vw, 3.5rem) clamp(1.25rem, 3.6vw, 4rem);
  overflow-y: auto;
  background: var(--bjr-white);
}
.bjr-modal__card:focus { outline: none; }
/* a little tighter than the full-page forms */
.bjr-modal__card .bjr-contact-form__title {
  margin-bottom: clamp(1.25rem, 2vw, 2.25rem);
  font-size: clamp(1.6rem, 2.3vw, 2.6rem);
}
.bjr-modal__card .bjr-form__grid { gap: clamp(.75rem, 1.2vw, 1.25rem); }
.bjr-modal__intro {
  max-width: 34em;
  margin: calc(clamp(.5rem, 1vw, 1.25rem) - clamp(1.25rem, 2vw, 2.25rem)) auto clamp(1.25rem, 2vw, 2.25rem);
  font-size: clamp(.95rem, 1.05vw, 1.2rem);
  line-height: 1.55;
  text-align: center;
}
.bjr-modal__card .bjr-form input:not([type="hidden"]),
.bjr-modal__card .bjr-form select {
  height: clamp(48px, 3.2vw, 58px);
  font-size: clamp(.95rem, 1vw, 1.1rem);
}
.bjr-modal__card .bjr-form textarea {
  height: clamp(120px, 8vw, 150px);
  font-size: clamp(.95rem, 1vw, 1.1rem);
}
.bjr-modal__card .bjr-form__foot { margin-top: clamp(1.25rem, 1.8vw, 2rem); }

/* Follow */

.bjr-follow {
  /* same gap below the icons as the form section leaves above the title */
  padding: 0 var(--bjr-gutter) clamp(3rem, 6.5vw, 8rem);
  text-align: center;
  background: var(--bjr-cream);
}
.bjr-follow__title {
  margin: 0 0 clamp(1.25rem, 2vw, 2.5rem);
  font-family: var(--bjr-font-body);
  font-weight: 400;
  font-size: clamp(.8rem, .95vw, 1.2rem);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bjr-follow__list {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 2.75vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bjr-follow__link {
  display: grid;
  place-items: center;
  width: clamp(48px, 3.65vw, 73px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(1.3rem, 1.85vw, 2.3rem);
  line-height: 1;
  text-decoration: none;
  color: var(--bjr-cream);
  background: var(--bjr-gold);
  transition: color .25s ease, background-color .25s ease;
}
.bjr-follow__link:hover,
.bjr-follow__link:focus-visible { background: var(--bjr-orange); }
/* bi-facebook is already a circle */
.bjr-follow__link--facebook {
  font-size: clamp(48px, 3.65vw, 73px);
  color: var(--bjr-gold);
  background: transparent;
}
.bjr-follow__link--facebook:hover,
.bjr-follow__link--facebook:focus-visible { color: var(--bjr-orange); background: transparent; }

@media (max-width: 767.98px) {
  .bjr-contact-cards,
  .bjr-form__grid { grid-template-columns: 1fr; }
  .bjr-contact-card__text { min-height: 0; }
}
