:root {
  --quote-bg: #050507;
  --quote-ink: #ffffff;
  --quote-ink-dim: rgba(255, 255, 255, 0.64);
  --quote-ink-faint: rgba(255, 255, 255, 0.42);
  --quote-line: rgba(255, 255, 255, 0.1);
  --quote-line-strong: rgba(255, 255, 255, 0.18);
  --quote-blue: #223654;
  --quote-blue-bright: #4f709f;
  --quote-blue-deep: #16243a;
  --quote-cyan: #8db7d7;
  --quote-mint: #6fb7a8;
}

body.quote-no-scroll {
  overflow: hidden;
}

.quote-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.quote-no-scroll .quote-panel-overlay {
  opacity: 1;
  pointer-events: auto;
}

.quote-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--quote-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.quote-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.quote-panel-card {
  position: relative;
  width: min(1280px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid var(--quote-line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 112, 159, 0.22), transparent 52%),
    linear-gradient(180deg, #17243a 0%, #000000 100%);
  box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.8), 0 30px 80px -30px rgba(34, 54, 84, 0.52);
  transform: translateY(34px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-panel.is-active .quote-panel-card {
  transform: translateY(0) scale(1);
}

.quote-panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.quote-panel-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(80px);
}

.quote-panel-glow-1 {
  width: 460px;
  height: 460px;
  top: -180px;
  left: 30%;
  background: radial-gradient(circle, var(--quote-blue-bright), transparent 70%);
  opacity: 0.38;
}

.quote-panel-glow-2 {
  width: 360px;
  height: 360px;
  right: 18%;
  bottom: -140px;
  background: radial-gradient(circle, var(--quote-cyan), transparent 70%);
  opacity: 0.18;
}

.quote-panel-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--quote-line);
  border-radius: 50%;
  color: var(--quote-ink);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.quote-panel-close:hover {
  transform: rotate(90deg);
  border-color: var(--quote-line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.quote-panel-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  min-height: 630px;
}

.quote-panel-left,
.quote-panel-right {
  padding: 76px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-panel-title {
  margin: 0;
  color: var(--quote-ink);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.quote-panel-title span {
  background: linear-gradient(135deg, var(--quote-cyan), #d8e8f4 48%, var(--quote-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote-panel-text {
  max-width: 320px;
  margin: 22px 0 0;
  color: var(--quote-ink-dim);
  font-size: 15px;
  line-height: 1.55;
}

.quote-contact-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 44px;
}

.quote-contact-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 12px;
  overflow: hidden;
  border: 1px solid var(--quote-line);
  border-radius: 14px;
  color: var(--quote-ink);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quote-contact-row:hover {
  transform: translateX(4px);
  border-color: rgba(141, 183, 215, 0.38);
  color: var(--quote-ink);
}

.quote-contact-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--quote-blue-bright), var(--quote-blue));
}

.quote-contact-meta {
  min-width: 0;
  flex: 1;
}

.quote-contact-meta span {
  display: block;
  color: var(--quote-ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-contact-meta strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--quote-ink);
  font-size: 16px;
  font-weight: 600;
}

.quote-contact-row i {
  color: var(--quote-ink-faint);
}

.quote-panel-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

.quote-center-halo {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 112, 159, 0.34), rgba(141, 183, 215, 0.12) 42%, transparent 70%);
  filter: blur(38px);
  animation: quote-halo 4s ease-in-out infinite;
}

@keyframes quote-halo {
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.quote-phone {
  position: relative;
  width: 300px;
  height: 460px;
  border: 1px solid rgba(141, 183, 215, 0.22);
  border-radius: 40px;
  background: linear-gradient(135deg, #223654 0%, #101c2e 60%, #253a5a 100%);
  box-shadow: 0 50px 80px -20px rgba(0, 0, 0, 0.8), 0 30px 60px -10px rgba(79, 112, 159, 0.34);
  transform: rotateX(12deg) rotateY(-24deg) rotateZ(4deg);
  animation: quote-phone-float 6s ease-in-out infinite;
}

@keyframes quote-phone-float {
  50% {
    transform: rotateX(12deg) rotateY(-24deg) rotateZ(4deg) translateY(-12px);
  }
}

.quote-phone-screen {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 30%, rgba(79, 112, 159, 0.38), transparent 60%), linear-gradient(180deg, #091525 0%, #050a12 100%);
}

.quote-phone-status {
  position: absolute;
  top: 16px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
}

.quote-phone-status span:last-child {
  width: 20px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
}

.quote-call-ui {
  position: absolute;
  inset: 64px 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 28px;
  color: #fff;
  text-align: center;
}

.quote-call-label {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 22px;
}

.quote-avatar,
.quote-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.quote-avatar {
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--quote-cyan), var(--quote-blue) 58%, var(--quote-blue-deep));
  font-size: 36px;
  font-weight: 700;
}

