.resources {
}

.resources-inner {
  max-width: 820.5px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.resource {
	border: 1px solid #c5d0df;
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: relative;

	.resource-title {
		color: var(--navy-20);
		font-weight: 500;
		text-transform: uppercase;
		margin-bottom: 20px;
		flex: 1 1 auto;
	}

	.resource-links {
		display: flex;
		align-items: center;
		gap: 16px;

		a {
			text-decoration: none;
			display: inline-block;
		}

		.btn-download {
			background: transparent;
			border: 0;
			padding: 0;
		}
	}
}

.resource-top {
	border-bottom: 1px dotted #1a3e6f99;
	margin-bottom: 30px;
	padding-bottom: 30px;

	.resource {
		background-color: var(--navy-100);
		position: relative;

		&::before {
			content: "";
			position: absolute;
			top: -2px;
			left: -2px;
			width: 100%;
			height: 100%;
			background-image: url('/themes/custom/seeaseizure_bootstrap/images/icons/top-left.svg');
			background-repeat: no-repeat;
			background-position: top left;
			background-size: 28px;
			z-index: 2;
			pointer-events: none;
			visibility: visible;
		}

		&::after {
			content: "";
			position: absolute;
			bottom: -2px;
			right: -2px;
			width: 100%;
			height: 100%;
			background-image: url('/themes/custom/seeaseizure_bootstrap/images/icons/bottom-right.svg');
			background-repeat: no-repeat;
			background-position: bottom right;
			background-size: 28px;
			z-index: 2;
			pointer-events: none;
			visibility: visible;
		}
	}
}

.resource-bottom {
	display: flex;
	gap: 30px;

  @media (max-width: 767px) {
    flex-wrap: wrap;
  }

	.resource {
		flex: 1 1 50%;
	}
}

#resourceModal {
  ::placeholder {
    color: #8E8E8E;
  }
  .btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
  }
  .modal-dialog {
    max-width: 600px;
  }
  .modal-content {
    border: 0;
    border-radius: 0;
  }
  .modal-body {
    padding: 90px 24px 50px 24px;
    @media (min-width: 768px) {
      padding: 90px 80px 50px 80px;
    }
  }
  .form-item {
    margin-top: 0;
    margin-bottom: 30px;
  }
  .form-actions {
    margin-block: 0;
  }
  .form-item-resource-type {
    display: none;
  }
  .form-item-email-address,
  .form-item-your-name {
    display: flex;
    flex-direction: column;
    gap: 8px;

    label:first-child {
      order: 1;
      font-weight: bold;
      font-size: 16px;
      line-height: 1.4;
    }
    label:first-child:after {
      background-image: none;
    }
    input {
      order: 3;
      border-radius: 0;
    }
    label:nth-child(3) {
      order: 4;
      color: #D41612;
    }
    .description {
      order: 2;
      font-size: 11px;
      line-height: 1.4;
      color: #757575;
    }
  }
}

.ui-widget.ui-widget-content {
  border-radius: 0 !important;
  border: 0;
  @media screen and (max-width: 767px) {
    width: 100% !important;
    top: 50% !important;
    transform: translateY(-50%);
  }
  @media screen and (min-width: 768px) {
    top: 224px !important;
    transform: none;
  }
}
.ui-dialog .ui-dialog-titlebar {
  border: 0 !important;
  background-color: #fff !important;
  z-index: 3;
}
.ui-widget-overlay {
  background-color: #000 !important;
  opacity: 0.5 !important;
}
.ui-dialog .ui-dialog-content {
    padding: 56px;
}
.ui-dialog .ui-dialog-title {
    height: 0;
}
.btn-close, .ui-dialog .ui-dialog-titlebar-close {
  --bs-btn-close-bg: url('/themes/custom/seeaseizure_bootstrap/images/icons/close.svg');
  background-size: 24px;
  width: 24px;
  height: 24px;
  opacity: 1;
  padding: 24px;
}
.webform-confirmation-modal--content {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    font-family: var(--bs-body-font-family);
    &:before {
      content: '';
      display: block;
      width: 118px;
      height: 120px;
      margin-left: auto;
      margin-right: auto;
      position: relative;
      background-image: url('/themes/custom/seeaseizure_bootstrap/images/icons/paper-airplane.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      margin-block: 30px;
    }
}
.form-actions {
  position: relative;
  display: inline-block;
  
  &::after {
    content: "";
    position: absolute;
    right: 50px;
    top: 48%;
    transform: translateY(-50%);
    width: 13.33px;
    height: 10px;
    background-image: url("/themes/custom/seeaseizure_bootstrap/images/icons/arrow-right.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
  }
  
  input.btn-primary {
    font-size: 14px;
    line-height: 1.4;
    padding: 14px 79px 14px 48px;
  }
}