[v-cloak] { display: none; }

.instructions-container {
  margin: 1rem;
}

.instructions-toggle {
  display: none; /* hidden by default, show only on mobile */
  width: 100%;
  color: white;
  border: 1px solid #0073aa;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
}

.instructions-toggle span {
  float: right;
  font-size: 0.85rem;
}

.instructions {
  padding: 1rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.4;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.instructions[style*="display: none"] {
  opacity: 0;
}

.instructions p {
  margin: 0 0 0.5rem 0;
}

/* Show toggle button only on small screens */
@media (max-width: 48em) {
  .instructions-toggle {
    display: block;
  }

  /* Instructions content hidden by default (v-show controls display) */
}

@media (min-width: 48em) {
  .instructions-toggle {
    display: none !important;
  }
  .instructions {
    display: block !important;
  }
}

button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.membership-message {
    margin-top: 1rem;
    font-weight: 600;
}

.membership-message.success { color: green; }
.membership-message.error { color: red; }

.matches { list-style: none; padding: 0; }
.message.success { color: green; }
.message.error { color: red; }

/* Modal backdrop */
/* .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
} */

/* Modal box */
.modal {
  position: relative; 
  background: white;
  padding: 1.5rem;
  max-width: 480px;
  width: 90%;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  max-height: 80vh;
  overflow-y: auto;
}


.form-wrapper {
  display: flex;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
  max-width: 900px;
  margin: 0 auto;
  border-top: 2px solid #ccc;
}

.form-container {
  width: 100%;
  max-width: 400px;
  min-width: 250px;
  margin: 1rem;
}

.membership-form {  
  width: 100%;
  padding: 1rem;
  border: none; /* Remove border around form */
  box-shadow: none; /* In case there was any */
  box-sizing: border-box;
}

@media (max-width: 48em) {
  .form-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .form-container {
    max-width: 100%;
    margin: 1rem 0; 
    padding: 0;
  }
}

.status-message-wrapper {
  max-width: 400px;
  min-width: 250px;
  width: 100%;
  padding: 0;
  margin: 1rem;
  word-wrap: break-word;
  justify-items: left;
}

.membership-form button[type="submit"] {
  display: block;
  /* margin-left: auto; */
  background: #0073aa;
  border: 1px solid #0073aa;
  color: #fff;
}

.membership-form button[type="submit"]:hover {
  background: #005f8d;
}

.membership-review {
  max-width: 400px;
  min-width: 250px;
  width: 100%;
  padding: 0;
  margin: 1rem;
}

.membership-review h3 {
  margin: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Review sections */
.review-block {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.review-block strong {
  font-weight: 600;
}

/* Total amount highlight */
.review-total {
  font-size: 1.1rem;
  font-weight: 700;
}

.review-total-block {
  padding: 0.75rem 0 0;
  border-top: 2px solid #ccc;
}

/* Actions */
.form-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  gap: 1rem;
}

.form-buttons button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Secondary (Back) button */
.form-buttons button:first-child {
  background: #8b8b8b;
  border: 1px solid #ccc;
}

.form-buttons button:first-child {
  background: #6f6f6f;
}

/* Primary (Pay) button */
.form-buttons button:last-child {
  background: #0073aa;
  border: 1px solid #0073aa;
  color: #fff;
}

.form-buttons button:last-child:hover {
  background: #005f8d;
}