/* =====================================================================
   Code Amani Design System – Core Utilities
   Requires: ca-tokens.css
   Inspired by iOS 26 Liquid Glass Design  :contentReference[oaicite:1]{index=1}
   ===================================================================== */

/* --------------------------------------------------
   1. Global Resets
--------------------------------------------------- */

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ca-color-fg-main);
}

.ca-section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .ca-section {
    padding: 4.25rem 0;
  }
}

/* --------------------------------------------------
   2. App Shell + Background
--------------------------------------------------- */
.ca-app {
  min-height: 100vh;
  font-family: var(--ca-font-sans);
  color: var(--ca-color-fg-main);
  background-color: var(--ca-color-bg-base);
  background-image:
    var(--ca-gradient-bg-liquid),
    var(--ca-gradient-blob-blue),
    var(--ca-gradient-blob-teal),
    var(--ca-gradient-blob-purple);
  background-size: cover;
  background-attachment: fixed;
}

.ca-container {
  width: 100%;
  max-width: var(--ca-layout-max-width);
  margin: 0 auto;
  padding-inline: var(--ca-layout-gutter);
}

/* --------------------------------------------------
   3. Liquid Glass Surfaces
-------------------------------------------------- */

.u-glass {
  background: var(--ca-glass-bg-default);
  border-radius: var(--ca-radius-lg);
  border: 1px solid var(--ca-glass-border);
  backdrop-filter: blur(var(--ca-blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--ca-blur-md)) saturate(140%);
  box-shadow: var(--ca-shadow-soft);
  position: relative;
  overflow: hidden;
}

.u-glass-soft {
  background: var(--ca-glass-bg-soft);
  border-radius: var(--ca-radius-md);
  backdrop-filter: blur(var(--ca-blur-sm));
}

.u-glass-strong {
  background: var(--ca-glass-bg-strong);
  border-radius: var(--ca-radius-xl);
  backdrop-filter: blur(var(--ca-blur-lg));
  box-shadow: var(--ca-shadow-nav);
}

/* Highlight sheen */
.u-glass::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top right,
    var(--ca-color-accent-primary-soft),
    transparent 60%
  );
  opacity: 0.14;
  pointer-events: none;
}

/* --------------------------------------------------
   4. Cards, Panels & Pill Components
-------------------------------------------------- */

.ca-card {
  padding: 1.2rem 1.3rem;
  border-radius: var(--ca-radius-lg);
  background: var(--ca-glass-bg-default);
  border: 1px solid var(--ca-glass-border);
  backdrop-filter: blur(var(--ca-blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--ca-blur-md)) saturate(140%);
  box-shadow: var(--ca-shadow-soft);
  color: var(--ca-color-fg-muted);
  position: relative;
  overflow: hidden;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--ca-radius-pill);
  border: 1px solid var(--ca-color-border-soft);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.25),
    rgba(15, 23, 42, 0.8)
  );
  font-size: var(--ca-font-size-label);
  color: var(--ca-color-fg-muted);
}

/* --------------------------------------------------
   5. Liquid Motion Utilities (iOS 26 interaction)
-------------------------------------------------- */

.u-animate {
  transition-property: 
    transform, box-shadow, background, border-color, opacity;
  transition-duration: var(--ca-motion-normal);
  transition-timing-function: var(--ca-ease-standard);
}

.u-animate-soft {
  transition-timing-function: var(--ca-ease-soft);
}

.u-animate-snap {
  transition-timing-function: var(--ca-ease-snap);
  transition-duration: var(--ca-motion-fast);
}

/* Hover lift (cards) */
.u-hover-float:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.8);
}

/* Tap / press effect */
.u-press-soft:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: var(--ca-shadow-press);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
}

/* --------------------------------------------------
   6. Navigation (Top + Dynamic Shrinking)
   Matches iOS 26 dynamic toolbars.  :contentReference[oaicite:2]{index=2}
-------------------------------------------------- */

