/**
 * Theme Name:     MTI 2025
 * Author:         Anastasia Berg
 * Text Domain:    mti-2025
 * Description:    MTI Relaunch 2025 - Modals
 */

/* ===== Modal Base Styles ===== */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

/* Modal Backdrop Fix */
.custom-modal::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* Dialog Containers */
.custom-modal-dialog,
.search-modal-dialog {
  position: relative;
  margin: 120px auto 40px auto;
  background: #fff;
  box-shadow: 0 10px 50px rgba(0,0,0,0.3);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  max-width: 900px;
  width: 90%;
}

/* Elementor Content Fix */
.custom-modal-dialog .elementor-section-wrap {
  padding: 40px;
}

/* Header Styles */
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-left: 40px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

/* Body Content Area */
.custom-modal-body {
  padding: 40px;
  position: relative;
}

/* Responsive Columns */
.modal-two-columns {
  display: flex;
  gap: 40px;
  margin: -20px;
}

.modal-column {
  flex: 1;
  padding: 20px;
  min-width: 0;
}

/* Elementor Widget Fixes */
.custom-modal .elementor-widget-container {
  max-width: 100% !important;
}

.custom-modal .elementor-column-gap-default > .elementor-row {
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -10px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .custom-modal {
    padding: 10px;
  }
  
  .custom-modal-dialog,
  .search-modal-dialog {
    width: 100%;
    margin: 80px auto 20px auto;
  }

  .modal-two-columns {
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }

  .custom-modal-header,
  .custom-modal-body {
    padding: 25px;
  }

  .custom-modal-dialog .elementor-section-wrap {
    padding: 25px;
  }
  
  .custom-modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
  }
}

#contactModalTitle {
	padding: 10px;
	font-family: Abel;
	font-weight: 400;
}