/* =========================================
   BODY LOCK
========================================= */
body.popup-open {
  overflow: hidden;
}


/* =========================================
   POPUP OVERLAY
========================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.popup-overlay.active {
  display: flex;
}


/* =========================================
   POPUP BOX
========================================= */
.popup-box {
  width: 100%;
  max-width: 560px;
  background: #f3f4f6;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  overflow: hidden;
}


/* =========================================
   HEADER
========================================= */
.popup-header {
  background:blue;
  padding: 5px 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-close {
  font-size: 14px;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================
   CONTENT AREA
========================================= */
.popup-content {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}


/* =========================================
   REMOVE CF7 DEFAULT SPACING
========================================= */
.wpcf7,
.wpcf7-form {
  margin: 0;
}

.wpcf7 form p {
  margin: 0 0 14px;
  text-align: left;
}


/* =========================================
   LABELS
========================================= */
.wpcf7 label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: -10px;
  display: block;
  color: #111827;
}

.required {
  color: #ef4444;
  margin-left: 3px;
}


/* =========================================
   INPUTS
========================================= */
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
  transition: 0.2s ease;
}

.wpcf7 textarea {
  height: auto;
  min-height: 90px;
  padding-top: 8px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}


/* =========================================
   SUBMIT BUTTON
========================================= */
.cf7-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wpcf7-submit {
  background: #4f46e5;
  color: #fff;
  border: none;
  height: 36px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.wpcf7-submit:hover {
  background: #4338ca;
}


/* =========================================
   RESPONSE MESSAGES
========================================= */
.wpcf7-response-output {
  margin: 10px 0 0 0 !important;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.wpcf7-mail-sent-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fff5f5;
  color: #7f1d1d;
}

.cf7-col {
    margin-bottom: -20px !important;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 480px) {
  .popup-content {
    padding: 18px;
  }

  .cf7-submit-wrap {
    justify-content: center;
  }

  .wpcf7-submit {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .popup-overlay {
    align-items: flex-start;
  }
}