@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* common classes */
.mb-0 {
  margin-bottom: 0;
}

header {
  display: block;
}

.max-width {
  max-width: 1140px;
  width: 100%;
  margin: auto;
  padding: 1rem;
}

.navbar .logo {
  max-width: 75%;
  height: 110px;
  margin: 10px;
  cursor: pointer;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 20px;
  position: relative;
  z-index: 1;
}

.wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 55vh;
  background-image: url("/images/Group-142-1-1-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: multiply;
  background-color: rgba(0, 0, 0, 0.021);
  z-index: -1;
}

.container {
  max-width: 900px;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px 30px;
  border-radius: 14px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(9px);
}

span {
  color: red;
}

.form-subtitle {
  text-align: justify;
  color: black;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

label {
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

input,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input:is(:hover, :focus),
select:is(:hover, :focus) {
  border-color: black;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  transform: scale(1.02);
}

.radio-group,
.checkbox-group {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group input[type="radio"] {
  margin-right: 5px;
  appearance: auto;
  -webkit-appearance: auto;
  border: 1px solid #ccc;
  width: 16px;
  height: 16px;
  outline: none;
  cursor: pointer;
}

.required-label::after {
  content: " *";
  color: red;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 5px;
  appearance: auto;
  -webkit-appearance: auto;
  border: 1px solid #ccc;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-group label > input[type="radio"],
.checkbox-group label > input[type="checkbox"] {
  margin-right: 5px;
  flex-shrink: 0;
}

.radio-group input[type="radio"]:checked,
.checkbox-group input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.radio-group label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  cursor: pointer;
  max-width: 100%;
}

.error {
  color: red;
  font-size: 14px;
  width: 100%;
  margin-top: 5px;
}

.container-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

button {
  width: 100%;
  background: #007bff;
  color: white;
  padding: 10px;
  border: none;
  outline: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #0056b3;
}

.terms-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
}

#rzp-button1:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border: 1px solid #ddd;
}

@media (min-width: 1200px) {
  .container {
    padding: 30px 40px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 20px;
  }

  .navbar .logo {
    max-width: 100%;
    height: auto;
    text-align: center;
  }

  .form-subtitle {
    font-size: 1rem;
  }

  button {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 15px 10px;
  }

  .container {
    padding: 15px 20px;
    border-radius: 10px;
  }

  .form-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  label {
    font-size: 14px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
  }

  input,
  select {
    padding: 10px;
    font-size: 14px;
  }

  button {
    padding: 10px;
    font-size: 14px;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: row;
    align-items: flex-start;
  }

  .navbar .logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .terms-box {
    max-height: 120px;
    font-size: 13px;
  }

  .error {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .form-subtitle {
    font-size: 13px;
  }

  .container {
    padding: 10px 15px;
  }

  button {
    font-size: 13px;
    padding: 8px;
  }
}