/* Enhanced styles for Bhaktgan registration page */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;600;700&family=Tiro+Devanagari+Marathi:wght@400;700&display=swap');

/* Main container styling */
.contact-container {
  max-width: 800px;
  margin: 30px auto;
  background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 50%, #fdcb6e 100%);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(194, 136, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: containerFadeIn 1.5s ease forwards;
  opacity: 0;
}

@keyframes containerFadeIn {
  to {
    opacity: 1;
  }
}

/* Background decoration */
.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.contact-container > * {
  position: relative;
  z-index: 2;
}

/* Header styling */
.contact-container h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #2d1810;
  margin-bottom: 15px;
  font-family: 'Tiro Devanagari Marathi', serif;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  animation: titleSlideIn 1s ease forwards 0.5s;
  opacity: 0;
  transform: translateY(-30px);
}

@keyframes titleSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-container p {
  text-align: center;
  font-size: 1.2rem;
  color: #4b2e2e;
  margin-bottom: 30px;
  font-family: 'Mukta', sans-serif;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Form styling */
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.form-group {
  position: relative;
  opacity: 0;
  animation: formFieldSlide 0.8s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.8s; }
.form-group:nth-child(5) { animation-delay: 1s; }
.form-group:nth-child(6) { animation-delay: 1.2s; }

@keyframes formFieldSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Label styling */
.vertical-form label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d1810;
  margin-bottom: 8px;
  display: block;
  font-family: 'Mukta', sans-serif;
  position: relative;
}

.vertical-form label::before {
  content: '🌸';
  margin-right: 8px;
  font-size: 0.9em;
  opacity: 0.7;
}

/* Input field styling */
.vertical-form input,
.vertical-form select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(194, 136, 0, 0.3);
  border-radius: 15px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #2d1810;
  font-family: 'Mukta', sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vertical-form input:focus,
.vertical-form select:focus {
  outline: none;
  border-color: #c28800;
  background: rgba(255, 255, 255, 1);
  box-shadow: 
    inset 0 2px 5px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(194, 136, 0, 0.2),
    0 5px 15px rgba(194, 136, 0, 0.3);
  transform: translateY(-2px);
}

.vertical-form input::placeholder {
  color: #8b6914;
  opacity: 0.7;
}

/* Button styling */
.vertical-form button {
  background: linear-gradient(135deg, #c28800 0%, #ffd700 50%, #ff8c00 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Mukta', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(194, 136, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  opacity: 0;
  animation: buttonAppear 1s ease forwards 1.5s;
}

@keyframes buttonAppear {
  to {
    opacity: 1;
  }
}

.vertical-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.vertical-form button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(194, 136, 0, 0.6);
}

.vertical-form button:hover::before {
  left: 100%;
}

.vertical-form button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Success message styling */
.message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  font-weight: 600;
  margin: 20px 0;
  border: 2px solid #b8dacc;
  box-shadow: 0 5px 15px rgba(21, 87, 36, 0.2);
  animation: messageSlide 0.8s ease forwards;
  position: relative;
  overflow: hidden;
}

.message::before {
  content: '✨';
  font-size: 1.5em;
  margin-right: 10px;
}

.message::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease infinite;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Seva selector enhancement */
.seva-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.seva-option {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(194, 136, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Mukta', sans-serif;
  position: relative;
  overflow: hidden;
}

.seva-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(194, 136, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.seva-option:hover {
  border-color: #c28800;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(194, 136, 0, 0.3);
}

.seva-option:hover::before {
  opacity: 1;
}

.seva-option.selected {
  background: linear-gradient(135deg, #c28800, #ffd700);
  color: white;
  border-color: #c28800;
}

/* Floating elements */
.floating-om {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: floatOm 6s infinite ease-in-out;
  z-index: 1000;
  pointer-events: none;
}

@keyframes floatOm {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.floating-lotus {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: floatLotus 8s infinite ease-in-out;
  z-index: 1000;
  pointer-events: none;
}

@keyframes floatLotus {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .contact-container {
    margin: 15px;
    padding: 25px 20px;
    border-radius: 20px;
  }
  
  .contact-container h1 {
    font-size: 2rem;
  }
  
  .contact-container p {
    font-size: 1.1rem;
  }
  
  .vertical-form input,
  .vertical-form select {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .vertical-form button {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
  
  .seva-options {
    grid-template-columns: 1fr;
  }
  
  .floating-om,
  .floating-lotus {
    display: none;
  }
}

@media (max-width: 480px) {
  .contact-container {
    margin: 10px;
    padding: 20px 15px;
  }
  
  .contact-container h1 {
    font-size: 1.8rem;
  }
  
  .vertical-form {
    gap: 20px;
  }
}
