:root {
  --card-border: #d6d6d6;
  --text: #000;
  --muted: #8b8b8b;
  --footer: #bdbdbd;
  --input-bg: #ebebed;
  --error: #d94c4c;
  --ci: #0d5869;
  --ci-strong: #0b4a58;
  --ci-soft: #1a7086;
  --ci-ring: rgba(13, 88, 105, 0.26);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f3f3f3;
  color: var(--text);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-booking-page,
.partner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 0 18px;
}

.contact-booking-card {
  width: min(792px, calc(100vw - 40px));
  min-height: 496px;
  height: 496px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: visible;
}

.contact-booking-card.is-success {
  width: min(512px, calc(100vw - 40px));
  min-height: auto;
  height: auto;
}

.mode-layout {
  width: 100%;
  min-height: 496px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
}

.contact-booking-card.is-success .mode-layout {
  grid-template-columns: 1fr;
  min-height: auto;
  height: auto;
}

.mode-panel {
  padding: 26px 24px;
}

.mode-panel-left {
  position: relative;
  border-right: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  padding-bottom: 26px;
}

.contact-booking-card.is-success .mode-panel-left {
  border-right: 0;
}

.contact-booking-card.is-success .mode-panel-right {
  display: none;
}

.contact-booking-card.is-success .mode-session-title {
  display: none;
}

.mode-host-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-host-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.mode-host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.mode-host-avatar.is-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e6ebf0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-host-avatar.is-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: translateY(-2px);
}

.mode-host-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-host-text-logo {
  min-height: 68px;
  justify-content: center;
  gap: 0;
}

.mode-host-text-logo .mode-host-name {
  display: none;
}

.mode-host-brand {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.mode-host-name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}

.mode-session-title {
  margin: 28px 0 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #0d5869;
}

.mode-session-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.mode-session-meta-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
}

.mode-session-meta-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.mode-session-meta-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.mode-channel-info {
  margin-top: 10px;
  color: #7c7c7c;
  max-width: 290px;
}

.mode-channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-channel-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex-shrink: 0;
}

.mode-channel-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.mode-channel-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #7a7a7a;
}

.mode-channel-copy {
  margin: 6px 0 0 31px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.32;
  color: #7a7a7a;
}

.mode-left-note {
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 320px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.28;
  color: #2c2c2c;
}

.mode-left-success {
  margin-top: 16px;
  margin-bottom: 0;
}

.mode-left-success .contact-title {
  margin: 0 0 14px;
}

.mode-left-question,
.mode-left-intro {
  margin: 0;
}

.mode-left-intro {
  margin-top: 14px;
}

.mode-left-bullet-title {
  margin: 12px 0 0;
}

.mode-left-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.in-card-footer-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  line-height: 1;
}

.contact-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  line-height: 1;
}

.contact-footer a {
  color: var(--footer);
  text-decoration: none;
}

.contact-footer a:hover {
  color: #9d9d9d;
}

.contact-footer-external {
  display: none;
}

.in-card-footer-links a {
  color: var(--footer);
  text-decoration: none;
}

.in-card-footer-links a:hover {
  color: #9d9d9d;
}

.mode-panel-right {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 22px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 12px;
}

.contact-right-panel,
.partner-right-panel {
  overflow: auto;
}

.contact-form-wrap,
.contact-success-wrap {
  width: min(360px, 100%);
  margin: 0 auto;
}

.contact-title {
  margin: 0 0 28px;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #37383f;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field-group + .field-group {
  margin-top: 6px;
}

.field-group label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #37383f;
}

.field-group input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--input-bg);
  color: #121212;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  outline: none;
}

.field-group textarea {
  width: 100%;
  min-height: 96px;
  border: 0;
  border-radius: 9px;
  background: var(--input-bg);
  color: #121212;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  resize: vertical;
  outline: none;
}

.field-group input::placeholder {
  color: rgba(0, 0, 0, 0.46);
}

.field-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.46);
}

.field-error {
  margin-top: 3px;
  min-height: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  opacity: 0;
  transition: opacity 120ms ease;
}

.field-error.is-visible {
  opacity: 1;
}

.iti {
  width: 100%;
}

