/* Unicity Gym - trial class booking form (see assets/js/trial-form.js) */
html.tf-lock, html.tf-lock body { overflow: hidden; }

.tf-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
  background: rgba(0, 0, 0, .75);
}
.tf-overlay.tf-open { display: flex; }

.tf-panel {
  position: relative; width: 100%; max-width: 680px;
  background: #fff; color: #222; border-radius: 6px; outline: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
  font-family: "Source Sans Pro", "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-size: 16px; line-height: 1.45; text-align: left;
}
.tf-panel * { box-sizing: border-box; }

.tf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #000; border-radius: 6px 6px 0 0;
}
.tf-logo { max-height: 48px; width: auto; }
.tf-header .tf-close {
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.tf-header .tf-close:hover { color: #ccc; }

.tf-title {
  margin: 0; padding: 22px 24px 0; color: #000;
  font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.tf-body { padding: 8px 24px 28px; }
.tf-body p { color: #444; font-size: 16px; margin: 0 0 12px; line-height: 1.45; }
.tf-intro { padding-bottom: 12px; border-bottom: 1px solid #e5e5e5; }
.tf-panel .tf-muted { color: #777; }
.tf-panel .tf-error { color: #c62828; font-weight: 600; }

.tf-link { color: #000; font-weight: 600; text-decoration: underline; }
.tf-link:hover { color: #555; }

.tf-date {
  margin: 22px 0 8px; color: #000;
  font-family: inherit; font-size: 18px; font-weight: 700; text-transform: none;
}
.tf-slots { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e5e5; border-radius: 4px; }
.tf-slot { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.tf-slot + .tf-slot { border-top: 1px solid #e5e5e5; }
.tf-slot:hover { background: #fafafa; }
.tf-slot-img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.tf-slot-time { flex: 0 0 82px; font-weight: 700; color: #000; }
.tf-slot-info { flex: 1; min-width: 0; }
.tf-slot-info strong { display: block; color: #000; }
.tf-slot-info span { display: block; color: #777; font-size: 14px; }

.tf-btn {
  display: inline-block; padding: 12px 28px; border: 2px solid #000; border-radius: 4px;
  background: #000; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px; transition: background .2s, color .2s;
}
.tf-btn:hover, .tf-btn:focus { background: #fff; color: #000; }
.tf-btn:disabled { opacity: .6; cursor: wait; }
.tf-btn-sm { padding: 6px 16px; font-size: 14px; }

.tf-selected {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin: 16px 0 4px; padding: 14px 16px; background: #f4f4f4; border-left: 4px solid #000;
}
.tf-selected-img { flex: 0 0 120px; width: 120px; height: 120px; object-fit: cover; border-radius: 4px; }
.tf-selected-text { flex: 1; min-width: 0; }
.tf-selected strong { color: #000; }
.tf-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #777; }

.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.tf-field span { display: block; margin-bottom: 4px; font-weight: 600; color: #222; font-size: 15px; }
.tf-field em { color: #c62828; font-style: normal; }
.tf-field input {
  width: 100%; height: 44px; padding: 8px 12px; margin: 0;
  border: 1px solid #bbb; border-radius: 4px; background: #fff; color: #222; font: inherit;
}
.tf-field input:focus { border-color: #000; outline: 2px solid rgba(0, 0, 0, .15); }
.tf-field input.tf-invalid { border-color: #c62828; }

.tf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tf-form .tf-btn { width: 100%; margin-top: 20px; }

.tf-done { text-align: center; padding-top: 16px; }
.tf-done h3 { color: #000; font-size: 24px; margin: 8px 0; font-family: inherit; }
.tf-done .tf-selected { text-align: left; }
.tf-done p { margin: 16px 0 22px; }
.tf-directions { display: block; width: 100%; height: auto; margin: 0 0 22px; border: 1px solid #e5e5e5; border-radius: 4px; }
.tf-done-icon {
  width: 60px; height: 60px; margin: 0 auto; border-radius: 50%;
  background: #000; color: #fff; font-size: 32px; line-height: 60px;
}

@media (max-width: 575px) {
  .tf-overlay { padding: 0; }
  .tf-panel { border-radius: 0; min-height: 100%; }
  .tf-header { border-radius: 0; padding: 12px 16px; }
  .tf-title { padding: 18px 16px 0; font-size: 22px; }
  .tf-body { padding: 8px 16px 24px; }
  .tf-grid { grid-template-columns: 1fr; }
  .tf-slot { gap: 10px; padding: 12px; }
  .tf-slot-img { flex-basis: 48px; width: 48px; height: 48px; }
  .tf-slot-time { flex-basis: 64px; }
  .tf-selected { flex-direction: column; gap: 8px; }
  .tf-selected-img { flex-basis: auto; width: 100%; height: 160px; }
}
