.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 1.5rem;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.contact-modal {
  width: 100%;
  max-width: 600px;
  background: #020617;
  border-radius: 16px;
  position: relative;

  transition:
    transform 0.35s cubic-bezier(.4, 0, .2, 1),
    max-width 0.35s cubic-bezier(.4, 0, .2, 1),
    opacity 0.25s ease;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 2rem;
}

.form-label span {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form-view {
  transition: opacity 0.25s ease;
}

.contact-success-view {
  display: none;
  text-align: center;
}

.contact-success-view .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #23b9ff, #8640fe);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 30px rgba(99, 102, 241, .6);
}

.contact-modal.is-success {
  max-width: 420px;
  padding: 2.5rem 2rem;
  transform: scale(0.92);
}

.contact-modal.is-success .contact-form-view {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.contact-modal.is-success .contact-success-view {
  display: block;
  animation: successFadeIn 0.3s ease forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;

  padding: 0.75rem 2rem;
  font-size: var(--fs-button);
  font-weight: 500;
  line-height: 1;

  cursor: pointer;
  user-select: none;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-base:focus-visible {
  outline: 2px solid #23b9ff;
  outline-offset: 4px;
}


.btn-primary {
  background: linear-gradient(135deg,
      #4BE3ED,
      #4B73F4,
      #694BF4,
      #C137EB);
  color: #fff;

  box-shadow:
    0 0 10px rgba(99, 102, 241, 0.4)
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 20px rgba(99, 102, 241, 0.55);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(35, 185, 255, 0.35),
    0 0 25px rgba(134, 64, 254, 0.45);
}

.save-hint {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.instagram-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(90deg,
      #4BE3ED,
      #4B73F4,
      #694BF4,
      #C137EB);
  color: #fff;
  font-size: 1.4rem;

  box-shadow: 0 12px 30px rgba(134, 64, 254, 0.45);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.instagram-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(134, 64, 254, 0.65);
}

.instagram-float img {
  width: 24px;
  height: 24px;
  filter: invert(1) sepia(0) saturate(0) hue-rotate(180deg) brightness(1.2);
}

.card-base {
  position: relative;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#020617, #020617) padding-box,
    linear-gradient(135deg, #4BE3ED, #4B73F4, #694BF4, #C137EB) border-box;
}

.b2b-note {
  margin: 0.75rem auto 0;
  max-width: 820px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.b2b-note--cta {
  margin-top: 0.9rem !important;
  margin-bottom: 0 !important;
  text-align: center;
}



@media (hover: none) {
  .card-container:hover .card-flip {
    transform: none;
  }

  .btn-base:hover {
    transform: none;
    box-shadow: inherit;
  }
}

@media (max-width: 1200px) {
  .instagram-float:hover {
    transform: none;
  }
}


@media (max-width: 768px) {
  .instagram-float {
    width: 46px;
    height: 46px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-height: 700px) {
  .contact-overlay {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .contact-modal {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {

  body.footer-visible .instagram-float {
    bottom: 80px;
    transition: bottom 0.25s ease;
  }
}