@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ebee 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Back Button */
.back-button {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.back-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  color: #000;
}

.back-button i {
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* Main Container */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-wrapper {
  width: 100%;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 40% 60%;
}

/* Left Section */
.contact-left {
  background: #000;
  color: #fff;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.contact-left::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.contact-left::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
}

.contact-title {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.contact-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-title p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info {
  position: relative;
  z-index: 2;
  margin: 50px 0;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background: #fff;
}

.info-icon i {
  font-size: 20px;
  color: #fff;
  transition: color 0.3s ease;
}

.info-item:hover .info-icon i {
  color: #000;
}

.info-details span {
  display: block;
}

.info-details span:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.info-details span:last-child {
  font-size: 16px;
  font-weight: 500;
}

.social-links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 15px;
  margin-top: 50px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #fff;
  transform: translateY(-5px);
}

.social-link i {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-link:hover i {
  color: #000;
}

/* Right Section - Form */
.contact-right {
  padding: 60px 50px;
  background: #fff;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 2px solid #e9ebee;
  background: transparent;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #000;
  outline: none;
  transition: all 0.3s ease;
}

.form-textarea {
  resize: none;
  height: 120px;
  padding-top: 20px;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: #000;
}

.form-label {
  position: absolute;
  left: 0;
  top: 15px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:valid ~ .form-label {
  top: -10px;
  font-size: 12px;
  color: #000;
  font-weight: 600;
}

.submit-btn {
  align-self: flex-start;
  padding: 16px 50px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #4d4d4d;
  transition: left 0.5s ease;
  z-index: 0;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Success Message */
.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid #c3e6cb;
}

.success-message.show {
  display: block;
  animation: slideIn 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-left {
    padding: 50px 30px;
  }

  .contact-right {
    padding: 50px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .back-button {
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 576px) {
  .contact-container {
    padding: 80px 15px 40px;
  }

  .contact-title h2 {
    font-size: 28px;
  }

  .form-title {
    font-size: 24px;
  }

  .contact-left,
  .contact-right {
    padding: 40px 25px;
  }

  .back-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}