.iti input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--input-bg);
  padding: 0 12px 0 96px;
  font-size: 15px;
  color: #121212;
}

.iti--separate-dial-code .iti__selected-flag {
  background: transparent;
  padding: 0 8px 0 12px;
}

.iti--separate-dial-code .iti__selected-dial-code {
  font-size: 14px;
  color: #1f2126;
}

.iti__arrow {
  border-top-color: #555 !important;
}

.form-error {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  display: none;
}

.form-error.is-visible {
  display: block;
}

.submit-btn {
  margin-top: 12px;
  width: 100%;
  height: 42px;
  border: 1px solid var(--ci-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ci), var(--ci-soft));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0e6175, #1d7f97);
  border-color: #0a4653;
  box-shadow: 0 8px 16px rgba(11, 74, 88, 0.3);
  transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-success-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.success-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
  color: #25272d;
}

.success-text + .success-text {
  margin-top: 8px;
}

.success-text a {
  color: #25272d;
  text-decoration: underline;
}

.contact-success-wrap .submit-btn {
  margin-top: 16px;
}

.mode-left-success .submit-btn {
  margin-top: 32px;
  margin-bottom: 48px;
  width: min(293px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.partner-shell {
  width: min(792px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
}

.partner-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.partner-page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #0d2230;
  letter-spacing: -0.01em;
}

.partner-brand-pill {
  border-radius: 999px;
  border: 1px solid rgba(11, 74, 88, 0.22);
  background: rgba(13, 88, 105, 0.08);
  color: #0b4a58;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.partner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.partner-tab {
  border: 1px solid rgba(13, 88, 105, 0.24);
  background: #ffffff;
  color: #225363;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 140ms ease;
}

.partner-tab:hover {
  border-color: rgba(13, 88, 105, 0.5);
  background: rgba(13, 88, 105, 0.06);
}

.partner-tab.is-active {
  background: linear-gradient(135deg, var(--ci), var(--ci-soft));
  border-color: var(--ci-strong);
  color: #fff;
}

.partner-logout {
  border: 0;
  background: transparent;
  color: #7d1f2f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 6px 2px;
}

.partner-logout:hover {
  color: #a52e44;
}

.partner-view {
  width: min(360px, 100%);
  margin: 0 auto;
}

.partner-submit-primary {
  margin-top: 14px;
}

.partner-submit-primary .contact-title {
  margin: 0 0 16px;
}

.submit-optional-hint {
  margin-top: -14px;
  margin-bottom: 12px;
  color: #6c737d;
  font-size: 13px;
  line-height: 1.35;
}

#dashboardView {
  width: min(440px, 100%);
}

.login-view {
  padding-top: 8px;
}

.login-logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid #e6ebf0;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
}

.login-logo-wrap img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  transform: translateY(-1px);
}

.form-success {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0f6a34;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.dashboard-subtitle {
  margin-top: -14px;
  margin-bottom: 12px;
  color: #6c737d;
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-loading {
  margin-top: 10px;
  font-size: 13px;
  color: #6c737d;
}

.dashboard-error {
  margin-top: 8px;
  margin-bottom: 4px;
}

.dashboard-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-card {
  border: 1px solid #dce4ea;
  border-radius: 11px;
  background: #f7fafb;
  padding: 12px 12px 11px;
  display: grid;
  gap: 4px;
}

.dashboard-card span {
  font-size: 12px;
  font-weight: 700;
  color: #5f6a77;
}

.dashboard-card strong {
  font-size: 22px;
  line-height: 1.1;
  color: #15212b;
  letter-spacing: -0.01em;
}

.dashboard-card small {
  font-size: 11px;
  line-height: 1.3;
  color: #76808c;
}

.dashboard-card-secondary {
  background: #fafcfd;
}

.dashboard-card-secondary strong {
  font-size: 18px;
}

.overview-subtitle {
  margin-top: -14px;
  margin-bottom: 12px;
  color: #6c737d;
  font-size: 13px;
  line-height: 1.35;
}

.overview-loading,
.overview-empty {
  margin-top: 10px;
  font-size: 13px;
  color: #6c737d;
}

.overview-table-wrap {
  border: 1px solid #dce4ea;
  border-radius: 10px;
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.overview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6f7784;
  background: #f4f7f9;
  padding: 10px 10px;
  border-bottom: 1px solid #dde5eb;
}

.overview-table td {
  padding: 10px;
  border-bottom: 1px solid #edf1f4;
  vertical-align: top;
  color: #1f242d;
}

.overview-table tr:last-child td {
  border-bottom: 0;
}

.overview-name {
  display: grid;
  gap: 2px;
}

.overview-name strong {
  font-size: 13px;
  line-height: 1.2;
}

.overview-name span {
  color: #646d78;
}

.overview-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.overview-status.is-onboarded {
  color: #175f39;
  background: rgba(26, 131, 66, 0.13);
  border-color: rgba(26, 131, 66, 0.24);
}

.overview-status.is-active {
  color: #214f64;
  background: rgba(16, 109, 149, 0.11);
  border-color: rgba(16, 109, 149, 0.24);
}

.overview-status.is-closed {
  color: #555f6d;
  background: rgba(87, 101, 123, 0.12);
  border-color: rgba(87, 101, 123, 0.24);
}

.overview-progress {
  display: grid;
  gap: 5px;
  min-width: 84px;
}

.overview-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e4e8ed;
  overflow: hidden;
}

.overview-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--ci), var(--ci-soft));
}

