.crd-resource-downloads {
  width: 100%;
}

.crd-resource-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.crd-resource-button {
  appearance: none;
  border: 0;
  background: #ff395c;
  color: #ffffff;
  display: inline-flex;
  min-height: 34px;
  padding: 8px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.crd-resource-button:hover,
.crd-resource-button:focus {
  background: #ffffff !important;
  color: #ff395c !important;
  transform: translateY(-1px);
  outline: none;
}

.crd-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.crd-modal.is-open {
  display: flex;
}

.crd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 28, 0.72);
  backdrop-filter: blur(8px);
}

.crd-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  color: #000038;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.crd-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #000038;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.crd-modal-title {
  margin: 0 0 6px;
  color: #000038;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
}

.crd-modal-resource-title {
  margin: 0 0 24px;
  color: #ff395c;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
}

.crd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crd-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #000038;
}

.crd-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 56, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: #000038;
  font: inherit;
  font-weight: 400;
  outline: none;
}

.crd-field input:focus {
  border-color: #ff395c;
  box-shadow: 0 0 0 3px rgba(255, 57, 92, 0.12);
}

.crd-submit-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #ff395c;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.crd-submit-button:hover,
.crd-submit-button:focus {
  background: #000038;
  outline: none;
}

.crd-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.crd-message {
  min-height: 22px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.crd-message.is-success {
  color: #087f5b;
}

.crd-message.is-error {
  color: #c92a2a;
}

.crd-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

body.crd-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .crd-resource-button {
    white-space: normal;
    text-align: center;
  }

  .crd-modal-panel {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .crd-field-grid {
    grid-template-columns: 1fr;
  }

  .crd-modal-title {
    font-size: 24px;
  }
}
