/*
 Theme Name:     Daisy Villa
 Description:    Child theme for Divi
 Author:         Practest
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/*set the Divi menu dropdown auto width*/
@media only screen and (min-width: 981px) {
	.nav li ul {
		width: fit-content;
		display: flex;
		flex-direction: column;
	}

	.nav li li {
		white-space: nowrap;
	}

	.nav li li a {
		width: auto !important;
	}
}


/* Practest NHS1 - Form and Pattern Support
   Add to Divi > Theme Options > Custom CSS, or to a child theme stylesheet.
   Scope form styling by adding the class nhs1-form-page to the Divi section containing the form. */

/* Gravity Forms - NHS style */
.nhs1-form-page .gform_wrapper.gravity-theme,
.nhs1-form-page .gform_wrapper {
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-top: 8px solid #005EB8;
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.nhs1-form-page .gform_wrapper .gfield_label,
.nhs1-form-page .gform_wrapper legend.gfield_label {
  color: #212B32;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.nhs1-form-page .gform_wrapper .gfield_description,
.nhs1-form-page .gform_wrapper .gsection_description {
  color: #425563;
  font-size: 16px;
  line-height: 1.55;
}

.nhs1-form-page .gform_wrapper input[type=text],
.nhs1-form-page .gform_wrapper input[type=email],
.nhs1-form-page .gform_wrapper input[type=tel],
.nhs1-form-page .gform_wrapper input[type=url],
.nhs1-form-page .gform_wrapper input[type=number],
.nhs1-form-page .gform_wrapper textarea,
.nhs1-form-page .gform_wrapper select {
  border: 2px solid #4c6272;
  border-radius: 0;
  min-height: 46px;
  font-size: 18px;
  color: #212B32;
}

.nhs1-form-page .gform_wrapper input:focus,
.nhs1-form-page .gform_wrapper textarea:focus,
.nhs1-form-page .gform_wrapper select:focus {
  outline: 4px solid #ffdd00;
  outline-offset: 0;
  border-color: #212B32;
}

.nhs1-form-page .gform_wrapper .gsection {
  border-bottom: 0;
  border-top: 1px solid #d8dde0;
  padding-top: 24px;
  margin-top: 24px;
}

.nhs1-form-page .gform_wrapper .gsection_title {
  color: #003087;
  font-size: 26px;
  font-weight: 700;
}

.nhs1-form-page .gform_wrapper .gchoice {
  margin: 10px 0;
}

.nhs1-form-page .gform_wrapper input[type=radio],
.nhs1-form-page .gform_wrapper input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}

.nhs1-form-page .gform_wrapper .gform_button,
.nhs1-form-page .gform_wrapper input[type=submit] {
  background: #00703C;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 13px 26px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.nhs1-form-page .gform_wrapper .gform_button:hover,
.nhs1-form-page .gform_wrapper input[type=submit]:hover {
  background: #005A30;
}

.nhs1-form-page .gform_required_legend {
  color: #425563;
  font-size: 16px;
}

.nhs1-form-page .gform_wrapper .validation_message,
.nhs1-form-page .gform_wrapper .gfield_validation_message {
  border-left: 6px solid #DA291C;
  background: #FFF4F4;
  color: #212B32;
  padding: 10px 14px;
}

.nhs1-form-page .gform_wrapper .gform_validation_errors {
  border: 4px solid #DA291C;
  border-radius: 0;
  box-shadow: none;
}

.nhs1-form-page .gform_wrapper .gform_validation_errors h2 {
  color: #212B32;
  font-size: 20px;
}

/* Practest NHS1 - Panels */
.nhs1-panel-inset {
  border-left: 6px solid #005EB8;
  background: #F0F4F5;
  padding: 18px 22px;
  color: #212B32;
}

.nhs1-panel-warning {
  border-left: 8px solid #DA291C;
  background: #FFF4F4;
  padding: 18px 22px;
  color: #212B32;
}

.nhs1-panel-success {
  border-left: 8px solid #00703C;
  background: #EFF8F3;
  padding: 18px 22px;
  color: #212B32;
}

.nhs1-panel-callout {
  border-top: 8px solid #005EB8;
  background: #fff;
  padding: 26px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.nhs1-panel-inset a,
.nhs1-panel-warning a,
.nhs1-panel-success a,
.nhs1-panel-callout a {
  color: #005EB8;
  font-weight: 700;
  text-decoration: underline;
}

.nhs1-panel-inset h2,
.nhs1-panel-inset h3,
.nhs1-panel-warning h2,
.nhs1-panel-warning h3,
.nhs1-panel-success h2,
.nhs1-panel-success h3,
.nhs1-panel-callout h2,
.nhs1-panel-callout h3 {
  margin-top: 0;
  color: #003087;
}

/* Practest NHS1 - Focus states */
.et_pb_button:focus,
.gf-modal:focus,
.service-button:focus,
a:focus {
  outline: 4px solid #ffdd00 !important;
  outline-offset: 3px !important;
}

/* Practest NHS1 - Equal height card rows */
.nhs1-equal-card-row .et_pb_column {
  display: flex;
  flex-direction: column;
}

.nhs1-equal-card-row .et_pb_module,
.nhs1-equal-card-row .et_pb_blurb {
  width: 100%;
}

.nhs1-equal-card-row .et_pb_blurb_content {
  height: 100%;
}

.nhs1-equal-card-row .et_pb_blurb {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.nhs1-equal-card-row .et_pb_blurb_container {
  flex: 1;
}

@media (max-width: 980px) {
  .nhs1-equal-card-row .et_pb_blurb {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .nhs1-equal-card-row .et_pb_blurb {
    min-height: 0;
  }
}

/* Practest NHS1 - Stack buttons inside compact content cards */
.nhs1-stack-buttons .et_pb_button_module_wrapper {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.nhs1-stack-buttons .et_pb_button {
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

/* Practest NHS1 - Inner page helpers */
.nhs1-contact-list p {
  margin-bottom: 10px;
}

.nhs1-mini-link-grid ul {
  columns: 2;
  column-gap: 32px;
}

.nhs1-mini-link-grid li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.nhs1-form-placeholder {
  border: 2px dashed #4c6272;
  background: #f0f4f5;
  padding: 22px;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .nhs1-mini-link-grid ul {
    columns: 1;
  }
}

/* Practest NHS1 - Modern side navigation panel */
.nhs1-side-nav-panel {
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-top: 6px solid #005EB8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.nhs1-side-nav-panel .nhs1-side-nav-kicker {
  margin: 0 0 6px;
  color: #005EB8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.nhs1-side-nav-panel h2 {
  margin: 0 0 8px;
  padding: 0;
  color: #003087;
  font-size: 22px;
  line-height: 1.25;
}

.nhs1-side-nav-intro {
  margin: 0 0 14px;
  color: #425563;
  font-size: 15px;
  line-height: 1.45;
}

.nhs1-side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nhs1-side-nav-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  color: #212b32 !important;
  background: #f0f4f5;
  border: 1px solid #d8dde0;
  border-left: 5px solid #d8dde0;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.nhs1-side-nav-link strong {
  display: block;
  color: #003087;
  font-size: 16px;
  line-height: 1.25;
}

.nhs1-side-nav-link span {
  display: block;
  margin-top: 4px;
  color: #425563;
  font-size: 14px;
  line-height: 1.35;
}

.nhs1-side-nav-link:hover,
.nhs1-side-nav-link:focus {
  background: #ffffff;
  border-color: #005EB8;
  transform: translateY(-1px);
}

.nhs1-side-nav-link:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 2px;
}

.nhs1-side-nav-link.is-active {
  background: #e8f1fb;
  border-color: #005EB8;
  border-left-color: #005EB8;
}

.nhs1-side-nav-link.is-active strong::after {
  content: "Current page";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  color: #ffffff;
  background: #005EB8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* Tablet side navigation layout */
@media (max-width: 980px) {
  .nhs1-side-nav-panel {
    padding: 18px;
    margin-bottom: 18px;
  }

  .nhs1-side-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nhs1-side-nav-link {
    width: calc(50% - 5px);
  }
}

/* Mobile side navigation layout */
@media (max-width: 767px) {
  .nhs1-side-nav-links {
    flex-direction: column;
  }

  .nhs1-side-nav-link {
    width: 100%;
  }

  .nhs1-side-nav-link span {
    font-size: 13px;
  }
}

/* Practest NHS1 - Mobile form spacing */
@media (max-width: 760px) {
  .nhs1-form-page .gform_wrapper {
    padding: 20px;
  }

  .nhs1-form-page .gform_wrapper .gsection_title {
    font-size: 23px;
  }
}