/* Contact Form Page Styles */
.contact-form-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 8rem 0 4rem;
}

/* Contact Header Section */
.contact-header-section {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header-section h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: 700;
}

.contact-info-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.1rem;
  color: #555;
}

.contact-item {
  font-weight: 500;
}

.separator {
  color: #3498db;
  font-weight: bold;
}

/* Contact Form Container */
.contact-form-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.contact-form-main {
  width: 100%;
}

/* Form Row with 3 columns */
.form-row-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 2rem;
}

.form-group.required input,
.form-group.required textarea {
  border: 2px solid #2c3e50;
  position: relative;
}

.form-group.required input::placeholder,
.form-group.required textarea::placeholder {
  color: #2c3e50;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-weight: 500;
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

/* Checkbox Styles */
.checkbox-group {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 1rem;
  transform: scale(1.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #3498db;
}

.checkmark {
  display: none;
}

/* Submit Button */
.submit-group {
  text-align: center;
  margin-top: 3rem;
}

.submit-btn {
  background: linear-gradient(135deg, #2c3e50, #338ee2);
  color: white;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Footer Styles */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #3498db;
}

/* Required Field Indicator */
.form-group.required {
  position: relative;
}

.form-group.required::after {
  content: "*";
  color: #2c3e50;
  font-weight: bold;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .form-row-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-info-inline {
    flex-direction: column;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }

  .contact-header-section h1 {
    font-size: 2.5rem;
  }

  .contact-form-container {
    margin: 0 1rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-form-page {
    padding: 6rem 0 3rem;
  }

  .contact-header-section h1 {
    font-size: 2rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* Form Validation Styles */
.form-group.required input:invalid,
.form-group.required textarea:invalid {
  border-color: #2c3e50;
}

.form-group.required input:valid,
.form-group.required textarea:valid {
  border-color: #27ae60;
}

/* Animation */
.contact-form-container {
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Success message animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form validation states */
.form-group.required input:invalid,
.form-group.required textarea:invalid {
  border-color: #2c3e50;
  background: #ffffff;
  animation: shake 0.5s ease-in-out;
}

.form-group.required input:valid,
.form-group.required textarea:valid {
  border-color: #27ae60;
  background: #f2fdf2;
}

/* Shake animation for invalid fields */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Focus states for better UX */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}
