/* ══════════════════════════════════════════════════════════

   members-portal.css  —  Member's Portal / Registration page
   All classes prefixed  mp-  — zero conflicts with
   globals.css / style.css / about.css / contact.css /
   executive-committee.css / news-media.css / msg-from.css /
   international-relations.css / membership.css /
   resources-publications.css / policy-advocacy.css
   Sections:
   1. Intro Band       (navy, page title)
   2. Registration     (gray, text left + form card right)
   3. Support Bar      (navy, 3 contact cards)
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   KEYFRAMES  (mp- prefix)
─────────────────────────────────────────── */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@keyframes mp-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-slideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes mp-slideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes mp-scaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes mp-fieldFocus {
  from { width: 0; }
  to   { width: 100%; }
}

/* ──────────────────────────────────────────
   LAYOUT UTILITY
─────────────────────────────────────────── */
.mp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ══════════════════════════════════════════
   1. INTRO BAND
   Navy bg · title left, desc right
══════════════════════════════════════════ */
.mp-intro {
  background: var(--navy);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.mp-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); */
  background-size: 36px 36px;
  pointer-events: none;
}
.mp-intro::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 70%);
}

.mp-intro-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* Tag line */
.mp-intro-tag {
  font-family: var(--font-family-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  opacity: 0;
  animation: mp-fadeUp 0.5s ease forwards 0.1s;
}
.mp-intro-tag span {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* Title */
.mp-intro-title {
  font-family: var(--font-family-secondary);
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  animation: mp-fadeUp 0.65s ease forwards 0.2s;
}
.mp-intro-title em {
  font-style: normal;
  color: var(--red);
}

/* Right description */
.mp-intro-right {
  max-width: 360px;
  flex-shrink: 0;
  opacity: 0;
  animation: mp-fadeUp 0.65s ease forwards 0.35s;
}
.mp-intro-right p {
  font-family: var(--font-family-secondary);
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.85;
}

/* ══════════════════════════════════════════
   2. REGISTRATION SECTION
   Light gray bg · 2-col: text + steps left,
   form card right
══════════════════════════════════════════ */
.mp-registration {
  background: var(--gray);
  padding: 100px 0 110px;
}

.mp-reg-grid {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 72px;
  align-items: flex-start;
}

/* ── LEFT COLUMN ── */
.mp-reg-left {
  opacity: 0;
  transform: translateX(-28px);
}
.mp-reg-left.mp-visible { animation: mp-slideRight 0.7s ease forwards 0.1s; }

.mp-reg-title {
  font-family: var(--font-family-secondary);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}

/* Red accent rule */
.mp-red-rule {
  width: 40px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 24px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}
.mp-reg-left.mp-visible .mp-red-rule { animation: mp-scaleIn 0.45s ease forwards 0.35s; }

.mp-reg-desc {
  font-family: var(--font-family-primary);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 36px;
}

/* Step list */
.mp-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mp-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mp-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.mp-step-info h5 {
  font-family: var(--font-family-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.mp-step-info p {
  font-family: var(--font-family-primary);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── RIGHT COLUMN: FORM CARD ── */
.mp-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 44px 44px;
  box-shadow: 0 8px 48px rgba(13,27,62,0.10);
  opacity: 0;
  transform: translateX(28px);
}
.mp-form-card.mp-visible { animation: mp-slideLeft 0.7s ease forwards 0.15s; }

.mp-form-title {
  font-family: var(--font-family-secondary);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.mp-form-sub {
  font-family: var(--font-family-primary);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.mp-form-sub strong {
  color: var(--red);
  font-weight: 600;
}

/* Field groups */
.mp-field {
  margin-bottom: 20px;
}
.mp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mp-field label {
  font-family: var(--font-family-secondary);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mp-field label .mp-req {
  color: var(--red);
  margin-left: 2px;
}

/* Input wrapper with icon */
.mp-input-wrap {
  position: relative;
}
.mp-input-wrap .mp-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: #c4cdd6;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.2s;
}
.mp-input-wrap:focus-within .mp-ico { stroke: var(--navy); }

.mp-input-wrap input,
.mp-textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: var(--navy);
  background: var(--gray);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.mp-textarea {
  padding-left: 14px;
  resize: vertical;
  min-height: 112px;
  line-height: 1.65;
}

.mp-input-wrap input::placeholder,
.mp-textarea::placeholder {
  color: #c0c8d4;
  font-size: 0.8rem;
}

.mp-input-wrap input:focus,
.mp-textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,27,62,0.06);
}

/* Textarea hint */
.mp-field-hint {
  font-size: 0.68rem;
  color: #c0c8d4;
  margin-top: 8px;
  font-style: italic;
}

/* Submit button */
.mp-submit-btn {
  width: 100%;
  margin-top: 28px;
  padding: 16px 32px;
  background: var(--navy);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.mp-submit-btn:hover {
  background: #162d5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,62,0.22);
}
.mp-submit-btn:active { transform: translateY(0); }

.mp-submit-btn svg {
  width: 16px; height: 16px;
  stroke: #fff; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s;
}
.mp-submit-btn:hover svg { transform: translateX(4px); }

/* ══════════════════════════════════════════
   3. SUPPORT BAR
   Navy bg · 3 contact option cards
══════════════════════════════════════════ */
.mp-support {
  background: var(--navy);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.mp-support::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); */
  background-size: 30px 30px;
  pointer-events: none;
}
.mp-support .mp-wrap { position: relative; z-index: 1; }

.mp-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
}
.mp-support-grid.mp-visible { animation: mp-fadeUp 0.7s ease forwards 0.1s; }

.mp-support-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}
.mp-support-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
  transform: translateY(-5px);
}

.mp-support-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.mp-support-card:hover .mp-support-ico {
  background: var(--red);
  transform: scale(1.1) rotate(-5deg);
}
.mp-support-ico svg {
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,0.7); fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.mp-support-card:hover .mp-support-ico svg { stroke: #fff; }

.mp-support-card h5 {
  font-family: var(--font-family-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-support-card p {
  font-family: var(--font-family-primary);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  flex: 1;
}

/* Clickable link inside card */
.mp-support-link {
  font-family: var(--font-family-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
  cursor: pointer;
}
.mp-support-link:hover { gap: 10px; }
.mp-support-link svg {
  width: 12px; height: 12px;
  stroke: var(--red); fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ──────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .mp-wrap          { padding: 0 36px; }
  .mp-intro-inner   { flex-direction: column; align-items: flex-start; }
  .mp-intro-right   { max-width: 100%; }
  .mp-reg-grid      { grid-template-columns: 1fr; gap: 52px; }
  .mp-form-card     { padding: 36px 32px; }
  .mp-support-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mp-wrap          { padding: 0 20px; }
  .mp-intro         { padding: 52px 0 60px; }
  .mp-registration  { padding: 64px 0 72px; }
  .mp-support       { padding: 52px 0 60px; }
  .mp-intro-title   { font-size: clamp(2.2rem, 8vw, 2.8rem); }
  .mp-field-row     { grid-template-columns: 1fr; }
  .mp-support-grid  { grid-template-columns: 1fr; }
  .mp-form-card     { padding: 28px 22px; }
}
/* Modern Alert Base Styles */
/* Modern Alert Base Styles */
.alert-modern {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: none;
}

/* Success Alert */
.alert-success-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Error Alert */
.alert-danger-modern {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Validation Alert */
.alert-validation-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Icon Wrapper */
.alert-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    animation: bounceIn 0.6s ease-out;
}

.alert-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

/* Alert Content */
.alert-content {
    flex: 1;
}

.alert-title {
    margin: 0 0 5px 0;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.alert-message {
    margin: 0;
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.5;
}

/* Error List */
.alert-error-list {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.alert-error-list li {
    padding: 6px 0;
    font-size: 14px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error-list li svg {
    opacity: 0.7;
}

/* Close Button */
.alert-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.alert-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* Progress Bar */
.alert-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    animation: progress 5s linear forwards;
}

/* Animations */
.animate-slide-in {
    animation: slideInDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}