/* =========================
   MosaicConnect Glass Form — V2 (brighter + stronger)
   style.css
   ========================= */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap");

:root {
  /* Background base (lighter than before) */
  --bg-0: #07070a;
  --bg-1: #0b0c10;

  /* Glass card */
  --card: rgba(255, 255, 255, 0.08);
  --card-2: rgba(255, 255, 255, 0.05);

  --stroke: rgba(255, 255, 255, 0.18);
  --stroke-2: rgba(255, 255, 255, 0.12);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);

  /* Brand accents (stronger, not dull) */
  --pink: #ff2aa6;
  --red: #ff2d2d;
  --hot: #ff6a00;
  --cyan: #2dd6ff;
  --violet: #7b5cff;

  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  --shadow2: 0 10px 24px rgba(0, 0, 0, 0.35);

  --r: 22px;
  --r2: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Cairo, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: radial-gradient(
      1200px 760px at 18% 12%,
      rgba(255, 42, 166, 0.22),
      transparent 60%
    ),
    radial-gradient(
      980px 620px at 85% 18%,
      rgba(45, 214, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 58% 92%,
      rgba(255, 106, 0, 0.14),
      transparent 62%
    ),
    radial-gradient(
      900px 700px at 70% 65%,
      rgba(123, 92, 255, 0.12),
      transparent 62%
    ),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

/* Arabic font */
[dir="rtl"] {
  font-family: Cairo, sans-serif !important;
}

/* Page */
.mc-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  position: relative;
  isolation: isolate;
}

/* “AI vibes” background without image: tech nodes + beams */
.mc-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(
      circle at 12% 18%,
      rgba(45, 214, 255, 0.2),
      transparent 42%
    ),
    radial-gradient(circle at 72% 22%, rgba(255, 42, 166, 0.2), transparent 44%),
    radial-gradient(circle at 62% 78%, rgba(255, 106, 0, 0.14), transparent 46%),
    radial-gradient(
      circle at 28% 78%,
      rgba(123, 92, 255, 0.12),
      transparent 46%
    ),
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62));
  filter: saturate(1.1);
}

/* Overlay + subtle grid */
.mc-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      1200px 800px at 35% 20%,
      rgba(255, 42, 166, 0.18),
      transparent 62%
    ),
    radial-gradient(
      900px 650px at 80% 30%,
      rgba(255, 45, 45, 0.14),
      transparent 62%
    ),
    radial-gradient(
      900px 700px at 55% 85%,
      rgba(45, 214, 255, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.7));
}

.mc-page::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  opacity: 0.14;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    650px 520px at 50% 32%,
    #000 42%,
    transparent 74%
  );
}

/* Wrap */
.mc-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 14px;
}

/* Brand header above form */
.mc-brand {
  width: min(560px, 92vw);
  text-align: center;
  display: grid;
  gap: 6px;
}

.mc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.mc-logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.25) 35%,
      transparent 60%
    ),
    linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 0 6px rgba(255, 42, 166, 0.1),
    0 0 0 14px rgba(45, 214, 255, 0.06);
}

.mc-logo-text {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.72)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

/* Form */
.mc-form {
  width: min(560px, 92vw);
  padding: 20px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

/* Edge glow */
.mc-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(
    110deg,
    rgba(255, 42, 166, 0.65),
    rgba(255, 45, 45, 0.55) 30%,
    rgba(45, 214, 255, 0.4) 60%,
    rgba(123, 92, 255, 0.45)
  );
  opacity: 0.42;
  filter: blur(18px);
}

.mc-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  background: radial-gradient(
      900px 360px at 18% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 300px at 90% 8%,
      rgba(45, 214, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
  opacity: 0.85;
}

.mc-head {
  padding: 6px 6px 10px 6px;
}

.mc-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.mc-sub {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

/* Steps */
.mc-steps {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-step {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.mc-step.is-active {
  border-color: rgba(255, 42, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 42, 166, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 42, 166, 0.22),
    rgba(45, 214, 255, 0.12)
  );
}

.mc-step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 42, 166, 0.35),
    rgba(45, 214, 255, 0.25)
  );
  opacity: 0.9;
}

/* Step panes */
.mc-step-pane {
  display: none;
}
.mc-step-pane.is-active {
  display: block;
}

/* Terms box */
.mc-terms {
  padding: 10px 6px 6px 6px;
}

.mc-h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.mc-terms-text {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.6;
}

.mc-terms-list {
  margin: 0 0 14px 18px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

/* Grid */
.mc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.mc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-half {
  grid-column: span 1;
}
.mc-full {
  grid-column: 1 / -1;
}

.mc-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.2px;
}
.mc-label span {
  color: rgba(255, 42, 166, 0.95);
  font-weight: 800;
}

