html, body {
  background-color: transparent;
  /*overflow: hidden;*/
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #94aaae url('jetour-club-bg.png') repeat 50% 50% / 300px;
}

* {
  box-sizing: border-box;
}

.form__mainWrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
/*.form__mainWrapper::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: #485e3f url('jetour-club-header.png') no-repeat 50% 0 / auto 100%;
  content: "";
}*/
@media (max-width: 900px) {
  .form__mainWrapper {
    flex-direction: column;
    align-items: center;
  }
}
.form-img {
  width: 650px;
  max-width: 100%;
}
@media (max-width: 1200px) {
  .form-img {
    width: 450px;
  }
}

.required {
  color: #d01818;
}

.membership-logo {
  width: 100%;
}

.membership-logo img{
  width: 200px;
  display: block;
  margin: 0 auto;
  margin-top: -2rem;
}

#form-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #004AAD;
  color: white;
  font-size: 28px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none;
}

.form-container {
  background: #f4dfcf;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 540px;
  position: relative;
  border: 1px solid #ccc;
}

.form-container h2 {
  margin-top: 0;
  color: #425f3b;
  font-size: 1.3rem;
  text-align: center;
}

@media (max-width: 600px) {
  .form-container h2{
    font-size: 1.2rem;
  }
}

.form-container label {
  display: block;
  margin-top: 18px;
  font-weight: 500;
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-container button[type="submit"] {
  margin-top: 15px;
  padding: 12px;
  width: 100%;
  background: #689fa6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#responseMsg {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}


.form__mainWrapper .terms__label {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 400;

}

.form__mainWrapper .terms__label input {
  width: auto;
  margin-right: 5px;
}

.phone-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.image-upload-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.image-upload-item input[type="file"] {
  margin-top: 6px;
}
.image-upload-item input[type="file"].hidden { display: none; }
.image-remove-btn {
  margin-top: 8px;
  appearance: none;
  border: none;
  background: #e53e3e;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.image-remove-btn.hidden { display: none; }
.image-preview {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.image-preview.hidden { display: none; }

.country-code {
  background: #f0f0f0;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  margin-top: 4px;
}

/* Inline link-styled button */
.link-button {
  appearance: none;
  background: none;
  border: none;
  color: #004aad;
  padding: 0;
  margin: 0 0 0 4px;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}
.link-button:focus { outline: 2px solid #9cc2ff; outline-offset: 2px; }

/* Modal base */
.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  width: min(720px, 92vw);
  max-height: 85vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f3;
}
.modal__header h3 { margin: 0; font-size: 1.1rem; color: #1d2a44; }
.modal__close {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #4a5568;
}
.modal__body {
  padding: 16px 18px;
  overflow: auto;
  color: #2d3748;
}
.terms-list { padding-left: 1.15rem; }
.terms-list li { margin: 8px 0; }
.modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid #eef0f3;
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn--primary { background: #004aad; color: #fff; }
.btn--primary:hover { background: #003b8b; }
.btn--secondary { background: #e2e8f0; color: #1a202c; }
.btn--secondary:hover { background: #cbd5e0; }

/* Improve list readability on small screens */
@media (max-width: 480px) {
  .modal__dialog { margin: 3vh auto; max-height: 92vh; }
  .modal__header h3 { font-size: 1rem; }
}

@media (max-width: 540px) {
  .image-upload-wrapper { grid-template-columns: 1fr; }
}
