/* --- Membership Form Styles --- */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: var(--color-green-100);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- Animation on Page Load --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger the animation for each form group on load */
.form-container form .form-group:nth-child(1) { animation-delay: 0.075s; }
.form-container form .form-group:nth-child(2) { animation-delay: 0.15s; }
.form-container form .form-group:nth-child(3) { animation-delay: 0.225s; }
.form-container form .form-group:nth-child(4) { animation-delay: 0.3s; }
.form-container form .form-group:nth-child(5) { animation-delay: 0.375s; }
.form-container form .form-group:nth-child(6) { animation-delay: 0.45s; }
.form-container form .form-group:nth-child(7) { animation-delay: 0.525s; }
.form-container form .form-group:nth-child(8) { animation-delay: 0.6s; }
.form-container form .form-group:nth-child(9) { animation-delay: 0.675s; }
.form-container form .form-group:nth-child(10) { animation-delay: 0.75s; }
.form-container form .form-group:nth-child(11) { animation-delay: 0.825s; }
.form-container form .form-group:nth-child(12) { animation-delay: 0.9s; }
.form-container form .form-group:nth-child(13) { animation-delay: 0.975s; }

/* Special class to override delay for the conditional checkbox */
.form-group.instant-show {
    animation-delay: 0s !important;
}


.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[readonly] {
    background-color: var(--color-gray-100);
    cursor: not-allowed;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-green-600);
    box-shadow: 0 0 0 3px var(--color-green-200);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: 0;
    line-height: 1.5;
}

.form-container .button {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* --- Separator Styles --- */
.form-container .content-separator {
    background-color: var(--color-gray-400);
    margin: 1rem 0 2rem 0;
}

.content-separator {
    border: none;
    height: 1px;
    background-color: var(--color-gray-300);
    margin: 3rem auto;
    max-width: 80%;
}

.content-separator-card {
    height: 1px;
    background-color: var(--color-gray-500);
    max-width: 80%;
    margin-block: 3rem;
    border: none;
}


/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Padding for bottom of page --- */
#membership-section {
    padding-bottom: 4rem;
}

/* --- Download Section --- */
.download-section {
    text-align: center;
}

.download-section .content-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-section p {
    color: var(--color-gray-600);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

.download-section .button-secondary {
    display: block; 
    width: fit-content; 
    margin: 2rem auto 1rem auto;
    color: var(--color-green-800);
    border-color: var(--color-green-700);
    background-color: transparent;
}

.download-section .button-secondary:hover {
    background-color: var(--color-green-700);
    color: var(--color-white);
}

.postal-address {
    display: inline-block; 
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
    text-align: center; 
}

.address-icon {
    display: block;
    margin: 0 auto 0.75rem auto; 
    width: 2rem;
    height: 2rem;
    color: var(--color-green-700);
}

.postal-address p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-gray-800);
}

/* --- Confirmation Modal Styles --- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.is-visible {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white);
  padding: 2rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.is-visible .modal-content {
  transform: scale(1);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-top: 0;
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

#modal-continue-button {
  width: 100%;
}

.list-instructions{
    text-align: left;
}