/* Inputs */
.mc-input {
  height: 44px;
  width: 100%;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  background: rgba(10, 12, 18, 0.42);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease, background 0.18s ease;
}

.mc-input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.mc-input:focus {
  border-color: rgba(45, 214, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 214, 255, 0.14),
    0 0 0 1px rgba(255, 42, 166, 0.1);
  transform: translateY(-1px);
  background: rgba(10, 12, 18, 0.52);
}

/* Select: keep inside body on mobile */
.mc-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: linear-gradient(
      45deg,
      transparent 50%,
      rgba(255, 255, 255, 0.8) 50%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8) 50%, transparent 50%),
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1)
    );
  background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px,
    calc(100% - 44px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 22px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

/* Date */
input[type="date"] {
  color-scheme: dark;
}

/* File */
.mc-file {
  position: relative;
}

.mc-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.mc-file-ui {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  background: rgba(10, 12, 18, 0.42);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.mc-file:has(.mc-file-input:focus) .mc-file-ui {
  border-color: rgba(255, 42, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 42, 166, 0.14);
  transform: translateY(-1px);
}

.mc-file-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 42, 166, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 42, 166, 0.28),
    rgba(45, 214, 255, 0.14)
  );
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow2);
}

.mc-file-name {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Checkbox */
.mc-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.mc-check-final {
  margin-top: 2px;
}

.mc-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mc-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 18, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  margin-top: 2px;
  position: relative;
}

.mc-check-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.mc-check-text span {
  color: rgba(255, 42, 166, 0.95);
  font-weight: 800;
}

.mc-check:has(.mc-check-input:focus) {
  box-shadow: 0 0 0 4px rgba(45, 214, 255, 0.12);
  border-color: rgba(45, 214, 255, 0.3);
}

.mc-check:has(.mc-check-input:checked) .mc-check-box {
  border-color: rgba(45, 214, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(45, 214, 255, 0.22),
    rgba(255, 42, 166, 0.18)
  );
}

.mc-check:has(.mc-check-input:checked) .mc-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: rotate(38deg);
}

/* Actions */
.mc-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mc-btn {
  height: 46px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  letter-spacing: 0.2px;
  flex: 1;
  transition: transform 0.14s ease, filter 0.14s ease, opacity 0.14s ease;
}

.mc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mc-btn-primary {
  background: radial-gradient(
      240px 140px at 18% 10%,
      rgba(255, 255, 255, 0.22),
      transparent 62%
    ),
    linear-gradient(
      120deg,
      rgba(255, 42, 166, 0.95),
      rgba(45, 214, 255, 0.35) 65%,
      rgba(123, 92, 255, 0.4)
    );
  box-shadow: 0 18px 54px rgba(255, 42, 166, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.mc-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow2);
}

.mc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.mc-btn:active {
  transform: translateY(0px) scale(0.99);
}

.mc-btn-glow {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(255, 255, 255, 0.22),
      transparent 52%
    ),
    radial-gradient(
      circle at 72% 52%,
      rgba(45, 214, 255, 0.22),
      transparent 56%
    ),
    radial-gradient(
      circle at 52% 70%,
      rgba(255, 42, 166, 0.18),
      transparent 58%
    );
  filter: blur(10px);
  opacity: 0.95;
  animation: mcGlow 5.5s ease-in-out infinite;
}

@keyframes mcGlow {
  0% {
    transform: translateX(-6%) translateY(-2%);
    opacity: 0.75;
  }
  50% {
    transform: translateX(6%) translateY(2%);
    opacity: 1;
  }
  100% {
    transform: translateX(-6%) translateY(-2%);
    opacity: 0.75;
  }
}

.mc-note {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Shake (for step1 missing agree) */
.mc-shake {
  animation: mcShake 0.42s ease;
}
@keyframes mcShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* Responsive */
@media (max-width: 620px) {
  .mc-form {
    width: min(520px, 94vw);
    padding: 18px;
  }
  .mc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mc-half {
    grid-column: 1 / -1;
  } /* position+time become stacked on phone */
  .mc-actions-row {
    flex-direction: column;
  }
  .mc-brand {
    width: min(520px, 94vw);
  }

  .mc-btn-primary,
  .mc-btn-secondary {
    width: 100%;
    padding: 15px 0;
  }
}

@media (max-width: 360px) {
  .mc-btn-primary,
  .mc-btn-secondary {
    width: 100%;
    padding: 15px 0;
  }
}
