/* ========================================================================
   CLEAN CONTACT FORM - Responsive and Modern
   ======================================================================== */

#contact.contact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: stretch; /* Makes both boxes same height */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Info Section (Left) */
.contact-info {
  flex: 0 0 40%;
  max-width: 40%;
  background-image: url('../images/contact-bg.png'), linear-gradient(#0a0a0a, #0a0a0a);
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: contain, auto;
  padding: 60px 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch !important; /* Force to stretch to match sibling height */
  height: auto !important; /* Let flexbox handle the height */
  min-height: 100% !important; /* Ensure it takes full height */
}

.contact-title {
  color: #fff;
  font-family: Lexend, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-phone {
  color: #fff;
  font-family: Lexend, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-description {
  color: rgba(255, 255, 255, 0.8);
  font-family: Lexend, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-cta {
  color: #6366f1;
  font-family: Lexend, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.contact-cta:hover {
  color: #818cf8;
}

/* Contact Form Container (Right) */
.contact-form-container {
  flex: 1;
  max-width: 60%;
  background: linear-gradient(#151515, #151515);
  padding: 60px 50px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch !important; /* Force to stretch to match sibling height */
}

.clean-contact-form {
  width: 100%;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-label {
  color: rgba(255, 255, 255, 0.7);
  font-family: Lexend, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: Lexend, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Textarea - CRITICAL: Proper multi-line styling */
.form-textarea {
  min-height: 150px;
  height: 150px;
  resize: vertical;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  vertical-align: top;
  line-height: 1.6;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
  display: flex;
  width: 100%;
}

.phone-input-wrapper .form-input {
  flex: 1;
}

/* Submit Button */
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  border-radius: 40px;
  background-color: #fff;
  color: #0a0a0a;
  border: 2px solid #fff;
  font-family: Lexend, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.form-submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form Messages */
.form-success,
.form-error {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media screen and (max-width: 991px) {
  #contact.contact {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .contact-form-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact-info {
    flex: none;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 40px 32px;
  }

  .contact-form-container {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 40px 32px;
  }

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

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

@media screen and (max-width: 767px) {
  #contact.contact {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .contact-info {
    padding: 32px 24px;
  }

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

  .contact-phone {
    font-size: 20px;
  }

  .contact-form-container {
    padding: 32px 24px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-textarea {
    min-height: 120px;
    height: 120px;
  }

  .form-submit-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media screen and (max-width: 479px) {
  .contact-info {
    padding: 24px 20px;
  }

  .contact-form-container {
    padding: 24px 20px;
  }

  .form-row {
    gap: 16px;
    margin-bottom: 16px;
  }
}

