*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  --white-color: #fff;
  --primary-color: #0460CC;
  --primary-color-hover: #1b7fdd;
  --primary-color-active: #2553a8;
  --secondary-color: #FEF200;
  --secondary-color-hover: #fedc00;
  --secondary-color-active: #fedc00;
  --primary-bg-color: #ffffff;
  --secondary-bg-color: rgba(0, 0, 0, 0.03);
  --primary-text-color: #1D1D1B;
  --secondary-text-color: #4A4A48;
  --tertiary-text-color: #61615F;
  --border-color: rgba(0, 0, 0, 0.1);
  --placeholder-color: #AFADA3;

  --danger-color: #E72F3D;

  --border-width: 2px;
  --border-radius-base: 4px;
  --duration: .3s;
  --timing-function: ease-in-out;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* New theme */
.new-page-container {
  background-color: var(--secondary-bg-color);
  color: var(--primary-text-color);
  padding: 24px 24px 64px;
}

.new-page-container__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.new-page-container__heading h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  margin: 0;
}

.new-page-container__heading-back,
.new-page-container__heading h1 {
  align-self: flex-start;
}

.new-page-container__heading-back a {
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A4A48;
  font-size: 14px;
  line-height: 20px;
}

.new-page-container__heading-back a span {
  display: block;
  border-bottom: 1px solid currentColor;
}

@media (min-width: 768px) {
  .new-page-container__heading {
    margin-bottom: 36px;
  }

  .new-page-container__heading h1 {
    font-size: 48px;
    line-height: 56px;
    align-self: center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .new-page-container {
    padding: 40px 40px 64px;
  }
}

@media (min-width: 992px) {
  .new-page-container {
    padding: 40px 48px 120px;
  }
}


.new-request-page-container {
  width: 100%;
  max-width: 674px;
  margin: 0 auto;
}

.new-request-page-image {
  height: 138px;
  border-radius: 8px 8px 0 0;
  background-color: #00BC80;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  margin-bottom: -1px;
}

.new-request-page-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  z-index: 2;
}

.new-request-page-image::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, .9);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.new-request-page-content {
  padding: 24px;
  background-color: var(--primary-bg-color);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  border-radius: 0 0 8px 8px;
}

.new-request-page-content .mw-button {
  margin-bottom: 0;
}

.new-request-page__footer-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.success-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  align-items: center;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 28px;
}

.success-text > * {
  margin: 0;
}

@media (min-width: 768px) {
  .new-request-page-image {
    height: 240px;
    padding: 30px;
  }
}

/* Modals */
.modal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  transition: all .3s ease;
  visibility: hidden;
  overflow: hidden;
}

.modal::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-text-color);
  opacity: 0;
  transition: all .3s ease;
}

.modal__content {
  background-color: var(--primary-bg-color);
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
  transition: all .3s ease;
  transform: translateY(100%);
}

.modal__close {
  display: block;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0;
  border-radius: 4px;
  transition: all .3s ease-in-out;
}

.modal__close svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal__close:hover {
  background-color: rgba(0, 0, 0, .025);
  border-color: transparent;
}

.modal__close:focus {
  background-color: transparent;
  border-color: #033C81;
  box-shadow: 0 0 0 4px #0460CC4D;
}

.modal__close:active {
  background-color: rgba(0, 0, 0, .05);
  border-color: transparent;
  box-shadow: none;
}

.modal__title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 32px;
}

.modal.is-active {
  visibility: visible;
}

.modal.is-active::before {
  opacity: 0.5;
}

.modal.is-active .modal__content {
  transform: translateY(0);
}

.modal-is-active {
  overflow: hidden !important;
}

.modal__body-section + .modal__body-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.modal__body-title {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 8px;
}

.modal__body-text {
  margin: 0 0 12px;
}

.modal__body-text a {
  font-weight: bold;
  color: var(--primary-color);
  border: none;
}

.modal__body-text a:hover {
  color: var(--primary-color-hover);
}

.modal__body-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary-text-color);
}

.modal__body-meta p {
  margin: 4px 0;
}

.modal__body-meta p:first-child {
  margin-top: 0;
}

.modal__body-meta p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .modal {
    align-items: center;
    padding: 24px;
  }

  .modal__content {
    border-radius: 8px;
    padding: 48px;
    max-width: 512px;
    max-height: 100%;
    box-shadow: 0 0 24px #1D1D1B1A;
    opacity: 0;
    transform: translateY(0) scale(.9);
  }

  .modal.is-active .modal__content {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
