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

p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: hsl(234, 29%, 20%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

/* Card Layout */
.card {
  background-color: white;
  display: flex;
  flex-direction: row;
  max-width: 850px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.form-content {
  flex: 1;
  padding: 45px;
}

.form-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: hsl(234, 29%, 20%);
}

.form-content .subtext {
  color: hsl(235, 18%, 26%);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-content ul {
  list-style: none;
  margin-bottom: 25px;
}

.form-content ul li {
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: hsl(234, 29%, 20%);
  font-size: 0.95rem;
}

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

form label {
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

form input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid hsl(231, 7%, 60%);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

form input.error {
  border-color: red;
  background-color: #ffe6e6;
}

.error-text {
  color: red;
  font-size: 0.8rem;
  display: none;
  margin-bottom: 10px;
}

input.error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

form button {
  background-color: hsl(234, 29%, 20%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background: linear-gradient(to right, hsl(4, 100%, 67%), hsl(340, 100%, 66%));
}

/* Image Section */
.image-content {
  flex: 1;
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Success Message */
.success-message {
  background-color: white;
  padding: 40px;
  border-radius: 25px;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.success-message h1 {
  color: hsl(234, 29%, 20%);
  font-size: 2.2rem;
  margin-top: 25px;
  margin-bottom: 20px;
}

.success-message p {
  color: hsl(235, 18%, 26%);
  margin-bottom: 20px;
  font-size: 1rem;
}

.success-message button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: hsl(234, 29%, 20%);
  color: white;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.success-message button:hover {
  background: linear-gradient(to right, hsl(4, 100%, 67%), hsl(340, 100%, 66%));
}
