/* Center the form container */
.wpforms-container {
    display: flex;
    justify-content: center;
}

/* Limit form width and center it */
.wpforms-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* Center labels */
.wpforms-form .wpforms-field-label {
    text-align: center;
}

/* Make fields wider and center them */
.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select {
    display: block !important;      /* override WPForms inline styles */
    width: 100% !important;         /* full width of the form container */
    max-width: 400px;               /* control maximum width */
    margin: 0 auto !important;      /* center in container */
    text-align: center;
    box-sizing: border-box;         /* ensures padding doesn’t break width */
    padding: 10px;
    border-radius: 6px;
}

/* Center the submit button */
.wpforms-submit-container {
    text-align: center;
}

.wpforms-form button {
    border-radius: 6px;
    padding: 10px 20px;
}

/* for modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 300px;
  text-align: center;
}

.close {
  cursor: pointer;
  float: right;
}

/* font for website */
* {
    font-family: "Times New Roman", Times, serif !important;
}

/* for flyout menu */
.hfe-flyout-content {
    overflow: visible !important;
		height: 100vh !important;
}

.hfe-flyout-overlay {
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
		top: 0 !important;
    left: 0 !important;
}

body,
html,
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.turbo-header-wrapper {
    transform: none !important;
}

/* Force ALL Elementor containers to expand with content */
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-container,
.e-con,
.e-child,
.elementor-element {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Prevent text clipping */
h1,h2,h3,h4,h5,h6,
p,
span,
a,
li,
button,
.elementor-heading-title,
.elementor-text-editor {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Allow flex containers to wrap instead of overflow */
.e-con,
.elementor-container {
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

/* Buttons grow with translated text */
.elementor-button,
button {
    height: auto !important;
    min-height: 44px;
    white-space: normal !important;
    padding: 12px 20px !important;
}

/* Make columns stack instead of overlap */
@media (max-width: 1200px) {
    .elementor-column,
    .e-child {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Prevent hidden overflow */
body,
.elementor,
.elementor-widget {
    overflow-x: hidden;
}