/* Styles for contact forms and edit forms */

/* Common form styles */
.form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--obce-primary-color);
}

.form-title svg {
  color: var(--obce-primary-color);
}

.form-description {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background-color: rgba(74, 123, 255, 0.05);
  border-left: 3px solid var(--obce-primary-color);
  border-radius: 4px;
}

.form-description p {
  margin-bottom: 0.5rem;
}

.form-description p:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group.animated {
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--obce-primary-color);
  box-shadow: 0 0 0 3px rgba(74, 123, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #f44336;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.tip {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Animation for error fields */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-5px);
  }
  40%, 80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease;
}

/* Message container styles */
.message-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
}

.message-icon {
  margin-bottom: 1.5rem;
}

.success-message .message-icon {
  color: #4caf50;
}

.error-message .message-icon {
  color: #f44336;
}

.message-container h2 {
  margin-bottom: 1rem;
}

.message-actions {
  margin-top: 2rem;
}

/* Edit Village Form */
.edit-form-section {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.edit-form {
  max-width: 100%;
}

.edit-suggestions h3,
.new-village-form h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--obce-primary-color);
}

/* Contact page styles */
.contact-page {
  margin-bottom: 3rem;
}

.contact-hero {
  background: var(--obce-secondary-gradient);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.5%),
              radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.5%);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  opacity: 0.3;
  animation: heroBackgroundMove 60s linear infinite;
  pointer-events: none;
}

.contact-hero .hero-content {
  max-width: 60%;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-hero .hero-image {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.contact-hero .hero-image svg {
  color: rgba(255, 255, 255, 0.5);
  animation: gentle-float 5s ease-in-out infinite;
}

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

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.info-card.animated {
  opacity: 1;
  transform: translateX(0);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--obce-primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  color: var(--obce-primary-color);
}

.info-card p {
  color: var(--text-light);
}

.info-card a {
  color: var(--obce-primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.info-card a:hover {
  color: var(--obce-secondary-color);
  text-decoration: underline;
}

.contact-form-wrapper {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-form h2 {
  margin-bottom: 1.5rem;
  color: var(--obce-primary-color);
  text-align: center;
}

.contact-form .btn svg {
  margin-right: 0.5rem;
}

.contact-other-options {
  margin-top: 3rem;
}

.contact-other-options h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.contact-other-options h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--obce-primary-gradient);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.options-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.option-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.option-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-icon {
  width: 70px;
  height: 70px;
  background: var(--obce-primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  transition: transform 0.3s ease;
}

.option-card:hover .option-icon {
  transform: scale(1.1);
}

.option-card h3 {
  margin-bottom: 0.5rem;
  color: var(--obce-primary-color);
}

.option-card p {
  color: var(--text-light);
}

/* Header nav styles */
.header-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Responsive styles */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .contact-hero .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .info-card {
    transform: translateX(0);
  }
  
  .options-container {
    flex-direction: column;
    align-items: center;
  }
  
  .option-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .form-title {
    font-size: 1.5rem;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
  }
  
  .edit-form-section,
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Interactive form elements */
.form-group input:focus + label,
.form-group textarea:focus + label {
  color: var(--obce-primary-color);
}

.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
  border-color: #4caf50;
}

.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
  border-color: #f44336;
}

/* Form button ripple effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Footer link ripple effect */
.footer-link-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
