/**
 * NTF Contact Modal — Styles
 *
 * Color palette:
 * - Primary (dark):  #0B1F4D
 * - Secondary (mid): #123A8C
 * - Accent (CTA):    #F5B800
 * - Text:            #FFFFFF
 */

/* ── Overlay ───────────────────────────────────────── */
.nf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.nf-modal--open {
  opacity: 1;
  visibility: visible;
}

.nf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Card ──────────────────────────────────────────── */
.nf-modal__card {
  position: relative;
  background: linear-gradient(135deg, #0e2761 0%, #0b1f4d 100%);
  border: 1px solid rgba(245, 184, 0, 0.2);
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 380px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  font-family: "Barlow", sans-serif;
  color: #ffffff;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(245, 184, 0, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.nf-modal--open .nf-modal__card {
  transform: translateY(0) scale(1);
}

/* ── Close button ──────────────────────────────────── */
.nf-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  padding: 0;
  z-index: 2;
}

.nf-modal__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Avatar ────────────────────────────────────────── */
.nf-modal__avatar {
  margin: 0 auto 12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b800, #e5ab00);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 184, 0, 0.3);
}

.nf-modal__avatar-icon {
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0b1f4d;
  letter-spacing: 0.04em;
}

/* ── Name + Role ───────────────────────────────────── */
.nf-modal__name {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.nf-modal__role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

/* ── Divider ───────────────────────────────────────── */
.nf-modal__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

/* ── Row ───────────────────────────────────────────── */
.nf-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  text-align: left;
}

.nf-modal__row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.nf-modal__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.nf-modal__value {
  font-size: 14px;
  font-weight: 500;
  color: #f5b800;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.nf-modal__value:hover {
  color: #ffd040;
}

.nf-modal__value--text {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Action icons ──────────────────────────────────── */
.nf-modal__row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.nf-modal__action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 58, 140, 0.3);
  border: 1px solid rgba(18, 58, 140, 0.5);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nf-modal__action:hover {
  background: rgba(245, 184, 0, 0.15);
  border-color: rgba(245, 184, 0, 0.4);
  color: #f5b800;
}

/* ── CTA button ────────────────────────────────────── */
.nf-modal__cta {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f5b800, #e5ab00);
  color: #0b1f4d;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.nf-modal__cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(245, 184, 0, 0.4);
  transform: translateY(-1px);
  color: #0b1f4d;
  text-decoration: none;
}
