/* Membership/Volunteer Registration Section */

.membership-section {
  position: relative;
  padding: 1rem 0;
  background-color: white;
  /* background: linear-gradient(135deg, #F5F9FC 0%, #FFFFFF 50%, #F5F9FC 100%); */
  display: flex;
  align-items: center;
  height: auto;
  /* border: 1px solid red; */
  justify-content: center;
}

/* Animated Background */
.membership-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: floatBlob 15s ease-in-out infinite;
}

/* .blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #007BBD, transparent);
  top: -250px;
  right: -250px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #F8B400, transparent);
  bottom: -200px;
  left: -200px;
  animation-delay: 5s;
} */

@keyframes floatBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.home-membership-container{
  max-height: 100%;
  /* border: 1px solid blue; */
}

/* Container */
.membership-section .home-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* border: 5px solid blue; */
}

.membership-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  /* border: 5px solid green; */
}

/* Header */
.membership-header {
  text-align: center;
  margin-bottom: 1rem;
}

.membership-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #007BBD, #79C8E0);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 123, 189, 0.3);
}

.membership-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #007BBD 0%, #F8B400 50%, #79C8E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.membership-description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Wrapper */
.membership-form-wrapper {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 123, 189, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.membership-form-wrapper:hover {
  box-shadow: 0 12px 40px rgba(0, 123, 189, 0.2), 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Form */
.membership-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Form Groups */
.form-group {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Textarea and submit button span full width */
.form-group-full,
.form-actions {
  grid-column: 1 / -1;
}

/* Input Wrapper */
.input-wrap,
.select-wrap,
.textarea-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.input-wrap label,
.select-wrap label,
.textarea-wrap label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary, #6B7280);
  
}

.input-wrap input,
.select-wrap select,
.textarea-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--color-background, #FFFFFF);
  border: 1px solid var(--color-border, #D1D5DB);
  border-radius: 10px;
  color: var(--color-text-primary, #111827);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.input-wrap input:focus,
.select-wrap select:focus,
.textarea-wrap textarea:focus {
  outline: auto;
  outline-offset: 2px;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.input-wrap input::placeholder,
.textarea-wrap textarea::placeholder {
  color: var(--color-text-tertiary, #9CA3AF);
}

.required {
  color: #EF4444;
}

/* Focus Border */
.focus-border {
  display: none;
}

/* Select Styling */
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23007BBD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px 20px;
  padding-right: 3rem;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-wrap select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23007BBD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px 20px;
}

/* Textarea */
.textarea-wrap textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Error Messages */
.error-message {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #EF4444;
  padding-left: 1rem;
}

/* Form Actions */
.form-actions {
  margin-top: 0.5rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary, #007BBD);
  color: #fff;
  font-size: 0.9375rem;
  border-radius: 18px;
  border: 1px solid var(--color-primary, #007BBD);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 123, 189, 0.3);
}

.btn-submit:hover {
  background: #fff;
  color: var(--color-primary, #007BBD);
  border-color: var(--color-primary, #007BBD);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 123, 189, 0.4);
}

.btn-submit span:hover {
  color: var(--color-primary, #007BBD);
}

.btn-submit:active {
  background: #fff;
  color: var(--color-primary, #007BBD);
  border-color: var(--color-primary, #007BBD);
  transform: translateY(0);
}

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-submit:hover:disabled {
  background: var(--color-primary, #007BBD);
  color: #fff;
  border-color: var(--color-primary, #007BBD);
  transform: none;
  box-shadow: none;
}

.btn-submit:hover:disabled svg {
  transform: none;
}

/* Privacy Text */
.form-privacy {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .membership-wrapper {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .membership-section {
    padding: 2rem 0;
    max-height: auto;
  }

  .membership-wrapper {
    padding: 0 1rem;
  }

  .membership-header {
    margin-bottom: 1rem;
  }

  .membership-title {
    font-size: 1.5rem;
  }

  .membership-description {
    font-size: 0.875rem;
  }

  .membership-form-wrapper {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .membership-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group-full,
  .form-actions {
    grid-column: 1;
  }

  .input-wrap input,
  .select-wrap select,
  .textarea-wrap textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .btn-submit {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .membership-section {
    padding: 1.5rem 0;
    max-height: auto;
  }

  .membership-wrapper {
    padding: 0 0.75rem;
  }

  .membership-title {
    font-size: 1.25rem;
  }

  .membership-form-wrapper {
    padding: 1.25rem 1rem;
  }

  .membership-form {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  .form-group-full,
  .form-actions {
    grid-column: 1;
  }

  .input-wrap input,
  .select-wrap select,
  .textarea-wrap textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  .btn-submit {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

.btn-submit span {
  color: white;
}