.overview-progress-value {
  font-size: 11px;
  color: #687181;
}

@media (max-width: 860px) {
  .contact-booking-page,
  .partner-page {
    flex-direction: column;
    align-items: center;
    padding-top: 23px;
    gap: 10px;
  }

  .partner-shell {
    width: min(720px, calc(100vw - 20px));
    gap: 8px;
  }

  .partner-header-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 0 2px;
  }

  .partner-page-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .partner-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .partner-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .partner-tab {
    width: 100%;
    justify-content: center;
  }

  .partner-logout {
    align-self: flex-end;
    font-size: 14px;
  }

  .contact-booking-card {
    width: min(720px, calc(100vw - 20px));
    min-height: auto;
    height: auto;
    border-radius: 20px;
    margin: 0 auto;
  }

  .mode-layout {
    min-height: auto;
    height: auto;
    grid-template-columns: 1fr;
  }

  .mode-panel {
    padding: 28px 18px;
  }

  .mode-panel-left {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 24px;
  }

  .mode-session-title {
    margin-top: 20px;
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .mode-session-meta-icon,
  .mode-session-meta-icon svg,
  .mode-channel-icon,
  .mode-channel-icon img {
    width: 18px;
    height: 18px;
  }

  .mode-session-meta-text,
  .mode-channel-title {
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .mode-channel-copy {
    margin-left: 27px;
    font-size: clamp(12px, 3.5vw, 14px);
  }

  .mode-left-note {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: clamp(16px, 4.3vw, 19px);
    max-width: 100%;
  }

  .in-card-footer-links {
    display: none;
  }

  .mode-panel-right {
    padding-top: 20px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 18px;
  }

  .contact-form-wrap,
  .contact-success-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .partner-view {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #dashboardView {
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .contact-title {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
    font-size: clamp(22px, 6vw, 24px);
  }

  .field-group label {
    font-size: clamp(14px, 4.2vw, 15px);
  }

  .field-group input,
  .iti input {
    height: 44px;
    font-size: clamp(14px, 4.2vw, 16px);
  }

  .field-group textarea {
    font-size: clamp(14px, 4.2vw, 16px);
  }

  .iti input {
    padding-left: 96px;
  }

  .iti--separate-dial-code .iti__selected-dial-code {
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .submit-btn {
    height: 42px;
    font-size: clamp(14px, 3.8vw, 15px);
  }

  .mode-left-success .submit-btn {
    width: 100%;
    margin-bottom: 0;
  }

  .success-text {
    font-size: clamp(15px, 4.5vw, 18px);
  }

  .contact-footer-external {
    display: flex;
    width: min(720px, calc(100vw - 20px));
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding-left: 18px;
    margin: 2px auto 16px;
    font-size: 13px;
    line-height: 1;
  }

  .contact-footer-external a {
    white-space: nowrap;
  }

  .overview-table-wrap {
    max-height: 300px;
  }
}
