/* Contact Section */
.contact-section {

  padding: 4rem 2rem;
  background-color: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.contact-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
  position: relative;
}

.contact-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #212529, #6c757d);
  border-radius: 2px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #212529, #6c757d);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.required {
  color: #dc3545;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fefefe;
  box-sizing: border-box;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #212529;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
}

/* Submit Button */
.btn-submit {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #212529, #495057);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(33, 37, 41, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #495057, #212529);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 37, 41, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Contact Info Sidebar */
.contact-info {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: #212529;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9ecef;
  /* transform: translateX(5px); */
}

.contact-item i {
  font-size: 1.2rem;
  color: #212529;
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.contact-item-content h4 {
  margin: 0 0 0.3rem 0;
  color: #212529;
  font-size: 0.9rem;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
}

.contact-item-content a {
  margin: 0;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}

/* Form Validation Styles */
.contact-form input.error,
.contact-form textarea.error {
  border-color: #dc3545;
  background-color: #ffeaea;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.success-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 1rem 1.2rem;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  animation: slideDown 0.3s ease-out;
}

.success-message i {
  color: #28a745;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}


.success-card {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 2rem auto;
  animation: slideDown 0.5s ease-out;
  border: 1px solid #e9ecef;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1.5rem;
}

.success-card h3 {
  font-size: 2rem;
  color: #212529;
  margin-bottom: 1rem;
  font-weight: 700;
}

.success-card p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #212529, #495057);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(33, 37, 41, 0.2);
}

.btn-back:hover {
  background: linear-gradient(135deg, #495057, #212529);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 37, 41, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Loading state for submit button */
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-submit .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .contact-info {
    position: static;
  }

  .contact-item {
    padding: 0.8rem;
  }
}

@media (max-width: 580px) {
  .contact-section {
    padding: 1.5rem 1rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem;
  }
}