/* =========================================
   1. POPUP OVERLAY
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  background: rgba(0, 0, 0, 0.6); /* Added background dimming */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   2. POPUP CONTAINER
   ========================================= */
.modal-container {
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: none;
}

.modal-overlay.active .modal-container {
  opacity: 1;
  transform: scale(1);
  transition: all 0.32s cubic-bezier(0.23, 1, 0.32, 1);
}

/* =========================================
   3. CLOSE BUTTON
   ========================================= */
.close-btn-global {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  z-index: 100;
  transition: transform 0.25s;
  color: #ffffff;
  border: none;
  background: transparent;
  padding: 6px 8px;
}
.close-btn-global:hover {
  transform: rotate(90deg);
}

/* =========================================
   4. LAYOUT & COLUMNS
   ========================================= */
.modal-body {
  display: flex;
  flex-direction: row;
  min-height: 300px;
  overflow-y: auto;
}

/* --- LEFT COLUMN --- */
.col-left {
  width: 18%;
  background-color: #f9f9f9;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid #eee;
}

/* --- MIDDLE COLUMN --- */
.col-mid {
  width: 50%;
  padding: 22px 18px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- RIGHT COLUMN --- */
.col-right {
  width: 32%;
  background-color: #056597;
  padding: 28px 22px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================
   5. CONTENT STYLING
   ========================================= */
h2,
h3,
p,
span,
li,
button,
input,
div {
  font-family: "Poppins", sans-serif;
}

/* Left Column */
.col-left h3 {
  color: #056597;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0;
}
.promise-item i {
  font-size: 20px;
  color: #056597;
  margin-bottom: 8px;
  border: 2px solid #056597;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.promise-item p {
  color: #000000;
  font-size: 12px;
  font-weight: 600;
}

/* Middle Column */
.popup-logo-area {
  width: 100%;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pop-logo-text{
    font-size:24px;
    font-weight:700;
    color:#056597;
    font-family:"Segoe UI", Arial, sans-serif;
    white-space:nowrap; /* prevents breaking into 2 lines */
    line-height:1;
}
.popup-logo-img {
  max-width: 120px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
}
.logo-subtext {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-top: 4px;
}
.form-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
  color: #333;
}
.highlight-red {
  color: #d32f2f;
}
.form-group {
  width: 100%;
  margin-bottom: 12px;
}

.popup-form {
  width: 100%;
  max-width: 450px;
}

/* Inputs */
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  outline: none;
  transition: border 0.25s;
  background: #fff;
  box-sizing: border-box;
  max-width: 450px;
}
.form-control:focus {
  border-color: #1f3b57;
}
/* Error border style */
.form-control.input-error {
  border-color: #d32f2f;
  background-color: #fff8f8;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(to bottom, #d8504e, #b93a3e);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.18);
  margin-top: 10px;
  max-width: 450px;
  transition: opacity 0.3s;
}
.submit-btn:hover {
  opacity: 0.95;
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Right Column */
.col-right h2 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: left;
}
.info-list {
  list-style: none;
  padding-left: 0;
}
.info-list li {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 300;
}
.info-list li i {
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
}

/* Footer */
.modal-footer-bar {
  background-color: #193047;
  color: white;
  text-align: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  z-index: 10;
}
.modal-footer-bar i {
  margin-right: 10px;
  transform: rotate(90deg);
}

/* =========================================
   6. DESKTOP ANIMATIONS
   ========================================= */
@media (min-width: 769px) {
  .close-btn-global {
    color: white;
  }
  .promise-item {
    transition: none;
    opacity: 0;
    transform: translateX(-20px);
  }
  .col-right h2,
  .info-list li {
    transition: none;
    opacity: 0;
    transform: translateX(20px);
  }
  .modal-overlay.active .promise-item,
  .modal-overlay.active .col-right h2,
  .modal-overlay.active .info-list li {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .modal-overlay.active .promise-item:nth-of-type(1) {
    transition-delay: 0.18s;
  }
  .modal-overlay.active .promise-item:nth-of-type(2) {
    transition-delay: 0.26s;
  }
  .modal-overlay.active .promise-item:nth-of-type(3) {
    transition-delay: 0.34s;
  }
  .modal-overlay.active .col-right h2 {
    transition-delay: 0.2s;
  }
  .modal-overlay.active .info-list li:nth-child(1) {
    transition-delay: 0.28s;
  }
  .modal-overlay.active .info-list li:nth-child(2) {
    transition-delay: 0.36s;
  }
  .modal-overlay.active .info-list li:nth-child(3) {
    transition-delay: 0.44s;
  }
}

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
  .modal-container {
    max-width: 420px;
    max-height: 95vh;
  }
  .modal-body {
    flex-direction: column;
    min-height: auto;
  }
  .col-left,
  .col-mid,
  .col-right {
    width: 100%;
    border: none;
  }
  .col-mid {
    order: 1;
    padding: 30px 20px 20px 20px;
  }
  .col-left {
    order: 2;
    flex-direction: row;
    justify-content: space-around;
    padding: 16px 8px;
    background: #f0f0f0;
  }
  .col-right {
    order: 3;
    padding: 20px 18px;
    text-align: center;
  }
  .close-btn-global {
    color: #333;
    top: 10px;
    right: 12px;
  }
  .col-left h3 {
    display: none;
  }
  .promise-item {
    margin: 0;
  }
  .promise-item i {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .promise-item p {
    font-size: 11px;
    margin-top: 5px;
  }
  .col-right h2 {
    text-align: center;
    margin-top: 0;
  }
  .info-list li {
    justify-content: center;
  }
  .form-control,
  .submit-btn {
    max-width: 100%;
  }
}

/* =========================================
   8. STATUS MESSAGES STYLES (NEW)
   ========================================= */
.form-status-message {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status-message.active {
  opacity: 1;
}

/* Processing (Blue) */
.msg-processing {
  color: #1f3b57;
}

/* Error (Red) */
.msg-error {
  color: #d32f2f;
}

/* Success (Green) */
.msg-success {
  color: #2e7d32;
}

/* Logo toggle classes */
.popup-logo-text {
  display: none;
}
.modal-container.use-text-logo .popup-logo-img {
  display: none;
}
.modal-container.use-text-logo .popup-logo-text {
  display: inline-flex;
}
