:root {
  --membership-gold: #ffd700;
  --membership-dark: #080808;
  --membership-panel: #141414;
  --membership-muted: #d5c98a;
}

body.membership-page {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 215, 0, .12), transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(255, 215, 0, .08), transparent 24%),
    var(--membership-dark);
  color: #fff;
}

.membership-hero {
  padding: 155px 0 55px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, .25);
}

.membership-hero .membership-emblem,
.membership-contact-card .membership-emblem {
  align-items: center;
  background: linear-gradient(145deg, #fff0a6, #b98700);
  border: 2px solid #fff1a3;
  border-radius: 50%;
  color: #111;
  display: inline-flex;
  height: 74px;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, .25);
  width: 74px;
}

.membership-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 22px 0 12px;
}

.membership-hero h1 span,
.membership-form-card label,
.membership-form-card .form-check-label a {
  color: var(--membership-gold);
}

.membership-shell {
  padding: 55px 0 90px;
}

.membership-form-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, .98), rgba(8, 8, 8, .98));
  border: 1px solid rgba(255, 215, 0, .35);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.membership-form-card .card-heading {
  background: linear-gradient(90deg, rgba(255, 215, 0, .15), transparent);
  border-bottom: 1px solid rgba(255, 215, 0, .25);
  padding: 28px 34px;
}

.membership-form-card form {
  padding: 34px;
}

.membership-form-card .form-control {
  background: #0d0d0d;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  color: #fff;
  min-height: 48px;
}

.membership-form-card textarea.form-control {
  min-height: 115px;
}

.membership-form-card .form-control:focus {
  background: #101010;
  border-color: var(--membership-gold);
  box-shadow: 0 0 0 .2rem rgba(255, 215, 0, .12);
  color: #fff;
}

.passport-editor {
  background: #080808;
  border: 1px dashed rgba(255, 215, 0, .6);
  border-radius: 12px;
  padding: 18px;
}

.passport-preview {
  background: #202020;
  border: 4px solid var(--membership-gold);
  border-radius: 8px;
  height: 240px;
  margin: 0 auto 16px;
  overflow: hidden;
  position: relative;
  width: 180px;
}

.passport-preview img {
  display: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.passport-preview .placeholder {
  align-items: center;
  color: #8f8f8f;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  text-align: center;
}

.crop-controls {
  display: none;
}

.captcha-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.captcha-row img {
  border: 1px solid var(--membership-gold);
  border-radius: 6px;
  height: 70px;
  width: 220px;
}

.membership-submit {
  background: linear-gradient(135deg, #ffec77, #d8a900);
  border: 0;
  border-radius: 30px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 34px;
}

.membership-submit:hover {
  background: #fff;
  color: #111;
}

.membership-contact-card {
  align-items: center;
  background: linear-gradient(135deg, #171717, #050505);
  border: 1px solid rgba(255, 215, 0, .45);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .35);
  display: flex;
  gap: 24px;
  margin: 35px auto 15px;
  max-width: 950px;
  padding: 28px;
}

.membership-contact-card h3 {
  color: #fff;
  margin-bottom: 6px;
}

.membership-contact-card .btn-membership {
  background: var(--membership-gold);
  border-radius: 24px;
  color: #111;
  display: inline-block;
  font-weight: 700;
  margin-left: auto;
  padding: 11px 22px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .membership-form-card form,
  .membership-form-card .card-heading {
    padding: 22px;
  }
  .membership-contact-card {
    flex-direction: column;
    text-align: center;
  }
  .membership-contact-card .btn-membership {
    margin-left: 0;
  }
}
