/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: url("image/background (2).jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
  margin: auto;
}
.form-box {
  background: rgba(255, 255, 255, 0.65); /* more transparent */
  padding: 25px 20px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px); /* stronger blur inside */
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
  animation: fadeIn 1s ease;
}


.form-box:hover {
  transform: scale(1.02);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 26px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #333;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  margin-top: 6px;
  font-size: 15px;
  transition: 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #121314;
  outline: none;
  box-shadow: 0 0 5px rgba(102, 187, 106, 0.5); /* light green glow */
}

button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background-color: #66bb6a; /* Light green */
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #388e3c; /* Dark green */
  transform: scale(1.03);
  border: 2px solid #1b5e20;
}

.add-kid {
  background-color: #81c784;
  margin-top: 15px;
}

.add-kid:hover {
  background-color: #388e3c;
  transform: scale(1.03);
}

.hidden {
  display: none;
}

.kid-entry {
  background: #f7f7f7;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border-left: 4px solid #111212;
  animation: fadeIn 0.4s ease-in;
}

.option-box {
  display: flex;
  border: 2px solid #66bb6a;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  width: fit-content;
  background-color: #f1fff2;
}

.option {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.option input {
  display: none;
}

.option span {
  display: block;
  padding: 8px 15px;
  border-radius: 6px;
  transition: 0.3s;
}

.option input:checked + span {
  background-color: #a5d6a7;
  color: #1b5e20;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.option:hover span,
.option:focus-within span {
  background-color: #c8e6c9;
  color: #1b5e20;
  cursor: pointer;
}

/* Animations */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive for Mobile */
@media (max-width: 600px) {
  .form-box {
    padding: 18px;
    border-radius: 20px;
  }

  h2 {
    font-size: 22px;
  }

  input, textarea {
    font-size: 14px;
    padding: 10px;
  }

  button {
    font-size: 15px;
    padding: 10px;
  }

  .option-box {
    flex-direction: column;
    width: 100%;
  }

  .option:last-child {
    border-bottom: none;
  }
}

/* Responsive for Laptop (Increase Width Slightly) */
@media (min-width: 768px) {
  .container {
    max-width: 420px;
  }
}
