@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
@import "~@ng-select/ng-select/themes/default.theme.css";

$mdi-font-path: '~@mdi/font/fonts';
@import '~@mdi/font/scss/materialdesignicons.scss';
@import "_variables";

* {
  font-family: "Open Sans", sans-serif;
}

formly-form.row.main-form > formly-field.col-12:first-child:not(.order-0):not(.container-block) {
  padding-left: 0px;
  padding-right: 0px;
}

.container-block {
  border: .0625rem solid rgba(231, 234, 243, .7);
  box-shadow: 0 6px 12px rgba(140, 152, 164, .075);
  border-radius: 0.75em;
  transition: all 1s ease;
  padding: 1.25rem;
  margin-bottom: 2%;
}

.container-block.order-1 {
  max-width: 48% !important;
  margin-right: 2% !important;
}

.component-preview-magnolia .col-12.force-flex-100 {
  flex: 0 0 100%;
  max-width: 100%;
}

.component-preview-magnolia .mat-horizontal-content-container {
  padding-left: 0px;
  padding-right: 0px;
}

formly-field.auto-fill-width.col-12 {
  line-height: 1;
  padding: 0;
}


.auto-fill-width formly-group {
  display: flex;
}

.auto-fill-width formly-group formly-field {
  flex-basis: 100%;
}

.auto-fill-width formly-group formly-field:not(:last-child) {
  margin-right: 15px;
}

.mat-step-header .mat-step-icon-state-edit,
.mat-step-header .mat-step-icon-selected {
  /* background-color: #349CF5; */
  background-color: $primary;
  font-weight: bold;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  color: #fff;
}

.mat-step-header .mat-step-icon-state-number {
  font-weight: bold;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
}

.mat-step-header .mat-step-icon {
  background-color: #cfcfcf;
}

.mat-step-header .mat-step-icon-selected {
  /* background-color: #349CF5 !important; */
  background-color: $themeColor;
}

.mat-step-icon.mat-step-icon-state-edit{
  background-color: $primary;
}

.bg-green {
  background-color: $primary;
  font-size: 1em;
  font-weight: bold;
}

.bg-green.mat-icon {
  font-size: 0.9em !important;
  font-weight: bold;
  height: auto !important;
  width: auto !important;
  border-radius: 50%;
}

.mat-step-header .mat-step-icon-state-number {
  font-size: 1em !important;
  color: #fff !important;
}

.component-preview-magnolia label {
  margin-bottom: 0px;
  line-height: 24px;
}

.component-preview-magnolia label h5 {
  font-size: 15px;
  color: #000;
  margin-right: 10px;
  margin-bottom: 0px;
  padding-bottom: 5px;
}

.component-preview-magnolia label h5 strong {
  font-weight: 500;
}

.component-preview-magnolia label p {
  margin-bottom: 0px;
}