.ca-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(var(--ca-blur-md));
  -webkit-backdrop-filter: blur(var(--ca-blur-md));
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  transition: padding var(--ca-motion-normal) var(--ca-ease-soft),
              transform var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-nav-inner {
  max-width: var(--ca-layout-max-width);
  margin: 0 auto;
  padding: 0.8rem var(--ca-layout-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Shrinking mode on scroll */
.ca-nav--compact .ca-nav-inner {
  padding-block: 0.35rem;
  transform: translateY(-2px);
}

.ca-nav--compact .ca-nav-logo {
  transform: scale(0.92);
  opacity: 0.85;
}

/* Navigation content */
.ca-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.brand-link:focus-visible {
  outline: 2px solid var(--ca-color-accent-1);
  outline-offset: 4px;
  border-radius: 999px;
}

.brand-link:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}

.brand-img {
  display: block;
  height: 64px;
  width: auto;
}

.brand-img--wordmark {
  height: 56px;
}

@media (max-width: 640px) {
  .brand-img {
    height: 52px;
  }

  .brand-img--wordmark {
    height: 46px;
  }
}

.ca-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.ca-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--ca-radius-pill);
  border: 1px solid var(--ca-glass-border);
  background: var(--ca-glass-bg-soft);
  box-shadow: 0 8px 30px rgba(6, 10, 20, 0.25);
  color: var(--ca-color-fg-muted);
  backdrop-filter: blur(var(--ca-blur-sm));
  -webkit-backdrop-filter: blur(var(--ca-blur-sm));
  transition: all var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-menu a:hover {
  color: var(--ca-color-fg-main);
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 32px rgba(6, 10, 20, 0.35);
  transform: translateY(-1px);
}

.ca-menu .cta {
  border-color: rgba(180, 198, 255, 0.45);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.1), rgba(236, 72, 153, 0.08));
  color: var(--ca-color-fg-main);
  box-shadow: 0 12px 42px rgba(96, 165, 250, 0.25);
}

@media (max-width: 900px) {
  .ca-nav-inner {
    gap: 1rem;
  }

  .ca-menu ul {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }
}

/* --------------------------------------------------
   7. Bottom Navigation (iOS 26 Dynamic Tab Bar)
   This matches: “Liquid Glass tab bars shrink to free space…”  :contentReference[oaicite:3]{index=3}
-------------------------------------------------- */

.ca-bottom-nav {
  position: fixed;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 1.5rem, 520px);
  padding: 0.5rem;
  border-radius: var(--ca-radius-pill);
  background: var(--ca-glass-bg-strong);
  border: 1px solid var(--ca-glass-border);
  backdrop-filter: blur(var(--ca-blur-lg));
  -webkit-backdrop-filter: blur(var(--ca-blur-lg));
  box-shadow: var(--ca-shadow-nav);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.ca-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--ca-font-size-label);
  gap: 0.2rem;
  color: var(--ca-color-fg-muted);
}

.ca-bottom-nav__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  transition: all var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-bottom-nav__item--active .ca-bottom-nav__icon {
  background: var(--ca-color-accent-primary-soft);
  color: var(--ca-color-accent-primary);
}

.ca-bottom-nav__item--active span {
  color: var(--ca-color-fg-main);
}

/* --------------------------------------------------
   8. Hero & Page Layouts
-------------------------------------------------- */

.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

.hero-copy {
  padding: 1.25rem 1.4rem;
}

.hero-copy h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 0.75rem;
}

.hero-copy p {
  color: var(--ca-color-fg-muted);
  font-size: var(--ca-font-size-body);
}

.hero-pill {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(168, 85, 247, 0.28));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--ca-color-fg-main);
}

.hero-ctas {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.hero-card {
  display: grid;
  gap: 0.6rem;
}

.card-heading h3 {
  margin: 0.3rem 0 0.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--ca-font-size-label);
  color: var(--ca-color-accent-primary);
  margin: 0;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--ca-color-fg-muted);
}

.card-meta {
  font-size: var(--ca-font-size-label);
  color: var(--ca-color-fg-muted);
  margin-bottom: 0.4rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }
}

/* --------------------------------------------------
   9. Sections & Grids
-------------------------------------------------- */

