/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--primary);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  position: relative;
  animation: slideDown 0.3s;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--accent);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.modal-img {
  border-radius: 8px;
  overflow: hidden;
}

.modal-img img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--white);
}

.modal-text .price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.modal-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.modal-features {
  margin-top: 30px;
}

.modal-features h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--white);
}

.modal-features ul {
  list-style: none;
}

.modal-features ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-light);
}

.modal-features ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free', serif;
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Success Modal Styles */
.success-modal {
  max-width: 500px;
  text-align: center;
  padding: 40px;
}

.success-modal .modal-body {
  display: block;
}

.success-icon {
  font-size: 60px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.success-modal h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--accent);
}

.success-modal p {
  margin-bottom: 10px;
  color: var(--text-light);
}

.close-success-modal {
  margin-top: 25px;
}

@media (max-width: 992px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-img {
    height: 300px;
  }

  .modal-img img {
    height: 100%;
    object-fit: cover;
  }
}

/* Success Modal - Separate from service modal */
.success-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 3000; /* Higher than service modal */
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal-content {
  background-color: var(--primary);
  padding: 40px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--accent);
}

.success-icon {
  font-size: 60px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.success-modal-body h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--accent);
}

.success-modal-body p {
  margin-bottom: 10px;
  color: var(--text-light);
}


/* Add to your CSS file */
.feature-title {
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0,0,0,0.2); /* subtle dark background for better contrast */
}

/* For dark theme modals */
.modal-content .feature-title {
  color: rgba(255, 255, 255, 0.87) !important;
  background: rgba(0,0,0,0.3);
}

/* For light theme modals */
.modal-content.light .feature-title {
  color: #333333 !important;
  background: rgba(255,255,255,0.7);
}
