@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  gap: 80px;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

.left-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.title {
  font-size: 5rem;
  font-weight: 700;
  color: #1a1a1a;
  animation: fadeInLeft 1.2s ease-out;
}

.for-sale {
  font-size: 2.3rem;
  font-weight: 600;
  animation: fadeInLeft 1s ease-out;
}

.form-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.form-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  animation: fadeInRight 1.3s ease-out;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.9rem;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.2s ease border, 0.2s ease box-shadow;
}

.form-box input:focus,
.form-box textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}

.form-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-box button:hover {
  background: linear-gradient(to right, #0056b3, #00a3cc);
}

.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: #28a745;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ✅ Responsive pentru telefoane (iPhone inclusiv) */
@media (max-width: 768px) {
  body {
    padding: 10px;
    height: auto;
  }

  .layout {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
    text-align: center;
  }

  .title {
    font-size: 2.5rem;
    animation: none;
  }

  .for-sale {
    font-size: 1.6rem;
    animation: none;
  }

  .form-container {
    justify-content: center;
    width: 100%;
  }

  .form-box {
    max-width: 100%;
    padding: 25px;
    animation: none;
  }

  .form-box h2 {
    font-size: 1.5rem;
  }

  .form-box input,
  .form-box textarea,
  .form-box button {
    font-size: 1rem;
  }
}
  