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

body {
  
  font-family: 'Poppins', sans-serif;
  background-color: #2b2f3b;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}


/* Main Container */
.card {
  max-width: 100%;
  padding: 20px;
}

#container {
  display: flex;
  flex-direction: column-reverse;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 20px 40px rgba(10,10,25,0.55);
  padding: 20px;
}

/* Left Section */
.left-section {
  padding: 24px;
}

.left-section h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.left-section p {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 400;
}

.list-items {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.list-items li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 16px;
  gap: 10px;
  line-height: 1.4;
}

.list-items img {
  width: 20px;
  margin-right: 10px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

input[type="email"] {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}
/* Hover */
input[type="email"]:hover {
  border-color: hsl(4, 100%, 67%);
}

/* Focus (when typing) */
input[type="email"]:focus {
  border-color: hsl(4, 100%, 67%);
  outline: none; /* remove default blue outline */
  box-shadow: 0 0 5px hsl(4, 100%, 67%);
}

input.error {
  border: 1px solid red;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn {
  background-color: hsl(234, 29%, 20%);
  color: #fff;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: hsl(4, 68%, 50%);
}
.btn:focus {
  outline: 2px solid hsl(4, 68%, 50%);
  outline-offset: 3px;
}

/* Right Section */
.right-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* Success Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background-color: #242742;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.success-card {
  background-color: #fff;
  padding: 32px;
  border-radius: 16px;
  max-width: 400px;
  text-align: left;
  box-shadow: 0px 20px 40px rgba(0,0,0,0.2);
}

.icon-container {
  margin-bottom: 20px;
}

.icon-container img {
  width: 45px;
  height: 45px;
}

.success-card h2 {
  color: #242742;
  font-size: 40px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.success-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
  gap: 10px;
}

.success-card .btn {
  width: 100%;
  border-radius: 8px;
}

/* Responsive */
@media screen and (min-width: 1200px) {
  #container {
    flex-direction: row;
    max-width: 1100px;
    align-items: center;
  }
   .left-section h1 {
    font-size: 50px;
  }
  .left-section,
  .right-section {
    flex: 1;
  }

  .left-section {
    padding: 50px;
  }

 
    .left-section p,
  .list-items li {
    font-size: 16px;
  }
}
/* Mobile override for success overlay */
@media screen and (max-width: 767px) {
  .overlay {
    background-color: #fff; /* full white background */
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 24px;
  }

  .success-card {
    background: none;
    padding: 187px 0px 0px 0px;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .icon-container {
    margin-bottom: 30px;
  }

  .icon-container img {
    width: 55px;
    height: 55px;
  }

  .success-card h2 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .success-card p {
    font-size: 16px;
    gap: 10px;
    margin-bottom: auto;
  }

  .success-card .btn {
    position: fixed;
    bottom: 20px;
    left: 24px;
    right: 24px;
    width: auto;
    border-radius: 8px;
    font-size: 15px;
    padding: 15px;
  }
}