.component-preview-magnolia .mat-horizontal-stepper-header {
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.component-preview-magnolia .mat-horizontal-stepper-header .mat-step-icon {
  flex: 0 0 40px;
  margin: auto;
}

.component-preview-magnolia .mat-step-header .mat-step-label {
  flex: 0 0 100%;
  margin: auto;
  text-align: center;
}

.btn-magnolia {
  background-color: $cta !important;
  border-radius: 50px;
  border-color: $cta !important;
  padding-left: 40px;
  padding-right: 40px;
}

.btn-magnolia:hover,
.btn-magnolia-grey:hover {
  background-color: $cta !important;
  border-color: $cta !important;
}

.btn-magnolia:disabled {
  background-color: #ccc;
  color: #666;
  border-color: #666;
}

.btn-magnolia:focus, .btn-magnolia.focus {
  background-color: $cta !important;
}

.cta {
  background-color: $cta !important;
  border-color: $cta !important;
}
.cta:hover {
  background-color: $ctaHover !important;
  border-color: $ctaHover !important;
}
.cta:disabled {
  background-color: $ctaDisable !important;
  border-color: $ctaDisable !important;
}


.btn-magnolia-grey {
  background-color: #fff !important;
  border-radius: 50px;
  border-color: #757575 !important;
  color: #757575;
  padding-left: 40px;
  padding-right: 40px;
  margin-right: 20px;
}

.mat-stepper-horizontal-line {
  display: none;
}

.component-preview-magnolia .mat-horizontal-stepper-header {
  display: flex;
  justify-content: flex-start;
  align-items: center; /* making vertical centerign of all children */
}

.component-preview-magnolia mat-step-header {
  position: relative;
}

.component-preview-magnolia mat-step-header::before {
  border-top: 2px solid #dfdfdf;
  content: "";
  margin: 0 auto; /* this centers the line to the full width specified */
  position: absolute; /* positioning must be absolute here, and relative positioning must be applied to the parent */
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.component-preview-magnolia mat-step-header:first-child::before {
  left: 50%;
}

.component-preview-magnolia mat-step-header:last-child::before {
  right: 50%;
  width: 50%;
}

.component-preview-magnolia .mat-step-header[aria-labelledby="disabled_header"] {
  display: none;
}

.mat-horizontal-stepper-header-container {
  width: 80%;
  margin: auto;
  margin-top: 20px;
}


// hack block info

.container-block.col-12.order-0 formly-group:first-child,
.container-block.col-12.order-3 formly-group:first-child, {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  align-items: center;
  width: 100%;
}

/*
.component-preview-magnolia .ng-invalid:not(form) {
  border-left: 1px solid rgb(206, 212, 218);
}

.ng-valid[required], .ng-valid.required{
  border-left: 1px solid rgb(206, 212, 218);
} */

input.ng-pristine.ng-invalid, .ng-valid[required], .ng-valid.required, .form-control:focus{
  -webkit-box-shadow: none;
  -ms-box-shadow: none;
  box-shadow:none;
  border-left: 1px solid #ced4da !important;
  border-color: #ced4da !important;
}


.single-response .row {
  width: 100%;
  margin-left: 0;
}

.mat-step-header {
  pointer-events: none !important;
}

.form-group {
  margin-bottom: 1.3rem;
}

@media (max-width: 576px) {

  .container-block {
    border: none;
    box-shadow: none;
    border-radius: 0px;
    padding: 0px;
  }

  .container-block.order-1 {
    max-width: 100% !important;
    margin-right: 0% !important;
  }

  .component-preview-magnolia .mat-horizontal-content-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .mat-step-header .mat-step-icon-state-number, .mat-step-header .mat-step-icon-state-edit {
    font-size: 0.8em !important;
  }

  .mat-step-header .mat-step-icon-state-number, .mat-step-header .mat-step-icon-state-edit {
    width: 30px;
    height: 30px;
  }

  .component-preview-magnolia .mat-horizontal-stepper-header .mat-step-icon {
    flex: 0 0 30px;
  }

  .component-preview-magnolia mat-step-header::before {
    top: 35px;
  }

  .mat-step-label {
    display: none !important;
  }

  .mat-horizontal-stepper-header-container {
    width: 100%;
  }

  .component-preview-magnolia label {
    margin-bottom: 0px;
  }
  .component-preview-magnolia label h5 {
    font-size: 15px;
    color: #000;
    text-align: left;
    margin-right: 10px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    padding-top: 10px;
  }

  .component-preview-magnolia label p {
    margin-bottom: 0px;
  }

  .auto-fill-width formly-group {
    display: block;
    margin-bottom: 0px;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  formly-field ul {
    margin-bottom: 0px;
  }

  .container-block.col-12.order-0 formly-group:first-child,
  .container-block.col-12.order-3 formly-group:first-child, {
    margin-left: auto;
    margin-right: auto;
    padding: 0px;

    formly-field:first-child {
      padding: 0px;
    }
  }

  .form-control {
    padding: 11px 17px;
    box-shadow: 0 4px 8px rgba(172, 186, 200, .1);
    height: auto;
    border-radius: 12px;
  }

  .mat-horizontal-stepper-header-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .component-preview-magnolia label h5 {
    text-align: left;
    font-size: 15px;
    line-height: 24px;
  }

  .component-preview-magnolia label h5 strong {
    font-weight: 500;
  }

  .auto-fill-width formly-group {
    display: block;
    margin-bottom: 0px;
    margin-top: 12px;
  }

  .form-group {
    margin-bottom: 0px;
  }

  .mat-horizontal-stepper-header-container {
    display: none !important;
  }
}

.component-preview-magnolia label ul li strong {
  font-weight: 500;
}

.height-230 {
  height: 230px;
}

.component-preview-magnolia input[type="file"].ng-invalid.ng-touched + label {
  border: 1px solid red;
}

.component-preview-magnolia h5 {
  color: var(--menu-color) !important;
}

.form-group label, .form-group label * {
  color: #29323a !important;
  font-weight: 600;
}

.form-group label.custom-file-label,
.form-group label.custom-file-label span {
  font-weight: normal !important;
}

.form-group label ul li {
  font-weight: normal;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

.btn-primary.focus, .btn-primary:focus, .btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: $primary;
  border-color: $primary;
}


h5 font {
  font-size: 15px;
  margin-right: 10px;
  margin-bottom: 0px;
  padding-bottom: 5px;
  color: #29323a !important;
  font-weight: 600;
}

.step-summary-funeral {
  .form-group.picker {
    max-width: 230px;
    margin-bottom: 0px;
  }
}

.step-summary {
  .form-group.picker {
    max-width: 230px;
    margin-bottom: 0px;
  }
}

body div:not(.step-beneficiary) > ngb-datepicker {
  position:fixed !important;
  top: 50% !important;
  left: 50% !important;
  margin-top: -130px !important;
  margin-left: -115px !important;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

body div.step-beneficiary ngb-datepicker {
  position: absolute !important;
  top: 0px !important;;
  left: 0px !important;;
  will-change: transform;
  transform: translate(0px, 38px);
  margin-top: 0px !important;
  margin-left: 0px !important;
  box-shadow: none;
}


.mat-dialog-container{
  border-radius: 24px !important;
  padding-bottom: 40px!important;
}

.cdk-overlay-pane{
  min-width:60vw;
  max-width: 60vw !important;
}

@media (max-width: 576px) {
  .ng-select .ng-select-container{
    padding: 11px 6px 11px 17px;
    box-shadow: 0 4px 8px rgb(172 186 200 / 10%);
    border-radius: 12px;
    height:48px !important;
  }

  .ng-select .ng-value{
    padding: 5px 0px !important;
  }

  .ng-select .ng-value-container{
    padding-left:0px !important;
  }

  .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{
    left:6px !important;
    top:14px;
  }

  .cdk-overlay-pane{
    max-width: 100% !important;
  }

  .mat-bottom-sheet-container{
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    min-height:60vh;
  }
}

.read-more-highlight{
  cursor: pointer;
  text-decoration: underline;
}

.read-more {
  text-decoration: underline;
  cursor: pointer;
}


.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
