/**
 * Tributary — forms/popup-inquiry/style.css (v2.3.0)
 * Auto-enqueued by convention when this form renders. Rules lifted VERBATIM
 * from the retired assets/css/popups.css; shared popup primitives are
 * duplicated into both popup forms so each stays self-contained.
 */



/* Common content container styling */
.popup-content2 {
  position: relative; /* for the close button to position easily */
  width: 100%; /* Changed from 80% to 100% */
  margin: 0;   /* Removed margin */
  text-align: center;
  height: 100%;
}

.submit-btn2 {
  width: 100%;
  background-color: #208066;
  color: white;
  border: 2px solid #208066;
  padding: 6px 0;
  border-radius: 16px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 15px; /* Reduced from 20px */
}

.submit-btn2:hover {
  background-color: transparent;
  color: #208066;
}

.thankyou-top-half {
  /* Exactly top 50% of the popup */
  flex: 0 0 50%;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-top-left-radius: 12px; /* Match popup's border radius */
}

.thankyou-top-half img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container completely */
  display: block;
}

.thankyou-bottom-half {
  /* Bottom 50% of the popup */
  flex: 0 0 50%;
  padding: 15px 10% 50px; /* Added horizontal padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thankyou-bottom-half .thankyou2-title {
  text-align: left;
  margin: 0;
  color: #1D354D;
  font-size: 26px !important;
  font-family: 'TTCommonsDemiBold', sans-serif !important; /* Removed "Pro" */
  font-weight: 600 !important;
  padding: 15px 0 15px 0;
}

.thankyou-bottom-half .thankyou2-message {
  text-align: left;
  margin: 0;
  color: #1D354D;
  line-height: 1.2em;
  font-family: 'TTCommonsRegular', sans-serif !important; /* Removed "Pro" */
  font-size: 16px !important;
}

/* Main popup container */
.popup {
    width: 72%;
    background-color: #EEF6F8;
    border-radius: 12px;
    display: flex;
    flex-direction: row; /* Explicitly set row direction */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 650px;
    transition: all 0.2s ease;
    height: auto;
    max-height: 80vh;
    margin-left: auto;
    margin-right: auto;
    max-width: 956px;

}

/* Heading styles using paragraph elements */
.popup-heading-initial {
    margin-top: 0;
    color: #1D354D;
    margin-bottom: 15px; /* Reduced from 20px */
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-family: 'TTCommonsDemiBold', sans-serif !important;
    font-weight: 600 !important;
}

.popup-heading-thank-you {
    margin-top: 0;
    color: #1D354D;
    margin-bottom: 15px;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-family: 'TTCommonsDemiBold', sans-serif !important;
    font-weight: 600 !important;
    padding: 0;

}

.popup-text {
    margin-top: 0;
    color: #1D354D;
    margin-bottom: 10px;
    font-size: 18px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

@media (max-width: 1093px) {
    .popup-heading-initial {
        font-size: 22px !important;
        margin-bottom: 10px;
    }
    .popup-heading-thank-you {
        font-size: 28px !important;
        margin-bottom: 10px;
    }
    .download-btn {
    	margin-top: 10px;
    }
    .popup-text{
    	margin-bottom: 0px;
    }
}

@media (max-width: 800px) {
    .popup {
        min-width: 640px;
    }
    .popup-heading-initial {
    	font-size: 22px !important;
    }
}

@media (max-width: 720px) {
    .popup {
        min-width: 640px;
        min-height: 270px;
    }

}

/* Content section */
.popup-content {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-bottom: 40px;
    margin-right: auto;
    margin-left: auto;
}

/* Form styling */
.form-group {
    margin-bottom: 10px !important; /* Reduced from 15px */
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #1D354D !important; /* Fixed border with !important */
    font-size: 14px;
    color: #1D354D;
    height: 30px; /* Increased height for form entries */
    z-index: 99999;
    border-radius: 0; /* Reset any border-radius */
    outline: none; /* Remove default focus outline */
    -webkit-appearance: none; /* Remove default styling on Safari */
    -moz-appearance: none; /* Remove default styling on Firefox */
    appearance: none; /* Remove default styling on other browsers */
    background-color: #EEF6F8; /* Match the popup background color */
}

.form-control:focus {
    border: 1px solid #1D354D !important; /* Ensure border remains on focus */
    outline: none; /* Remove browser focus outline */
}

.form-control::placeholder {
    color: #888;
    font-style: italic;
}

/* Download button */
.download-btn {
    background-color: #208066;
    border: 2px solid #208066;
    color: white;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    /* Replace min-width with width based on viewport width */
    width: 220px;
    height: 36px; /* Fixed height as requested */
    text-align: center;
    border-radius: 16px;
    margin-top: 8px;
    align-self: flex-start;
    line-height: 32px;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: transparent;
    color: #208066;
    border: 2px solid #208066;
}
/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #208066;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 100;
}

