/*
 Theme Name:     North Shore Costmetic Surgery Landing
 Theme URI:      https://start.nscsurgery.com
 Description:    Amazing custom theme!
 Author:         Optimal Digital Marketing
 Author URI:     https://optimal.marketing
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

@media (min-width: 981px) {
  .et_pb_row.align-center .et_pb_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

#page-container .gform-theme--framework {
  --gf-color-primary: #435642 !important;
  --gf-color-primary-darker: #3b4a3f !important;
  --gf-form-gap-y: 20px !important;
}
#page-container .gform-theme--framework input:is([type="submit"]) {
  --gf-local-radius: 50px;
  --gf-local-padding-x: 30px;
  --gf-local-width: 100%;
}

/* Wrapper for label + field */
.gform_wrapper .float-label {
  position: relative;
}

.gform_wrapper .float-label label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: #fdfef6;
  padding: 0 4px;
  color: #27302870;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease all;
}

.gform_wrapper .float-label input:focus + label,
.gform_wrapper .float-label textarea:focus + label,
.gform_wrapper .float-label input:not(:placeholder-shown) + label,
.gform_wrapper .float-label textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 8px;
  font-size: 12px;
  color: #2e372e;
  background: #fdfef6;
  transform: none;
}

/* Input style */
.gform_wrapper .float-label input,
.gform_wrapper .float-label textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #4452453d;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.gform_wrapper .float-label input:focus,
.gform_wrapper .float-label textarea:focus {
  outline: 2px solid #435642;
  outline-offset: 2px;
}

#page-container .gform_wrapper .gform_footer {
  margin-block-start: 10px;
}

/* -------------------------------------------------------- */
/* POPUP STUFF */
html {
  margin: 0 !important;
}
.mfp-wrap {
  overflow: hidden;
  position: absolute;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  /* blur background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mfp-hide {
  display: none !important;
}
.mfp-close-btn-in .mfp-close {
  color: #fff;
  font-size: 23px;
  opacity: 1;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 9;
  width: 34px;
  height: 34px;
  background: #00000042;
  border: none;
  text-align: center;
}
.mfp-close-btn-in .mfp-close:hover {
  background: #0000006b;
  cursor: pointer;
}
.mfp-preloader {
  display: none;
}

/** Iframe Form Shenanigans **/
#crazy-form .et_pb_code_inner {
  container-type: inline-size;
}
@container (width >= 450px) {
  #crazy-form iframe {
    height: clamp(780px, calc(1340px - 83.4vw), 1100px) !important;
  }
}
@container (width < 450px) {
  #crazy-form iframe {
    height: clamp(780px, calc(1340px - 83.4vw), 1100px) !important;
  }
}
