/* Profile Subpages Styling - AICPA & CIMA
   Matches original layouts from contact.png, employment.png, profile_purchases.png */

.subpage-wrap {
  background: #ffffff;
  min-height: calc(100vh - 280px);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #282937;
}

.subpage-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* Back link */
.subpage-back {
  margin-bottom: 1.5rem;
}

.subpage-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #282937;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.subpage-back a:hover {
  color: #72246c;
}

.subpage-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Page Title */
.subpage-title {
  font-size: 2.25rem;
  font-weight: 300;
  color: #282937;
  margin: 0 0 1.75rem;
  line-height: 1.2;
}

/* Navigation Tabs */
.subpage-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.subpage-tab {
  font-size: 1.0625rem;
  font-weight: 400;
  color: #555555;
  text-decoration: none;
  padding: 0.75rem 0.25rem 0.875rem;
  position: relative;
  transition: color 0.15s ease;
}

.subpage-tab:hover {
  color: #72246c;
}

.subpage-tab.active {
  color: #72246c;
  font-weight: 500;
  border-bottom: 3px solid #72246c;
  margin-bottom: -1px;
}

/* Header with action button (e.g. Edit my contact details) */
.subpage-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.subpage-section-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #282937;
  margin: 0;
}

.subpage-action-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #72246c;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.subpage-action-link:hover {
  color: #0091bd;
}

/* Key-Value Details List */
.details-group {
  margin-bottom: 2.5rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: baseline;
}

.detail-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #282937;
  margin: 0;
}

.detail-value {
  font-size: 0.9375rem;
  color: #333333;
  margin: 0;
}

.detail-subtext {
  font-size: 0.8125rem;
  color: #718096;
  margin-top: 4px;
}

.detail-badge {
  display: inline-block;
  background: #e6f4ea;
  color: #137333;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Card / Box style */
.subpage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.subpage-empty-notice {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #282937;
}

.subpage-empty-notice h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 1rem;
}

.subpage-empty-notice p {
  font-size: 1rem;
  color: #555555;
  margin: 0 0 1.5rem;
}

/* Primary purple button (like "Find out membership offers", "Save", etc.) */
.subpage-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #72246c;
  border: 1px solid #72246c;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subpage-btn-primary:hover {
  background: #72246c;
  color: #ffffff;
}

.subpage-btn-filled {
  background: #72246c;
  color: #ffffff;
  border: 1px solid #72246c;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subpage-btn-filled:hover {
  background: #591b54;
  color: #ffffff;
}

/* Form controls */
.subpage-form-group {
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.subpage-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #282937;
  margin-bottom: 0.5rem;
}

.subpage-select,
.subpage-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #282937;
  box-sizing: border-box;
}

.subpage-select:focus,
.subpage-input:focus {
  outline: none;
  border-color: #72246c;
  box-shadow: 0 0 0 2px rgba(114, 36, 108, 0.2);
}

/* Employment & Experience cards */
.exp-card {
  border-left: 3px solid #72246c;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.exp-card__role {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #282937;
  margin: 0 0 0.25rem;
}

.exp-card__company {
  font-size: 0.9375rem;
  color: #72246c;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.exp-card__meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

/* Bottom info/assurance rows */
.subpage-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0 2rem;
}

@media (max-width: 768px) {
  .subpage-tabs {
    gap: 1rem;
  }
  .subpage-tab {
    font-size: 0.9375rem;
    padding: 0.5rem 0;
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
