:root {
  /* Initial Settings */
  --formbricksPmf-brand-color: #00c4b8;
  --formbricksPmf-brand-color-transparent: #00c4b850;
  --formbricksPmf-border-radius: 0.4rem;

  /* Globals */
  --formbricksPmf-bold: 600;

  /* Box */
  --formbricksPmf-bg-color: #f8fafc;
  --formbricksPmf-text-color: #0f172a;

  /* Buttons */
  --formbricksPmf-button-text-color: white;
  --formbricksPmf-button-bg-color: var(--formbricksPmf-brand-color);
  --formbricksPmf-button-border-radius: calc(var(--formbricksPmf-border-radius) / 2);

  /* Textarea */
  --formbricksPmf-textarea-border-color: #e2e8f0;
}

/* Container */

#formbricks-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--formbricksPmf-bg-color);
  padding: 0;
  font-family: sans-serif;
  font-size: 1rem;
  color: var(--formbricksPmf-text-color);
}

#formbricks-container * {
  box-sizing: border-box;
}

#formbricks-container *:focus {
  outline: none;
}

#formbricks-content {
  flex: 1 0 auto;
}

#formbricks-form {
  padding: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Element */

.formbricks-element {
  width: 100%;
}

.formbricks-element-label {
  display: block;
  font-weight: var(--formbricksPmf-bold);
  margin-bottom: 0.5rem;
}

.formbricks-next-button-wrapper {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-top: 1rem;
}

.formbricks-next-button {
  display: block;
  padding: 0.6rem 1.2rem 0.6rem 1.2rem;
  border: 0;
  border-radius: var(--formbricksPmf-button-border-radius);
  background-color: var(--formbricksPmf-button-bg-color);
  color: var(--formbricksPmf-button-text-color);
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.formbricks-next-button:focus {
  box-shadow: 0 0 0 3px var(--formbricksPmf-brand-color-transparent);
}

/* Textarea */

.formbricks-textarea {
  width: 100%;
  height: 100px;
  padding: 0.5rem;
  border: 2.5px solid var(--formbricksPmf-textarea-border-color);
  border-radius: var(--formbricksPmf-border-radius);
  resize: none;
  transition: all 0.3s ease-out;
  overflow: auto;
  outline: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.formbricks-textarea:focus {
  border-color: var(--formbricksPmf-brand-color);
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

/* Radio */

.formbricks-radio-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.formbricks-radio-option {
  margin-top: 1rem;
}

.formbricks-radio-input {
  width: 0;
  position: fixed;
  opacity: 0;
}

.formbricks-radio-label {
  width: 100%;
  display: block;
  text-align: center;
  cursor: pointer;
  background-color: var(--formbricksPmf-brand-color-transparent);
  background: transparent\8;
  border: 1px solid var(--formbricksPmf-brand-color);
  padding: 5px 10px;
  border-radius: var(--formbricksPmf-button-border-radius);
  transition: all 0.3s ease-out;
}

.formbricks-radio-label:hover {
  background-color: var(--formbricksPmf-brand-color);
}

.formbricks-radio-input:focus + .formbricks-radio-label {
  box-shadow: 0 0 0 3px var(--formbricksPmf-brand-color-transparent);
}

.formbricks-radio-input:checked + label {
  background-color: var(--formbricksPmf-brand-color-transparent);
}

/* Thank you slide */
.formbricks-thankyou-icon {
  width: 100%;
  text-align: center;
  font-size: 3rem;
  margin: 0;
}

.formbricks-thankyou-title {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: var(--formbricksPmf-bold);
  margin: 1rem 0;
}

.formbricks-thankyou-subtitle {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  margin: 0;
}

/* Progressbar */

#formbricks-progressbar-wrapper {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  margin: 0 0 2rem 0;
}

.formbricks-progressbar {
  display: grid;
  height: 0.3rem;
  width: 12rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.formbricks-progressbar-item {
  background-color: var(--formbricksPmf-brand-color-transparent);
  width: 2.1rem;
  height: 100%;
  border-radius: 0.25rem;
  transition: all 0.3s ease-out;
}

.formbricks-progressbar-item-current {
  background-color: var(--formbricksPmf-brand-color);
}

/* Helpers */

.formbricks-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.formbricks-hidden {
  display: none !important;
}

/* Animations */

.fade-in {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
  transition: all 0.3s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.formbricks-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
