/**
 * Styles for the Spark Block.
 */

:root {
  --color-fuchsia: #A20067;
}

.spark-block-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .spark-block-container {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;

  }
}

/* Form styles */
#spark-block-form-wrapper {
  max-width: 626px;
  width: fit-content;
  padding: 2rem;
  margin: 1rem 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  /*box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);*/
  box-shadow: 0px 8px 24px -4px rgba(0, 0, 0, 0.10);


  /* Hide the legend/title for the radio buttons */
  legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .form-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .form-radios .form-item {
    margin: 0;

    label {
      display: block;
      padding: 0.75rem 1.5rem;
      background-color: #ffffff;
      border: 1px solid #dee2e6;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    label:hover {
      background-color: #e9ecef;
    }

  }

  form .form-type-radio label:before {
    background-color: transparent;
  }


  .form-radios .form-item input:checked + label {
    background-color: var(--color-fuchsia);
    color: #ffffff;
    border-color: var(--color-fuchsia);
  }

  /* Submit button */
  .form-actions .form-submit {
    border-radius: 2rem;
    background-color: var(--color-fuchsia);
    padding: 0.5rem 3.5rem 0.5rem 2.5rem;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  /* Disabled submit button */
  .form-actions .form-submit:disabled {
    background-color: #535459;
    cursor: not-allowed;
  }

  /* after element for the submit button */
  form .form-actions:after {
    margin-left: -1rem;
    line-height: 1.0;
    font-weight: normal;
    content: "\f054";
    font-family: icomoon;
    font-size: 1.25rem;
  }

  form .form-actions {
    width: fit-content;
    margin: 1rem auto;
    justify-content: center;
    padding: 0 1.25rem;
  }

  .form-item.form-type-radio {
    margin-bottom: 1rem;
  }


  .form-actions .form-submit:hover {
    background-color: #8a0057; /* Slightly darker shade of fuchsia for hover */
  }

  /* Ensure hover doesn't override disabled state */
  .form-actions .form-submit:disabled:hover {
    background-color: #535459;
  }
}

/* Result container */
.spark-result {
  /*margin-top: 1.5rem;*/
  /*padding: 1.5rem;*/
  /*background-color: #ffffff;*/
  border-radius: 8px;
  /*box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);*/
}

/* Reset button */
.spark-result .form-submit {
  margin-top: 24px;
  padding: 0.5rem 3.75rem 0.5rem 1.5rem;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 2rem;
  background-color: var(--color-fuchsia);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.spark-btn .modal-is-open:after {
  margin-left: 1rem;
  line-height: 1.0;
  font-weight: normal;
  content: "\f054";
  font-family: icomoon;
  font-size: 1.25rem;
}

.spark-result .modal-is-open:hover {
  color: #fff !important;
  background-color: var(--color-fuchsia) !important;
}

.spark-result .modal-is-open  a {
}

.spark-result .modal-is-open {
  display: flex;
  margin-top: 24px;
  padding: 0.5rem 1.5rem;
  color: var(--color-fuchsia);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 2rem;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
  max-width: 227px;
  font-weight: 700;
  align-items: center;
}

.spark-result .form-submit:hover {
  background-color: #5c636a;
}

.spark-result {
  .btn-primary {
    position: relative;
    width: 260px;
    margin-left: auto;
    margin-right: auto;

    &::after {
      content: "\f054";
      font-family: 'icomoon';
      position: absolute;
      font-size: 1.25rem;
      margin-left: -1rem;
      line-height: 1.0;
      font-weight: normal;
      color: white;
      right: 30px;
      top: 11px;
    }
  }
}

.hide-polaroid {
  display: none !important;
}