.section-header {
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0;
  font-size: var(--ca-font-size-h1);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--ca-color-fg-muted);
  font-size: var(--ca-font-size-body);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ca-card h3 {
  color: var(--ca-color-fg-main);
  margin: 0 0 0.35rem;
}

.ca-card p {
  color: var(--ca-color-fg-muted);
  margin: 0;
  font-size: var(--ca-font-size-body);
}

.project-subtitle {
  color: var(--ca-color-accent-primary);
  font-size: var(--ca-font-size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.security-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.1rem;
}

.security-note {
  margin-top: 0.9rem;
  color: var(--ca-color-fg-muted);
  font-size: 0.9rem;
}

.section-cta {
  margin-top: 1.4rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* --------------------------------------------------
   10. Footer
-------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.38);
  padding: 2.4rem 0 1.8rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.footer-links a {
  padding: 0.35rem 0.8rem;
  border-radius: var(--ca-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: var(--ca-color-fg-muted);
  background: rgba(15, 23, 42, 0.7);
}

.footer-links a:hover {
  color: var(--ca-color-fg-main);
  border-color: rgba(148, 163, 184, 0.72);
}

.footer-about p,
.footer-meta {
  color: var(--ca-color-fg-muted);
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.footer-meta {
  font-size: 0.85rem;
}

/* --------------------------------------------------
   11. Button Components
-------------------------------------------------- */

.ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--ca-radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  color: white;
  background: linear-gradient(
    135deg,
    var(--ca-color-accent-secondary),
    var(--ca-color-accent-primary)
  );
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.55);
  transition: all var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.7);
}

.ca-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--ca-shadow-press);
}

/* Secondary glass button */
.ca-btn-secondary {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--ca-color-fg-main);
}

/* --------------------------------------------------
   12. Inputs (Liquid cursor + focus halo)
-------------------------------------------------- */

.ca-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--ca-radius-md);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--ca-color-fg-main);
  font-size: 0.9rem;
  backdrop-filter: blur(var(--ca-blur-sm));
  outline: none;
  transition: 
    border-color var(--ca-motion-normal) var(--ca-ease-soft),
    box-shadow var(--ca-motion-normal) var(--ca-ease-soft),
    background var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-input::placeholder {
  color: var(--ca-color-fg-muted);
}

.ca-input:focus {
  border-color: var(--ca-color-accent-primary);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 0 2px var(--ca-color-accent-primary-soft);
}

/* --------------------------------------------------
   13. In-Place Alerts (iOS 26 behavior) 
   “alerts expand from the button that triggers them”  :contentReference[oaicite:4]{index=4}
-------------------------------------------------- */

.ca-alert {
  position: absolute;
  transform-origin: top center;
  background: var(--ca-glass-bg-strong);
  border: 1px solid var(--ca-glass-border);
  padding: 0.9rem 1.1rem;
  border-radius: var(--ca-radius-md);
  box-shadow: var(--ca-shadow-soft);
  backdrop-filter: blur(var(--ca-blur-md));
  animation: ca-alert-pop var(--ca-motion-normal) var(--ca-ease-snap);
}

@keyframes ca-alert-pop {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --------------------------------------------------
   14. Context Menus (expanded menus)
-------------------------------------------------- */

.ca-context-menu {
  position: absolute;
  background: var(--ca-glass-bg-strong);
  border-radius: var(--ca-radius-lg);
  border: 1px solid var(--ca-glass-border);
  backdrop-filter: blur(var(--ca-blur-lg));
  box-shadow: var(--ca-shadow-nav);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: ca-menu-fade var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-context-menu button {
  padding: 0.5rem 0.8rem;
  border-radius: var(--ca-radius-md);
  background: transparent;
  color: var(--ca-color-fg-main);
  text-align: left;
  cursor: pointer;
  transition: background var(--ca-motion-normal) var(--ca-ease-soft);
}

.ca-context-menu button:hover {
  background: rgba(148, 163, 184, 0.15);
}

@keyframes ca-menu-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------
   End of ca-core.css
-------------------------------------------------- */

/* Contact CTA + Adaptive Form */
.contact-cta {
  position: relative;
}

.contact-cta .section-header {
  max-width: 720px;
}

.contact-form .section-header {
  max-width: 820px;
}

.contact-form .section-header p {
  color: var(--ca-color-fg-muted);
}

.adaptive-form {
  margin-top: 1.5rem;
  padding: 1.8rem;
  border-radius: var(--ca-radius-xl);
  background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.22),
      rgba(16, 185, 129, 0.18)
    ),
    var(--ca-glass-bg-default);
  border: 1px solid var(--ca-color-border-strong);
  box-shadow: var(--ca-shadow-hero);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.form-grid.full-width {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ca-color-fg-muted);
}