.close-btn:hover {
    background-color: #1a6854;
}

/* Contact button */
.contact-btn {
    background-color: #208066;
    border: 2px solid #208066;
    color: white;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
    /* Replace min-width with width based on viewport width */
    width: 290px;
    height: 36px; /* Fixed height as requested */
    text-align: center;
    border-radius: 16px;
    margin-top: 12px !important;
    align-self: flex-start;
    line-height: 32px;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: 'TTCommonsDemiBold', sans-serif !important;
}

.contact-btn:hover {
    background-color: transparent;
    color: #208066 !important;
}

@media (max-width: 1093px) {
    .download-btn, .contact-btn {
        margin-top: 12px !important;
    }
}

/* Mobile styles for buttons */
@media (max-width: 681px) {
    .download-btn, .contact-btn {
        width: 100% !important; /* Full width on mobile */
    }
}

/* Mobile styles for the download button */
@media (max-width: 681px) {
    .download-btn {
        width: 100% !important; /* Full width on mobile */
    }
}
/* ============================================================
   Evergreen Forms — popup styles
   Verbatim ports of the old popup-assets/popup.css (inquiry
   popup) and resource-popup/popup-styles.css (download popup),
   merged into one file. Design unchanged.
   ============================================================ */

/* ------------------------------------------------------------
   INQUIRY POPUP (#simplePopup2) — from popup-assets/popup.css
   ------------------------------------------------------------ */

/* The Popup Container */
#simplePopup2 {
  width: 306px;
  height: 393px;
  background-color: #EEF6F8;
  position: fixed;
  right: 0;
  top: 40%;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: -3px 0 10px rgba(0,0,0,0.1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden; /* Added to ensure content doesn't overflow */
}

/* Close Button */
.close-btn2 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background-color: #208066;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 100; /* on top of everything inside popup */
}
#simplePopup2.submitted .close-btn2 {
  background-color: #EEF6F8 !important;
  color: #013F2E !important;
}

.close-btn2:hover {
  background-color: #1a6854;
}
/* Special hover effect for submitted state */
#simplePopup2.submitted .close-btn2:hover {
  background-color: #dcecf0 !important;
}

/* Form container: visible by default, hidden after submit */
#formContent {
  display: block;
  padding-top: 40px; /* so content doesn't run under close button */
  width: 80%; /* Added width */
  margin: 0 auto; /* Center the form content */
}

#formContent .popup2-title {
  color: #1D354D;
  font-size: 18px;
  text-align: left;
  margin-bottom: 20px !important; /* Reduced spacing slightly */
  line-height: 1.2em !important;
  font-family: 'TTCommonsDemiBold', sans-serif !important; /* Removed "Pro" */
  font-weight: 600;
}

#formContent input,
#formContent textarea {
  width: 100%;
  height: 28px;
  border: 1px solid #1D354D !important; /* Changed to 1px and added !important */
  margin-bottom: 8px; /* Reduced slightly to fit new field */
  padding: 4px;
  box-sizing: border-box;
  color: #1D354D;
  font-size: 12px;
}

#formContent textarea {
  height: 85px; /* Reduced slightly to accommodate new field */
  resize: none;
}

/* Hidden meta fields (nonce/slug/ts) must not take layout space. */
#formContent input[type="hidden"] {
  display: none;
  margin: 0;
  height: 0;
}

/* Thank-you container: hidden by default, shown after submit */
#thankyouContent {
  display: none;
  height: 100%;
  flex-direction: column;
  padding-top: 0; /* Removed padding-top */
  overflow: hidden; /* Ensure content doesn't overflow */
}

#popupTrigger2 {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #208066;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
#popupTrigger2:hover {
  background-color: #1a6854;
}

/* Add placeholder styling */
#formContent input::placeholder,
#formContent textarea::placeholder {
  font-style: italic;
  color: #888;
}


/* ---------------- honeypot ----------------
   Hides the frozen-contract er_hp wrapper. Copied verbatim from
   get-started/style.css — this rule was missing here, leaving the
   "Leave this field empty" field VISIBLE wherever this form rendered
   without get-started's stylesheet also on the page. A filled honeypot
   fake-succeeds before storage, so a visible one silently eats leads.
   Kit fix pending: move this block into components/forms/assets/forms.css
   (core-owned), at which point per-form copies become redundant. */
.er-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
