/* ASHM Membership Styles - v1.0.0 */
:root {
  --background-white: #FFF;
  --text-strong: #122346;
  --text-weak: #4A5773;
  --stroke-weak: #E6E9F0;
  --primary-blue: #0060AE;
}

.ashm-memberships-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.ashm-membership-card {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
  border-radius: 16px;
  background: var(--background-white);
  box-shadow: 0px 4px 16px -2px rgba(71, 106, 178, 0.10), 0px 2px 8px -2px rgba(71, 106, 178, 0.04);
}

.ashm-membership-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 16px;
}

.ashm-membership-title {
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
  flex: 1;
}

.ashm-membership-price {
  color: var(--text-strong);
  text-align: right;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  white-space: nowrap;
}

.ashm-membership-description {
  color: var(--text-weak);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  width: 100%;
  margin-top: 16px;
}

.ashm-payment-section {
  width: 100%;
}

.ashm-payment-title {
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin: 0 0 16px 0;
}

.ashm-payment-options {
  display: flex;
  gap: 16px;
  width: 100%;
}

.ashm-payment-card {
  display: flex;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 16px;
  border: 1px solid var(--stroke-weak);
  background: #FFF;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ashm-payment-card.ashm-recurring::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: url("https://ashm.org.au/wp-content/uploads/2025/03/jessica-graphic.svg");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  pointer-events: none;
}

.ashm-payment-card.ashm-onetime::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: url("https://ashm.org.au/wp-content/uploads/2025/03/alexis-graphic.svg");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  pointer-events: none;
}

.ashm-payment-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.ashm-payment-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ashm-payment-label {
  color: #122346;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin: 0;
}

.ashm-payment-sublabel {
  color: var(--text-weak);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

.ashm-payment-price {
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin-top: 8px;
}

.ashm-price-period {
  color: var(--text-weak);
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.ashm-select-button {
  display: flex;
  width: 200px;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  border: 1px solid var(--primary-blue);
  background: #FFF;
  color: var(--primary-blue);
  text-decoration: none;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ashm-select-button:hover {
  background: var(--primary-blue);
  color: #FFF;
  text-decoration: none;
}

/* Student Membership Styles */
.ashm-student-benefits {
  width: 100%;
}

.ashm-benefits-title {
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin: 0 0 16px 0;
}

.ashm-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ashm-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.ashm-checkmark {
  color: #00A650;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.ashm-student-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.ashm-join-button {
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  color: var(--primary-blue);
  text-decoration: none;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-blue);
}

.ashm-join-button:hover {
  background: #004A8A;
  border-color: #004A8A;
  text-decoration: none;
  color: #FFF;
}

.ashm-student-note {
  color: #DC2626;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  padding: 12px 16px;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  background: #FEF2F2;
  max-width: 220px;
}

/* Integrated Membership Selector Styles */
.ashm-membership-card.ashm-membership-selector {
  max-width: 100%;
  margin: 0 auto;
}

.ashm-membership-selector .ashm-membership-header {
  align-items: flex-start;
  gap: 24px;
}

.ashm-membership-dropdown {
  flex: 1;
}

.ashm-dropdown-label {
  display: block;
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0 0 8px 0;
}

.ashm-dropdown-wrapper {
  position: relative;
  display: block;
}

.ashm-dropdown-select {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #7E8BA6;
  background: #FFF;
  color: #4A5773;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' viewBox='0 0 16 17' fill='none'%3e%3cpath d='M4 6.5L8 10.5L12 6.5' stroke='%237E8BA6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 17px;
}

.ashm-dropdown-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 96, 174, 0.1);
}

.ashm-dropdown-select:hover {
  border-color: var(--primary-blue);
}

/* Custom dropdown styling */
.ashm-dropdown-select option {
  display: flex;
  padding: 16px;
  align-items: center;
  align-self: stretch;
  border-bottom: 1px solid var(--stroke-weak, #E6E9F0);
  color: rgba(0, 20, 66, 0.65);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  background: #FFF;
}

.ashm-dropdown-select option:hover {
  background: #F8F9FA;
}

.ashm-dropdown-select option:last-child {
  border-bottom: none;
}

/* Remove the separate arrow since it's now in the background */

.ashm-membership-fee {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.ashm-fee-label {
  color: var(--text-strong);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.ashm-fee-price {
  color: var(--text-strong);
  text-align: right;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
}

.ashm-payment-container {
  width: 100%;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ashm-membership-card {
    padding: 16px;
    gap: 16px;
  }
  
  .ashm-membership-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .ashm-membership-price {
    text-align: left;
  }
  
  .ashm-payment-options {
    flex-direction: column;
  }
  
  .ashm-payment-card {
    padding: 16px;
  }
  
  .ashm-select-button {
    width: 100%;
  }
  
  .ashm-payment-card::after {
    width: 60px;
    height: 60px;
  }
  
  /* Selector responsive adjustments */
  .ashm-membership-selector .ashm-membership-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .ashm-membership-left {
    width: 100%;
  }
  
  .ashm-dropdown-wrapper {
    width: 100%;
  }
  
  .ashm-membership-fee {
    align-items: flex-start;
    align-self: flex-end;
    width: auto;
  }
  
  .ashm-fee-price {
    text-align: right;
  }
}

/* Single membership specific styles */
.ashm-single-membership {
  max-width: 600px;
  margin: 0 auto;
}

/* Additional utility classes */
.ashm-membership-card.ashm-highlight {
  border: 2px solid var(--primary-blue);
  box-shadow: 0px 4px 20px -2px rgba(0, 96, 174, 0.15), 0px 2px 10px -2px rgba(0, 96, 174, 0.08);
}
