/* DMS Europe — native coaching calendar */

.account-coach-meeting-page,
.account-coach-meeting-page * { min-width: 0; }

/* Author display rules must never override the native hidden state. */
.account-coach-meeting-page [hidden] { display: none !important; }

.account-coach-meeting-page {
  background: radial-gradient(circle at 94% 4%, rgba(18,163,168,.1), transparent 28%), var(--bg);
}

.account-coach-meeting-heading {
  background: radial-gradient(circle at 94% 8%, rgba(18,163,168,.11), transparent 30%), rgba(255,255,255,.94);
}

.account-coach-meeting-card { overflow: visible; }
.account-coach-meeting-card-head { margin-bottom: 20px; }
.account-coach-meeting-card-head p {
  max-width: 720px; margin: 10px 0 0; color: var(--muted-strong); font-size: 15px; line-height: 1.55;
}

.account-coach-meeting-app {
  padding: 24px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(145deg, #f8fbff, #fff 54%);
}

.account-coach-meeting-loading,
.account-coach-meeting-message {
  display: grid; place-items: center; align-content: center; gap: 15px; padding: 40px 16px; text-align: center;
  color: var(--muted-strong);
}

.account-coach-meeting-spinner {
  width: 38px; height: 38px; border: 3px solid rgba(18,60,105,.14); border-top-color: var(--accent);
  border-radius: 50%; animation: coach-meeting-spin .8s linear infinite;
}

@keyframes coach-meeting-spin { to { transform: rotate(360deg); } }

.account-coach-meeting-scheduler {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: start;
}

.account-coach-meeting-picker h3,
.account-coach-meeting-questions h3 {
  margin: 0 0 12px; color: var(--primary-strong); font-size: 15px; letter-spacing: -.01em;
}

.account-coach-meeting-picker h3:not(:first-child) { margin-top: 24px; }

.account-coach-meeting-days {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px; overflow: visible; padding: 5px 2px 18px;
}

.account-coach-meeting-day,
.account-coach-meeting-time {
  border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer;
  font: inherit; font-weight: 675; transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
}

.account-coach-meeting-day {
  min-height: 70px; padding: 11px 13px; border-radius: 18px; line-height: 1.25;
}

.account-coach-meeting-time { min-height: 48px; padding: 0 14px; border-radius: 15px; }

.account-coach-meeting-day:hover,
.account-coach-meeting-time:hover { border-color: rgba(18,163,168,.5); transform: translateY(-1px); }

.account-coach-meeting-day.is-active,
.account-coach-meeting-time.is-active,
.account-coach-meeting-day.is-selected,
.account-coach-meeting-time.is-selected {
  border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(18,60,105,.18);
}

.account-coach-meeting-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.account-coach-meeting-confirmation {
  position: sticky; top: 20px; display: grid; gap: 18px; padding: 22px; border: 1px solid rgba(18,163,168,.22);
  border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm);
}

.account-coach-meeting-confirmation.is-obscured {
  filter: blur(13px); opacity: .52; pointer-events: none; user-select: none;
  transform: translateZ(0); transition: filter .22s ease, opacity .22s ease;
}

.account-coach-meeting-confirmation > strong {
  color: var(--primary-strong); font-size: 18px; line-height: 1.4; letter-spacing: -.025em;
}

