.contact-success {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: var(--c-surface, #fefdfa);
  color: var(--c-text-main, #1e2534);
  box-shadow: 0 24px 80px rgba(2, 14, 29, .25);
}

.contact-success::backdrop {
  background: rgba(2, 14, 29, .58);
}

body:has(.contact-success[open]) {
  overflow: hidden;
}

.contact-success__panel {
  position: relative;
  padding: 36px 30px 30px;
  text-align: center;
}

.contact-success__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-success__close:hover {
  background: var(--c-surface-2, #f2f1ee);
}

.contact-success__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e5f2ed;
  color: #24745d;
}

.contact-success .contact-success__title {
  margin: 0 0 12px;
  color: var(--c-brand, #122345);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.contact-success__description {
  margin: 0 0 26px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-success__confirm {
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--c-brand, #122345);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.contact-success__confirm:hover {
  background: var(--c-blue-700, #213f7b);
}

.contact-success button:focus-visible {
  outline: 3px solid var(--c-accent, #c49828);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .contact-success__panel { padding: 32px 22px 24px; }
  .contact-success .contact-success__title { font-size: 22px; }
}

#Contacto .contact-form__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

#Contacto .contact-form__footer .form__note {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  white-space: normal;
}

#Contacto .contact-form .contact-form__footer button.primary {
  flex: 0 0 auto;
  margin: 0;
}
