/* ---------- Global ---------- */
body {
  background-image: url('../img/bg-on.jpg'); /* Replace with your actual image path or URL */
  background-size: cover;                  /* Makes the image cover the entire screen */
  background-position: center top;             /* Keeps it centred */
  background-repeat: repeat;            /* Prevents tiling */
  /* background-attachment: fixed;            Keeps the image fixed when scrolling (optional) */
}

/* ---------- Form Container ---------- */
#popupForm {
    max-width: 720px;
    margin: 30px auto;
    padding: 24px 28px;
    background: #c4996b;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}



/* ---------- Headings ---------- */
#popupForm h2 {
  font-size: 20px;
    margin-bottom: 14px;
    color: #ffffff;
    display: inline-block;
    padding-bottom: 4px;
    text-align: left;
}

/* ---------- Labels ---------- */
#popupForm label {
     display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* ---------- Inputs & Selects ---------- */
#popupForm input[type="text"],
#popupForm input[type="tel"],
#popupForm input[type="email"],
#popupForm input[type="date"],
#popupForm textarea,
#popupForm select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none; /* removes native dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23182e6f' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.482 4.484-4.482L16 8.548l-6 6-6-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* ---------- Focus State ---------- */
#popupForm input:focus,
#popupForm textarea:focus,
#popupForm select:focus {
  outline: none;
  border-color: #182e6f;
  box-shadow: 0 0 0 3px rgb(24 46 111 / 58%);
}

/* ---------- Option Styling ---------- */
#popupForm select option {
  padding: 10px;
  font-size: 14px;
  color: #1f2937;
  background-color: #fff;
}

#popupForm select option:hover,
#popupForm select option:focus {
  background-color: #f3f4f6;
}

/* ---------- Textarea ---------- */
#popupForm textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.45;
}

/* ---------- Error Handling ---------- */
input.error,
textarea.error,
select.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-message {
  font-size: 13px;
  color: #ef4444;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
#popupForm button[type="button"],
#popupForm button[type="submit"] {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}

/* Add Family button */
#popupForm button[type="button"] {
  background: #f3f4f6;
  color: #374151;
  
  border: 1px dashed #d1d5db;
}

#popupForm button[type="button"]:hover {
  background: #e5e7eb;
}

/* Submit button */
#popupForm button[type="submit"] {
  background: #182e6f;
  color: #fff;
      margin-left: 9px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(24, 46, 111, 0.25);
  float: left;
}

#popupForm button[type="submit"]:hover {
  background: #000;
  transform: translateY(-1px);
}

#popupForm button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Family Members Section ---------- */
#family-members {
  margin-top: 12px;
}

.family-member {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.family-member h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #111827;
}

/* ---------- Logo ---------- */
.logo-div {
  width: 100%;
  margin: 20px auto;
}
.logo-div img {
  margin: 45px auto;
  width: auto;
  display: block;
}

/* ---------- Project Name ---------- */
#project-name {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#project-name:focus {
  outline: none;
  border-color: #182e6f;
  box-shadow: 0 0 0 3px rgb(24 46 111 / 58%);
}

/* ---------- Required Indicator ---------- */
.required {
  color: red;
}


.policy-a{
  color: #fff;
  font-size: 12px;
}

.policy-a:hover{
  color: #000;
}

.button-grup{
  display: flex;
  float: right;
  gap: 10px;
      align-items: center;
}

.main-div{
display: flex;
justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  #popupForm {
    padding: 18px;
  }
  #popupForm input,
  #popupForm select,
  #popupForm textarea {
    font-size: 15px;
  }
}


@media only screen and (min-width: 0px)and (max-width: 400px){

  
  .button-grup{
  display: block;
  float: left;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.main-div{
display: inline-block;
justify-content: space-between;
}

#popupForm h2 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #ffffff;
    display: inline-block;
    padding-bottom: 4px;
    text-align: left;
}

}