.form-field span,
.form-field legend {
  font-weight: 600;
  color: var(--ca-color-fg-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--ca-radius-md);
  border: 1px solid var(--ca-color-border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ca-color-fg-main);
  font: inherit;
  transition: border-color var(--ca-motion-fast) var(--ca-ease-soft),
    box-shadow var(--ca-motion-fast) var(--ca-ease-soft),
    transform var(--ca-motion-fast) var(--ca-ease-soft);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ca-color-accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.radio-group {
  padding: 0.75rem;
  border-radius: var(--ca-radius-md);
  border: 1px dashed var(--ca-color-border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-group label {
  padding: 0.55rem 0.8rem;
  border-radius: var(--ca-radius-pill);
  border: 1px solid var(--ca-color-border-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chip-group label:has(input:checked) {
  border-color: var(--ca-color-accent-primary);
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.16), rgba(15, 23, 42, 0.9));
  color: var(--ca-color-fg-main);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.form-dynamic {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--ca-radius-lg);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(236, 72, 153, 0.08));
  border: 1px solid var(--ca-color-border-soft);
  color: var(--ca-color-fg-main);
  min-height: 90px;
}

.form-dynamic strong {
  color: var(--ca-color-accent-primary);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.helper-text {
  margin: 0;
  color: var(--ca-color-fg-muted);
  max-width: 720px;
}

.hidden {
  display: none;
}

/* Scheduler modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.22), rgba(10, 12, 24, 0.92));
  backdrop-filter: blur(var(--ca-blur-md));
}

.modal-content {
  position: relative;
  width: min(960px, 94vw);
  padding: 1.5rem;
  border-radius: var(--ca-radius-xl);
  border: 1px solid var(--ca-color-border-strong);
  background: var(--ca-glass-bg-strong);
  box-shadow: var(--ca-shadow-hero);
}

.modal-header {
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--ca-color-fg-main);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform var(--ca-motion-fast) var(--ca-ease-soft);
}

.modal-close:hover {
  transform: scale(1.08);
}

.scheduler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.calendar {
  border: 1px solid var(--ca-color-border-soft);
  border-radius: var(--ca-radius-lg);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.calendar-month {
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 0.35rem;
}

.calendar-cell {
  padding: 0.55rem 0.4rem;
  border-radius: var(--ca-radius-md);
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ca-motion-fast) var(--ca-ease-soft);
}

.calendar-cell:hover {
  border-color: var(--ca-color-border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.calendar-cell.is-muted {
  color: var(--ca-color-fg-muted);
}

.calendar-cell.is-selected {
  border-color: var(--ca-color-accent-primary);
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.92));
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.28);
}

.icon-btn {
  border: 1px solid var(--ca-color-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ca-color-fg-main);
  border-radius: 10px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.time-slots {
  border: 1px solid var(--ca-color-border-soft);
  border-radius: var(--ca-radius-lg);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.slot {
  padding: 0.65rem 0.8rem;
  border-radius: var(--ca-radius-md);
  border: 1px solid var(--ca-color-border-soft);
  text-align: center;
  cursor: pointer;
  transition: all var(--ca-motion-fast) var(--ca-ease-soft);
}

.slot:hover {
  border-color: var(--ca-color-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.slot.is-selected {
  border-color: var(--ca-color-accent-primary);
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.9));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

.slot-summary {
  color: var(--ca-color-fg-muted);
  min-height: 32px;
}

@media (max-width: 640px) {
  .adaptive-form {
    padding: 1.2rem;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .slot-list {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}
