/* Contact Section */
.contact-astronaut {
  background-image: url('images/noir.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  padding: 60px 20px;
  min-height: 80vh;
  position: relative;
}

.contact-header {
  text-align: center;
  margin-bottom: 80px;
  padding-top: 20px;
}

.contact-header .section-title {
  font-size: clamp(2.5em, 5vw, 4em);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.contact-header .section-subtitle {
  font-size: clamp(1.1em, 2.2vw, 1.4em);
  color: #b7acbd;
  max-width: 700px;
  margin: 0 auto;
}

.contact-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-left {
  position: absolute;
  left: -8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.contact-left img {
  width: 25vw;
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.contact-right {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-right h2 {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-right .section-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #b7acbd;
  margin-bottom: 50px;
}

.contact-form {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-fields input {
  padding: 18px 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background-color: rgba(52, 28, 68, 0.6);
  backdrop-filter: blur(10px);
  font-size: 1em;
  color: white;
  font-weight: 600;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-fields input:focus {
  outline: none;
  border-color: #73607e;
  background-color: rgba(52, 28, 68, 0.8);
}

.form-fields input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.message-field textarea {
  width: 100%;
  height: 222px;
  padding: 18px 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background-color: rgba(52, 28, 68, 0.6);
  backdrop-filter: blur(10px);
  font-size: 1em;
  color: white;
  font-weight: 600;
  resize: none;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.message-field textarea:focus {
  outline: none;
  border-color: #73607e;
  background-color: rgba(52, 28, 68, 0.8);
}

.message-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Button states */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #341C44 0%, #533d60 40%, #73607e 100%);
  color: white;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.success-message .checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  border: 3px solid #4CAF50;
  margin: 0 auto 20px;
  position: relative;
  animation: checkmark-pop 0.4s ease-out;
}

.success-message .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #4CAF50;
  font-weight: bold;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-message h3 {
  font-size: 1.5em;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.success-message p {
  font-size: 1em;
  margin: 0;
  opacity: 0.9;
}

/* Responsive Contact Section */
@media screen and (max-width: 1130px) {
  .contact-left {
    left: -5%;
  }
  
  .contact-left img {
    width: 20vw;
    max-width: 280px;
  }
  
  .contact-form {
    max-width: 750px;
    gap: 30px;
  }
}

@media screen and (max-width: 1024px) {
  .contact-left {
    left: -5%;
    position: static;
    transform: none;
    margin-bottom: 30px;
  }
  
  .contact-left img {
    width: 50vw;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .contact-right h2 {
    margin-bottom: 10px;
  }
  
  .contact-right .section-subtitle {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 480px) {
  .contact-astronaut {
    padding: 30px 15px;
  }
  
  .form-fields input,
  .message-field textarea {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  
  .message-field textarea {
    height: 180px;
  }
  
  .row.two {
    grid-template-columns: 1fr;
  }
}
