.rebrand-contact-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100dvh - 2rem);
  margin: 1rem auto auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: #09090b;
  color: #e4e4e7;
  font-family: inherit;
}

.rebrand-contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rebrand-contact-dialog[open] {
  animation: rebrand-contact-open 200ms ease-in-out both;
}

.rebrand-contact-dialog[open]::backdrop {
  animation: rebrand-contact-backdrop-in 200ms ease both;
}

.rebrand-contact-dialog[open] .rebrand-contact-icon,
.rebrand-contact-dialog[open] [data-contact-form-view] > .rebrand-contact-content,
.rebrand-contact-dialog[open] [data-contact-success] > .rebrand-contact-content {
  animation: rebrand-contact-slide-fade-in 1s ease both;
}

.rebrand-contact-dialog[open].rebrand-contact-dialog--closing {
  animation: rebrand-contact-close 200ms ease-in-out both;
}

.rebrand-contact-dialog[open].rebrand-contact-dialog--closing::backdrop {
  animation: rebrand-contact-backdrop-out 200ms ease both;
}

.rebrand-contact-dialog *,
.rebrand-contact-dialog *::before,
.rebrand-contact-dialog *::after {
  box-sizing: border-box;
}

.rebrand-contact-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: #09090b;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.rebrand-contact-close:hover {
  background: #27272a;
  color: #e4e4e7;
}

.rebrand-contact-close:focus-visible,
.rebrand-contact-field input:focus-visible,
.rebrand-contact-field textarea:focus-visible,
.rebrand-contact-submit:focus-visible,
.rebrand-contact-secondary:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.52);
  outline-offset: 2px;
}

.rebrand-contact-icon-wrap {
  position: relative;
  padding: 2.5rem 1rem 1rem;
}

.rebrand-contact-icon {
  display: flex;
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.3);
  color: #a1a1aa;
  box-shadow: 0 0 0 0 #fff, 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 15px -3px rgba(14, 116, 144, 0.3), 0 4px 6px -4px rgba(14, 116, 144, 0.3);
}

.rebrand-contact-icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.rebrand-contact-content {
  width: 100%;
  max-width: 24rem;
  margin: 1rem auto 0;
  padding: 0 1rem 2rem;
}

.rebrand-contact-intro {
  margin: 0 0 1.5rem;
  text-align: center;
}

.rebrand-contact-title {
  margin: 0 0 0.5rem;
  color: #e4e4e7;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: -0.025em;
}

.rebrand-contact-description {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.rebrand-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rebrand-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rebrand-contact-field label {
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
}

.rebrand-contact-field input,
.rebrand-contact-field textarea {
  position: relative;
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: #18181b;
  color: #d4d4d8;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rebrand-contact-field input {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
}

.rebrand-contact-field textarea {
  min-height: 5rem;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  resize: vertical;
}

.rebrand-contact-field input::placeholder,
.rebrand-contact-field textarea::placeholder {
  color: #71717a;
}

.rebrand-contact-field input:hover,
.rebrand-contact-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.rebrand-contact-field input:focus,
.rebrand-contact-field textarea:focus {
  border-color: rgba(113, 113, 122, 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(82, 82, 91, 0.7);
}

.rebrand-contact-submit,
.rebrand-contact-secondary {
  display: inline-flex;
  min-height: 2.5rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.rebrand-contact-submit {
  position: relative;
  height: 2.5rem;
  margin-top: 0.5rem;
  isolation: isolate;
  padding: 0;
  border: 1px solid #e4e4e7;
  background: transparent;
  color: #09090b;
}

.rebrand-contact-submit__glow {
  display: block;
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(219, 0, 255, 0.4) 0%, rgba(97, 0, 255, 0.6) 35%, rgba(20, 0, 255, 0.6) 65%, rgba(0, 255, 255, 0.4) 100%);
  filter: blur(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.rebrand-contact-submit span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.325rem;
  background: #e4e4e7;
  transition: background-color 180ms ease;
}

.rebrand-contact-submit:hover span {
  background: #d4d4d8;
}

.rebrand-contact-submit[data-ready="true"] .rebrand-contact-submit__glow {
  opacity: 1;
}

.rebrand-contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.rebrand-contact-status {
  min-height: 1.25rem;
  margin: -0.25rem 0 0;
  color: #a1a1aa;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.rebrand-contact-status:empty {
  display: none;
}

.rebrand-contact-status[data-state="error"] {
  color: #fca5a5;
}

.rebrand-contact-success {
  text-align: center;
}

.rebrand-contact-secondary {
  margin-top: 0;
  border: 1px solid #475569;
  border-radius: 999px;
  background: #18181b;
  color: #d4d4d8;
}

.rebrand-contact-secondary:hover {
  background: #27272a;
}

.rebrand-contact-section {
  scroll-margin-top: 2rem;
}

@keyframes rebrand-contact-open {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rebrand-contact-close {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

@keyframes rebrand-contact-slide-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rebrand-contact-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rebrand-contact-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (min-width: 640px) {
  .rebrand-contact-dialog {
    margin-top: 10vh;
  }
}

@media (max-width: 639px) {
  .rebrand-contact-dialog {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rebrand-contact-dialog[open] {
    animation: none;
  }

  .rebrand-contact-dialog *,
  .rebrand-contact-dialog *::before,
  .rebrand-contact-dialog *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* rebrand-step13 additions */
/* Honeypot: invisibile agli utenti, presente per i bot. */
.rebrand-contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rebrand-contact-privacy {
  margin: 0.75rem 0 0;
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.rebrand-contact-privacy a {
  color: #d4d4d8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rebrand-contact-privacy a:focus-visible {
  outline: 2px solid #0081f1;
  outline-offset: 2px;
}

.rebrand-contact-disabled {
  margin: 0.625rem 0 0;
  color: rgba(161, 161, 170, 0.75);
  font-size: 0.8125rem;
}
