﻿:root {
  --bg: #eef7fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #22252a;
  --ink-soft: #4f5963;
  --muted: #5f7486;
  --line: rgba(0, 152, 218, 0.15);
  --accent: #0098da;
  --accent-deep: #0077ab;
  --accent-soft: rgba(0, 152, 218, 0.12);
  --brand-dark: #202328;
  --brand-dark-soft: #2d3238;
  --shadow: 0 30px 80px rgba(18, 49, 68, 0.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 152, 218, 0.22), transparent 26%),
    radial-gradient(circle at bottom right, rgba(32, 35, 40, 0.12), transparent 26%),
    linear-gradient(135deg, #f8fcff 0%, #ecf6fb 50%, #f7fbfe 100%);
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.1;
}

.ambient-left {
  width: 280px;
  height: 280px;
  top: -70px;
  left: -90px;
  background: rgba(0, 152, 218, 0.16);
}

.ambient-right {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -100px;
  background: rgba(32, 35, 40, 0.14);
}

.booking-card {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-panel,
.scheduler-panel {
  padding: 38px;
}

.profile-panel {
  background:
    radial-gradient(circle at top left, rgba(0, 152, 218, 0.2), transparent 80%),
    linear-gradient(180deg, rgba(28, 32, 37, 0.98), rgba(36, 41, 47, 0.98));
  color: #f4fbff;
}

.brand-pill,
.timezone-chip,
.day-button .day-tag,
.slot-button,
.submit-button,
.nav-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 152, 218, 0.1);
  border: 1px solid #0098DA;
  color: #0098DA;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-panel h1 {
  margin: 22px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.lead {
  margin: 0 0 28px;
  color: rgba(244, 251, 255, 0.78);
  line-height: 1.7;
}

.host-card,
.info-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
}

.host-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 18px;
  margin-bottom: 24px;
  align-items: center;
}

.avatar-frame {
  width: 86px;
  height: 86px;
  padding: 3px;
  border-radius: 24px;
  background: linear-gradient(135deg, #00a4ee, #5c6570);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(0, 152, 218, 0.28), rgba(255, 255, 255, 0.08));
}

.label,
.toolbar-label,
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.label{
  font-weight: 300;
}

.host-card strong,
.meeting-details strong,
.panel-header h2,
.success-card h2 {
  display: block;
}

.host-card strong {
  font-size: 1.08rem;
}

.host-card p,
.info-box p {
  margin: 6px 0 0;
  color: rgba(244, 251, 255, 0.76);
}

.host-role {
  color: #9bdfff;
  font-size: 0.92rem;
}

.meeting-details {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 14px;
}

.meeting-details li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meeting-details span {
  color: rgba(244, 251, 255, 0.68);
}

.info-box {
  padding: 22px;
}

.info-box h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.scheduler-panel {
  background:
    radial-gradient(circle at top right, rgba(0, 152, 218, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 250, 255, 0.94));
}

.panel-header,
.calendar-toolbar,
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.eyebrow,
.toolbar-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.panel-header h2,
.success-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.timezone-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--brand-dark);
  box-shadow: 0 10px 20px rgba(18, 49, 68, 0.08);
}

.calendar-toolbar {
  margin: 30px 0 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.nav-button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 1.15rem;
}

.nav-button:hover,
.nav-button:focus-visible,
.day-button:hover,
.day-button:focus-visible,
.slot-button:hover,
.slot-button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 49, 68, 0.08);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.day-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  padding: 16px 12px;
  text-align: left;
  cursor: pointer;
}

.day-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.day-button span,
.day-button strong {
  display: block;
}

.day-button .day-tag {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 152, 218, 0.08);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.day-button strong {
  font-size: 1.12rem;
  color: var(--brand-dark);
}

.day-button small {
  color: var(--ink-soft);
}

.day-button.is-selected {
  border-color: rgba(0, 152, 218, 0.44);
  background: linear-gradient(180deg, rgba(232, 247, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.day-button.is-selected .day-tag {
  background: var(--accent);
  color: #fff;
}

.slots-section {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
}

.slots-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.slot-button {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 152, 218, 0.2);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 700;
}

.slot-button.is-selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-color: var(--accent);
}

.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 152, 218, 0.16);
  background: rgba(255, 255, 255, 0.99);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
}

input.is-invalid,
textarea.is-invalid {
  border-color: #d94141;
  box-shadow: 0 0 0 4px rgba(217, 65, 65, 0.1);
}

input:focus,
textarea:focus {
  border-color: rgba(0, 152, 218, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 152, 218, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
  margin-top: 4px;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #d94141;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-footer {
  margin-top: 22px;
}

.form-footer p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}

.submit-button {
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 26, 34, 0.9);
  padding: 24px;
  z-index: 2;
}

.success-card {
  width: min(100%, 460px);
  border-radius: 28px;
  background: #ffffff;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hidden {
  display: none;
}

@media (max-width: 1080px) {
  .booking-card {
    grid-template-columns: 1fr;
  }

  .days-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px;
  }

  .profile-panel,
  .scheduler-panel,
  .booking-form,
  .slots-section {
    padding: 22px;
  }

  .days-grid,
  .form-grid,
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-header,
  .calendar-toolbar,
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .days-grid,
  .slots-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .day-button {
    padding: 14px;
  }

  .brand-logo {
    width: min(180px, 100%);
  }

  .host-card {
    grid-template-columns: 1fr;
  }
}