.coach-meeting-methods { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.coach-meeting-methods legend { margin: 0 0 3px; color: var(--primary-strong); font-size: 14px; font-weight: 700; }
.coach-meeting-methods label { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbff; cursor: pointer; }
.coach-meeting-methods input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--primary); }
.coach-meeting-methods span { display: grid; gap: 3px; }
.coach-meeting-methods b { color: var(--primary-strong); font-size: 14px; }
.coach-meeting-methods small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.coach-meeting-phone-fields { display: grid; gap: 7px; padding: 14px; border-radius: 15px; background: #f5f9fc; }
.coach-meeting-phone-fields label { color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.coach-meeting-phone-fields input,.coach-meeting-phone-fields select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.coach-meeting-phone-fields small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.coach-meeting-existing-detail { padding: 12px 16px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.account-coach-meeting-message-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

.account-coach-meeting-questions,
#coach-meeting-location { display: grid; gap: 15px; }

.account-coach-meeting-field { display: grid; gap: 7px; }
.account-coach-meeting-field > label { color: var(--muted-strong); font-size: 13px; font-weight: 675; }
.account-coach-meeting-field > label span { color: var(--muted); font-size: 11px; }

.account-coach-meeting-field input[type="text"],
.account-coach-meeting-field input[type="tel"],
.account-coach-meeting-field textarea,
.account-coach-meeting-field select {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: 0;
  font: inherit; font-size: 14px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}

.account-coach-meeting-field input[type="text"],
.account-coach-meeting-field input[type="tel"],
.account-coach-meeting-field select { min-height: 48px; padding: 0 14px; border-radius: 15px; }
.account-coach-meeting-field textarea { min-height: 108px; padding: 13px 14px; border-radius: 15px; resize: vertical; }

.account-coach-meeting-field input:focus,
.account-coach-meeting-field textarea:focus,
.account-coach-meeting-field select:focus {
  border-color: rgba(18,163,168,.6); box-shadow: 0 0 0 4px rgba(18,163,168,.1);
}

.account-coach-meeting-choices { display: grid; gap: 8px; }
.account-coach-meeting-choices label {
  display: flex; gap: 9px; align-items: center; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; color: var(--muted-strong); font-size: 13px; font-weight: 625;
}
.account-coach-meeting-choices input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); }
.account-coach-meeting-other { margin-top: 7px; }

.account-coach-meeting-confirm-button { width: 100%; min-height: 50px; }
.account-coach-meeting-confirm-button:disabled { opacity: .65; cursor: wait; }
.account-coach-meeting-form-error { margin: 0; color: #9e2f2f; font-size: 13px; line-height: 1.45; font-weight: 625; }

.account-coach-meeting-message strong { color: var(--primary-strong); font-size: clamp(23px, 3vw, 34px); letter-spacing: -.04em; }
.account-coach-meeting-message p { max-width: 580px; margin: 0; line-height: 1.6; }
.account-coach-meeting-success-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.account-coach-meeting-success-links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 675;
}

.account-coach-meeting-fallback {
  margin: 18px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center;
}
.account-coach-meeting-fallback a {
  color: var(--primary); font-weight: 675; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.account-coach-meeting-fallback a:hover { color: var(--primary-strong); }

.coach-meeting-manage-shell.is-public {
  display: block; width: min(920px, calc(100% - 48px)); margin: 0 auto;
}
.coach-meeting-manage-shell.is-public .account-dashboard-content { width: 100%; }
.coach-meeting-manage-shell.is-account .account-coach-meeting-content {
  max-width: none; margin-inline: 0;
}
.coach-meeting-manage-page .account-coach-meeting-heading h1 {
  max-width: 760px; overflow-wrap: normal; word-break: normal; font-size: clamp(36px, 4vw, 54px);
}
.coach-meeting-manage-page .account-coach-meeting-card {
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.coach-meeting-manage-page .account-coach-meeting-app { padding: 0; border: 0; border-radius: 0; background: transparent; }
.coach-meeting-manage-page .account-coach-meeting-loading,
.coach-meeting-manage-page #coach-manage-message {
  min-height: 220px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm);
}
#coach-manage-content { display: grid; gap: 20px; }
.coach-manage-summary {
  display: grid; gap: 26px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(145deg, #fff, #fbfdff); box-shadow: var(--shadow-sm);
}
.coach-manage-summary dl {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0;
}
.coach-manage-summary dl div { display: grid; gap: 7px; }
.coach-manage-summary dt { color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.coach-manage-summary dd { margin: 0; color: var(--primary-strong); font-size: clamp(18px, 1.7vw, 22px); font-weight: 750; line-height: 1.35; }
.coach-manage-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.coach-manage-secondary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-left: auto; }
.coach-manage-actions .btn { min-height: 46px; }
.coach-manage-actions .is-danger { color: #9e2f2f; border-color: rgba(158,47,47,.24); background: #fff7f7; }
.coach-manage-reschedule {
  display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: #fff;
}
.coach-manage-reschedule h2 { margin: 8px 0 0; color: var(--primary-strong); font-size: 18px; }
.coach-manage-cutoff { grid-column: 1 / -1; margin: 0; color: var(--muted-strong); line-height: 1.55; }

@media (max-width: 760px) {
  .coach-meeting-manage-shell.is-public { width: min(100% - 24px, 920px); }
  .coach-manage-summary dl { grid-template-columns: 1fr; }
  .coach-manage-actions { align-items: stretch; flex-direction: column; }
  .coach-manage-secondary-actions { display: grid; grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .coach-manage-actions .btn { width: 100%; }
}

@media (max-width: 940px) {
  .account-coach-meeting-scheduler { grid-template-columns: 1fr; }
  .account-coach-meeting-confirmation { position: static; }
}

@media (max-width: 620px) {
  .account-coach-meeting-app { padding: 18px; border-radius: 20px; }
  .account-coach-meeting-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-coach-meeting-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .account-coach-meeting-card { padding-right: 12px; padding-left: 12px; }
  .account-coach-meeting-app { padding: 15px 12px; }
  .account-coach-meeting-confirmation { padding: 18px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-coach-meeting-spinner { animation-duration: 1.8s; }
  .account-coach-meeting-day,
  .account-coach-meeting-time { transition: none; }
}
