/* Modal Styles */
.modal-overlay {
  position: fixed; 
  inset: 0; 
  z-index: 200;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; 
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { 
  display: flex; 
}

.modal {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in { 
  from { 
    opacity:0; 
    transform:scale(0.95) translateY(10px); 
  } 
  to { 
    opacity:1; 
    transform:none; 
  } 
}

.modal-close {
  position: absolute; 
  top: 16px; 
  right: 16px;
  width: 32px; 
  height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: background 0.15s;
}

.modal-close:hover { 
  background: var(--border); 
}

.modal h3 {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal p { 
  font-size: 0.875rem; 
  color: var(--muted); 
  line-height: 1.65; 
  margin-bottom: 24px; 
}

.modal-field { 
  margin-bottom: 16px; 
}

.modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.modal-field input {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
  color: var(--charcoal);
}

.modal-field input:focus { 
  border-color: var(--orange); 
}

.modal-submit {
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.15s;
  margin-top: 8px;
}

.modal-submit:hover { 
  background: var(--orange-dim); 
}

.modal-success { 
  text-align: center; 
  padding: 20px 0; 
}

.modal-success .checkmark { 
  font-size: 2.5rem; 
  margin-bottom: 16px; 
}

.modal-success h3 { 
  margin-bottom: 8px; 
}
