/* === Global reset & base styles === */
body {
  margin: 0;
  padding: 60px 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f89829 0%, #13478e 50%, #f89829 100%);
  color: #fff;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* === Optional floating background animation === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://i.imgur.com/6dHa2tv.jpeg') no-repeat center center;
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
  animation: slowMove 60s linear infinite;
  z-index: -1;
}

@keyframes slowMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* === Remove outer EveryAction containers === */
body > div,
body > div > div,
body > div > div > div,
body > div > div > div > div,
.container,
.panel-content {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* === Content wrapper === */
.content.ngp-content {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* === Compact glassy panel === */
.panel.panel-details.form-condensed {
  background: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.15); /* Safari fallback */
  border-radius: 28px !important;
  padding: 30px 25px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: fadeSlideIn 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* === Form wrapper === */
.ngp-form.at,
.ngp-form,
.at-inner {
  width: 100%;
  border-radius: 24px !important;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  background-color: rgba(255, 255, 255, 0.07); /* Safari fallback */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* === Inputs === */
input, select, textarea {
  border-radius: 12px !important;
  padding: 10px !important;
  font-size: 15px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

input::placeholder, textarea::placeholder {
  color: #ffffff99;
}

/* === Submit Button === */
.ngp-form.at button[type="submit"],
button[type="submit"],
.btn-submit {
  display: block !important;
  margin: 20px auto 0 auto !important;
  background: #c0392b !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  font-weight: bold !important;
  font-size: 16px;
  cursor: pointer !important;
  text-align: center !important;
  width: fit-content !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  box-shadow: 0 0 16px rgba(192, 57, 43, 0.5);
}

button[type="submit"]:hover,
.btn-submit:hover {
  background: #a93226 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.7);
}

button[type="submit"]:active {
  transform: scale(0.96);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.5);
}

/* === Fade on load === */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Mobile styling === */
@media (max-width: 768px) {
  body {
    padding: 30px 0;
  }

  .panel.panel-details.form-condensed {
    padding: 25px 15px;
    margin: 15px;
    border-radius: 20px;
  }

  .ngp-form.at,
  .ngp-form {
    padding: 15px;
    border-radius: 18px;
  }

  input, select, textarea {
    font-size: 14px;
    padding: 9px !important;
  }

  button[type="submit"],
  .btn-submit {
    padding: 12px 18px !important;
    width: 100% !important;
    font-size: 16px !important;
  }
}

/* === Fix for international phone number field (flag + number) === */
input[type="tel"] {
  padding-left: 48px !important; /* make space for flag */
  padding-right: 12px !important;
  min-height: 48px;
  font-size: 16px;
}

/* Optional: fix container if it's in a wrapper */
.iti {
  width: 100% !important;
}

/* If the flag is overflowing */
.iti__flag-container {
  left: 8px;
}