.quote-avatar-ring {
  inset: -8px;
  border: 2px solid rgba(141, 183, 215, 0.42);
  animation: quote-ring 2s ease-out infinite;
}

.quote-avatar-ring.quote-delay {
  animation-delay: 1s;
}

@keyframes quote-ring {
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.quote-call-ui strong {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
}

.quote-call-ui>span:last-of-type {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.quote-call-actions {
  display: flex;
  gap: 32px;
  margin-top: 34px;
}

.quote-call-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.6);
}

.quote-reject {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.quote-accept {
  background: linear-gradient(135deg, var(--quote-mint), #2f756d);
  animation: quote-accept 1.5s ease-in-out infinite;
}

@keyframes quote-accept {
  50% {
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.6), 0 0 0 12px rgba(111, 183, 168, 0);
  }
}

.quote-live-caption {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 18px;
  border: 1px solid var(--quote-line-strong);
  border-radius: 999px;
  color: var(--quote-ink-dim);
  background: rgba(10, 10, 15, 0.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.quote-live-caption span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.quote-field {
  display: block;
  overflow: hidden;
  border: 1px solid var(--quote-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-field:focus-within {
  border-color: rgba(141, 183, 215, 0.5);
  box-shadow: 0 0 0 4px rgba(79, 112, 159, 0.12);
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 17px 20px;
  color: var(--quote-ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.quote-field textarea {
  min-height: 86px;
  resize: none;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: var(--quote-ink-faint);
}

.quote-phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.quote-phone-field span {
  padding: 0 16px 0 20px;
  border-right: 1px solid var(--quote-line);
  color: var(--quote-ink);
  font-size: 15px;
}

.quote-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.quote-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--quote-ink-dim);
  cursor: pointer;
  font-size: 13px;
}

.quote-checkbox input {
  position: absolute;
  opacity: 0;
}

.quote-checkbox span {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--quote-line-strong);
  border-radius: 5px;
}

.quote-checkbox input:checked+span {
  background: linear-gradient(135deg, var(--quote-blue-bright), var(--quote-blue));
  border-color: var(--quote-blue-bright);
}

.quote-checkbox em {
  font-style: normal;
}

.quote-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--quote-blue-bright), var(--quote-blue));
  box-shadow: 0 8px 24px -8px rgba(79, 112, 159, 0.62);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(79, 112, 159, 0.78);
}

.quote-success {
  display: none;
  height: 100%;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 60px 20px;
  text-align: center;
}

.quote-success.is-active {
  display: flex;
}

.quote-check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--quote-blue-bright), var(--quote-blue));
}

.quote-success h3 {
  margin: 0;
  color: var(--quote-ink);
  font-size: 28px;
  font-weight: 700;
}

.quote-success p {
  max-width: 340px;
  margin: 0;
  color: var(--quote-ink-dim);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .quote-panel {
    padding: 16px;
  }

  .quote-panel-card {
    max-height: 95vh;
    overflow-y: auto;
  }

  .quote-panel-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quote-panel-center {
    display: none;
  }

  .quote-panel-left,
  .quote-panel-right {
    padding: 54px 32px;
  }
}

@media (max-width: 700px) {
  .quote-panel {
    padding: 10px;
  }

  .quote-panel-card {
    border-radius: 22px;
  }

  .quote-panel-left,
  .quote-panel-right {
    padding: 46px 22px;
  }

  .quote-panel-title {
    font-size: 36px;
  }

  .quote-contact-meta strong {
    font-size: 14px;
  }
}