/* ============================
   Contact Modal Overlay
============================ */
.contact-modal { display: none; /* hidden by default */ 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(3px); 
}

/* ============================
   Modal Content Box
============================ */
.contact-content {
  position: relative;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  border-radius: 1rem;
  background: url('../photos/contact-back.jpg') no-repeat center center;
  background-size: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-out;
  color: #fff; /* text color on background */
}

/* Overlay inside modal for readability */
.contact-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  z-index: 0;
}

.contact-content > * {
  position: relative;
  z-index: 1;
}

/* ============================
   Heading
============================ */
.contact-content h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

/* ============================
   Close Button
============================ */
.contact-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-content .close:hover {
  color: #e11d48;
}

/* ============================
   Form Styles
============================ */
.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 1rem auto 0 auto;
}

.contact-content form input,
.contact-content form textarea {
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.contact-content form input:focus,
.contact-content form textarea:focus {
  border-color: #d1d5db;
  box-shadow: 0 0 0 2px rgba(209,213,219,0.5);
}

/* Textarea specific */
.contact-content form textarea {
  resize: vertical;
}

/* ============================
   Send Message Button
============================ */
.contact-content form button {
  align-self: center;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-content form button:hover {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ============================
   Contact Info
============================ */
.contact-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 50px;
}

.contact-info p {
  margin-bottom: 0.3em;
}

/* ============================
   Animation
============================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================
   Placeholder Styles
============================ */
.contact-content form input::placeholder,
.contact-content form textarea::placeholder {
  color: #ffffff; /* bright white */
  opacity: 1;     /* ensures full brightness */
}

