

/* Trigger Button */
.open-btn {
  padding: 14px 28px;
  border-radius: 10px;
  background: #0056D2;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  
  
}





.modal--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Modal Box */
.modal-box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  z-index: 10;
}

/* Close */
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 16px;
  
}

.modal-header .small-title {
  margin: 0 0 6px 0; /* REMOVE default top margin */
}


.modal-header h2 {
  margin: 0;          /* REMOVE default h2 margin */
  line-height: 1.25; /* tighter spacing */
}





.small-title {
  color: #0056D2;
  font-weight: 700;
  font-size: 13px;
}

.modal-header h2 {
  font-size: 22px;
  color: #111;
  
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.field input,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Secure Line */
.secure-line {
  text-align: center;
  font-size: 12px;
  color: #0056D2;
}

/* Submit Button */
#submitBtn {
  margin-top: 10px;
  padding: 14px;
  background: #0056D2;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
}



/* Phone flag fix */
/* =====================================
   PERFECT ALIGNMENT FOR PHONE FIELD
===================================== */

/* Make intl-tel-input behave like normal input */
.iti {
  width: 100% !important;
}

/* Match padding with other inputs */
.iti input {
  padding-left: 88px !important; /* space for flag + code */
  padding-right: 12px !important;
  height: auto;
  box-sizing: border-box;
}

/* Style flag box to match input height */
.iti__flag-container {
  padding-left: 12px;
}

/* Make phone input border radius & border identical */
.iti input {
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}





/* 🔥 MOBILE PERFECT FIX */
@media (max-width: 460px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .modal-box {
    margin: 0 8px;
    padding: 22px 16px;
  }

  input, select {
    font-size: 13px;
  }
}

/* Ultra Small (250px) */
@media (max-width: 250px) {
  .modal-box {
    padding: 12px;
  }

  input, select, button {
    font-size: 12px;
  }
}




/* ✅ GREEN CORNER RIBBON BADGE */
.corner-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top-left-radius: 22px;
  z-index: 20;
}

.corner-badge span {
  position: absolute;
  top: 45%;
  left: 40%;

  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;

  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;

  letter-spacing: 0.3px;
  text-align: center;
}

.corner-badge span i {
  font-size: 11px;
}

/* ✅ MOBILE FIX */
@media (max-width: 480px) {
  .corner-badge {
    width: 90px;
    height: 90px;
  }

  .corner-badge span {
    top: 35px;
    left: 35px;
    font-size: 10px;
    padding: 3px 10px;
  }
}


