.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 10px; /* small padding for mobile */
  box-sizing: border-box;
  
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: 25px;
  max-width: 700px;
  width: 100%;
  display: flex;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-content img {
  width: 50%;
  object-fit: cover;
}

.modal-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  font-family: berthold-baskerville-pro, sans-serif;
  font-weight: 400;
}

.modal-text h2 {
  margin-top: 0;
  padding-bottom: 1.5rem;
}

.modal-text p {
  margin: 10px 0;
  font-family: proxima-nova, sans-serif;
}

.modal-text button {

  z-index: 1000;

  display: flex;
  flex-wrap: nowrap;



  border: none;

}

.primary-btn {
  font-weight: 600;
  justify-content: center;
  align-items: center;
  font-family: proxima-nova, sans-serif;
  background: #007BFF;
  color: #fff;
  border: none;
  background-color: var(--primary-red);
  width: 180px;
  height: 40px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}


.button-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.back-btn {
  background: transparent;
  font-family: proxima-nova, sans-serif;
  color: #000;
  border-radius: 5px;
  cursor: pointer;
  padding-bottom: 10px;
}


.primary-btn:hover {
  background: none;
  border: solid 2px;
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

.gift-options {
  margin: 20px 0;
  font-family: proxima-nova, sans-serif;
}

.gift-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  border: 1px solid #d9d9d9;
  padding: 10px;
  border-radius: 5px;
}

.gift-option:hover {
  border: 1px solid #333;
  padding: 10px;
  border-radius: 5px;

}

.gift-option:has(input:checked) {
  border: 2px solid #000;
}

.gift-option input[type="radio"] {
  transform: scale(1.4);
  margin-right: 12px;
  accent-color: #801725;
}

.modal-text li {
    font-family: proxima-nova, sans-serif;
    padding-bottom: 10px;
}



.gift-option input {
  margin-right: 10px;
}


.modal-text h3 {
  font-family: berthold-baskerville-pro, sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column; /* stack image and text */
    max-width: 90%;
  }

  .modal-content img,
  .modal-text {
    width: 100%; /* full width for both */
  }

  .modal-text button {
    align-self: center; /* center button on mobile */
  }
}
