/* My Profile modal */
.af-profile-panel {
  background: #f4f6f8;
  color: #172438;
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-height: calc(100vh - 40px);
  min-height: min(820px, calc(100vh - 40px));
}

.af-profile-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #dfe4e8;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 25px 28px 20px;
}

.af-profile-eyebrow {
  color: #1477ba;
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.af-profile-header h2 {
  color: #142238;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.2;
  margin: 0 0 5px;
}

.af-profile-header p {
  color: #66758a;
  font-size: 13px;
  margin: 0;
}

.af-profile-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #718094;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin: -5px -7px 0 15px;
  width: 34px;
}

.af-profile-close:hover,
.af-profile-close:focus {
  background: #edf2f6;
  color: #26374d;
  outline: none;
}

.af-profile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 28px 24px;
}

.af-profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.af-profile-section {
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(28, 43, 59, 0.04);
  padding: 18px;
}

.af-profile-section-heading {
  align-items: flex-start;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  gap: 11px;
  margin-bottom: 17px;
  padding-bottom: 14px;
}

.af-profile-section-heading h3 {
  color: #1d2c40;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
}

.af-profile-section-heading p {
  color: #748195;
  font-size: 11px;
  margin: 0;
}

.af-profile-section-icon {
  align-items: center;
  background: #e9f3fa;
  border-radius: 6px;
  color: #1477ba;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 12px;
  height: 30px;
  justify-content: center;
}

.af-profile-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.af-profile-field {
  color: #45546a;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 680;
  gap: 6px;
  margin: 0;
}

.af-profile-field-wide {
  grid-column: 1 / -1;
}

.af-profile-field .form-control {
  border: 1px solid #bcc7d1;
  border-radius: 6px;
  box-shadow: none;
  color: #233248;
  font-size: 13px;
  height: 40px;
  padding: 8px 11px;
}

.af-profile-field .form-control:focus {
  border-color: #1477ba;
  box-shadow: 0 0 0 3px rgba(20, 119, 186, 0.13);
}

.af-profile-callout {
  align-items: flex-start;
  background: #fff8e9;
  border: 1px solid #f0d79d;
  border-radius: 7px;
  color: #7b570d;
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 9px;
  line-height: 1.4;
  margin-bottom: 15px;
  padding: 11px 12px;
}

.af-profile-callout i {
  color: #b9780d;
  margin-top: 2px;
}

.af-profile-field .help-inline {
  color: #7b8797;
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 14px;
  padding: 0;
}

.af-profile-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #dce2e7;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-start;
  padding: 16px 28px;
}

.af-profile-footer .btn {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  min-height: 38px;
  padding: 8px 15px;
}

.af-profile-primary {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .af-profile-panel {
    min-height: calc(100vh - 20px);
  }

  .af-profile-header,
  .af-profile-body,
  .af-profile-footer {
    padding-left: 17px;
    padding-right: 17px;
  }

  .af-profile-grid {
    grid-template-columns: 1fr;
  }
}
