:root {
  --dark-blue: hsl(234, 29%, 20%);
  --charcoal-grey: hsl(235, 18%, 26%);
  --grey: hsl(231, 7%, 60%);
  --white: hsl(0, 0%, 100%);
  --tomato: hsl(4, 100%, 67%);
  --border-radius: 1rem;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--dark-blue);
  color: var(--charcoal-grey);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Card Layout */
.card {
  background-color: var(--white);
  display: flex;
  max-width: 800px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.card__content {
  padding: 2rem;
  flex: 1;
}

.card__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1 {
  font-size: 2rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Features List */
.features {
  list-style: none;
  margin-bottom: 2rem;
}

.features li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

label {
  font-weight: bold;
  font-size: 0.875rem;
  color: var(--dark-blue);
}

input {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--grey);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--dark-blue);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--tomato);
  height: 1rem;
}

/* Button */
button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--dark-blue);
  color: var(--white);
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background-color: var(--tomato);
}

/* Success Message */
.success-message {
  background: var(--white);
  max-width: 400px;
  margin: auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.success-message.hidden {
  display: none;
}

.success-message img {
  width: 40px;
}

.success-message h2 {
  font-size: 2rem;
  color: var(--dark-blue);
}

.success-message p {
  font-size: 1rem;
  color: var(--charcoal-grey);
}

.success-message button {
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
}

.success-message button:hover {
  background-color: var(--tomato);
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    flex-direction: column-reverse;
  }

  .card__image img {
    width: 100%;
  }

  .card__content {
    padding: 1.5rem;
  }
}
