* {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
}

.card {
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 70%;
}

.card .fre {
  width: 70%;
}

.icon {
  width: 30%;
  height: 100vh;
  background-color: #bbb0ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 650px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.full {
  width: 100%;
  text-align: center;
}

.text {
  text-align: left;
  padding: 50px 50px;
  border-top: 1px solid black;
}

.text h5 {
  padding: 6px 0px;
}

.img {
  width: 80%;
  text-align: center;
  display: inline;
  object-position: center;
}

.imgs {
  width: 50%;
  display: inline;
  object-position: center;
}

input {
  background-color: black;
  color: rgba(245, 245, 245, 0.523);
  padding: 5px 10px;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #f5f5f568;
  border-radius: 6px;
  padding: 8px;
}

.input-group span {
  color: #f5f5f568;
  font-size: 0.75rem;
  width: 25px;
}

.flex {
  display: flex;
  justify-items: center;
}

input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

.btn {
  margin-top: 25px;
  width: 100%;
  padding: 15px;
  background: #bbb0ff;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.btn:hover {
  background: #aba0f7;
}

/* --- Modal Styles --- */
.modal-overlay {
  display: none; /* Hidden by default - JS will trigger it */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker backdrop to match your theme */
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a; /* Dark gray for the modal box */
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 420px;
  border: 1px solid #bbb0ff; /* Lavender border to match your theme */
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content i {
  font-size: 3.5rem;
  color: #ef4444; /* Alert red */
  margin-bottom: 20px;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.modal-content p {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-modal {
  padding: 12px 35px;
  background: #bbb0ff; /* Lavender button */
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-modal:hover {
  background: #aba0f7;
}

/* --- Advanced Error State --- */
.input-group.error-state {
  border: 1px solid #ef4444 !important; /* Red border */
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); /* Red glow effect */
  background-color: #1a0000; /* Subtle dark red background */
}

.input-group.error-state span {
  color: #ef4444; /* Change number color to red too */
}

/* ... Keep all your existing CSS above this ... */

/* --- Custom Modal System --- */
.modal-overlay {
  display: none; /* Controlled by JS */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  border: 1px solid #333;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.modal-content h3 {
  margin-bottom: 15px;
}

.modal-content p {
  color: #a0a0a0;
  margin-bottom: 25px;
  line-height: 1.5;
}

.btn-modal {
  padding: 12px 30px;
  background: #bbb0ff; /* Matching your theme color */
  color: black;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* --- Error State for Input Groups --- */
.input-group.error-state {
  border: 1px solid #ef4444 !important;
  background-color: #1a0000;
}