/* Updated Modal Styling - Border Removed */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  background: linear-gradient(to bottom, rgba(240, 245, 255, 0.95), rgba(230, 240, 255, 0.95));
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 30, 0.3);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
  border: none; /* Remove the border */
  display: flex;
  flex-direction: column;
}

/* Rest of the CSS remains the same */

/* When modal content is too tall, make body scrollable */
.modal-body {
  padding: 20px;
  overflow-y: auto; /* Add scroll when needed */
  flex: 1;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #000080, #000055);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  font-size: 28px;
  color: #87CEEB;
}

.modal-title {
  font: bold 22px/1 'Poppins', sans-serif;
  color: white;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  opacity: 0.8;
}

.modal-close:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Price Styling - More compact */
.modal-price {
  text-align: center;
  margin-bottom: 20px;
}

.modal-price h2 {
  font: bold 46px/1 'Poppins', sans-serif;
  color: #000080;
  margin: 0 0 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-price p {
  font: 600 24px/1.2 'Poppins', sans-serif;
  color: #333;
  margin: 0 0 10px;
}

/* Copy Button - Enhanced */
.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 15px auto 20px;
  background: linear-gradient(to right, #000080, #000055);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  font: 600 18px/1.2 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  gap: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 128, 0.25);
}

.copy-button i {
  font-size: 20px;
  color: #87CEEB;
}

.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 128, 0.35);
  background: linear-gradient(to right, #000099, #000066);
}

.copy-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 128, 0.25);
}

/* Instructions Section - Compact */
.modal-instructions {
  padding: 15px;
  margin: 10px 0;
  background-color: rgba(78, 78, 110, 0.15);
  border-radius: 12px;
  border-left: 4px solid #000080;
}

.modal-instructions h3 {
  font: bold 18px/1.2 'Poppins', sans-serif;
  color: #000080;
  margin: 0 0 8px;
}

.modal-instructions p {
  margin: 0;
  font: normal 15px/1.5 'Poppins', sans-serif;
  color: #333;
}

/* Modal Footer - Fixed position */
.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  gap: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Contact Buttons - With Fixed Icons */
.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 10px;
  font: 600 16px/1.2 'Poppins', sans-serif;
  color: white;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fixed Telegram Icon */
.contact-button.telegram:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.78,18.65L10.06,14.42L17.74,7.5C18.08,7.19 17.67,7.04 17.22,7.31L7.74,13.3L3.64,12C2.76,11.75 2.75,11.14 3.84,10.7L19.81,4.54C20.54,4.21 21.24,4.72 20.96,5.84L18.24,18.65C18.05,19.56 17.5,19.78 16.74,19.36L12.6,16.3L10.61,18.23C10.38,18.46 10.19,18.65 9.78,18.65Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Fixed WhatsApp Icon */
.contact-button.whatsapp:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91C2.13 13.66 2.59 15.36 3.45 16.86L2.05 22L7.3 20.62C8.75 21.41 10.38 21.83 12.04 21.83C17.5 21.83 21.95 17.38 21.95 11.92C21.95 9.27 20.92 6.78 19.05 4.91C17.18 3.03 14.69 2 12.04 2M12.05 3.67C14.25 3.67 16.31 4.53 17.87 6.09C19.42 7.65 20.28 9.72 20.28 11.92C20.28 16.46 16.58 20.15 12.04 20.15C10.56 20.15 9.11 19.76 7.85 19L7.55 18.83L4.43 19.65L5.26 16.61L5.06 16.29C4.24 15 3.8 13.47 3.8 11.91C3.81 7.37 7.5 3.67 12.05 3.67M8.53 7.33C8.37 7.33 8.1 7.39 7.87 7.64C7.65 7.89 7 8.5 7 9.71C7 10.93 7.89 12.1 8 12.27C8.14 12.44 9.76 14.94 12.25 16C12.84 16.27 13.3 16.42 13.66 16.53C14.25 16.72 14.79 16.69 15.22 16.63C15.7 16.56 16.68 16.03 16.89 15.45C17.1 14.87 17.1 14.38 17.04 14.27C16.97 14.17 16.81 14.11 16.56 14C16.31 13.86 15.09 13.26 14.87 13.18C14.64 13.1 14.5 13.06 14.31 13.3C14.15 13.55 13.67 14.11 13.53 14.27C13.38 14.44 13.24 14.46 13 14.34C12.74 14.21 11.94 13.95 11 13.11C10.26 12.45 9.77 11.64 9.62 11.39C9.5 11.15 9.61 11 9.73 10.89C9.84 10.78 10 10.6 10.1 10.45C10.23 10.31 10.27 10.2 10.35 10.04C10.43 9.87 10.39 9.73 10.33 9.61C10.27 9.5 9.77 8.26 9.56 7.77C9.36 7.29 9.16 7.35 9 7.34C8.86 7.34 8.7 7.33 8.53 7.33Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Telegram Button */
.contact-button.telegram {
  background: linear-gradient(to bottom right, #0088cc, #0077b3);
}

.contact-button.telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 136, 204, 0.4);
  background: linear-gradient(to bottom right, #0099dd, #0088cc);
}

/* WhatsApp Button */
.contact-button.whatsapp {
  background: linear-gradient(to bottom right, #25D366, #20ba57);
}

.contact-button.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
  background: linear-gradient(to bottom right, #28E76A, #25D366);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .modal { 
    width: 95%;
    max-height: 85vh; /* Even more height constraint on mobile */
  }
  
  .modal-price h2 { font-size: 40px; }
  .modal-price p { font-size: 20px; }
  
  .copy-button {
    padding: 12px 0;
    margin: 10px auto 15px;
  }
  
  .modal-instructions {
    padding: 12px;
    margin: 8px 0;
  }
  
  .contact-button { 
    padding: 12px 0; 
  }
}

@media (max-width: 400px) {
  .modal-price h2 { font-size: 34px; }
  .modal-price p { font-size: 18px; }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .contact-button { 
    width: 100%; 
    margin-bottom: 8px;
  }
}