/* ==========================================================================
   P09 : CONFIRMATION DE PAIEMENT MOBILE MONEY (mobile)
   Préfixe : pcfm-
   ========================================================================== */

/* ---------- HEADER MM ---------- */

.pcfm-mm-header {
  background: linear-gradient(135deg, #FF6600 0%, #FF9900 100%);
  padding: var(--space-5) var(--space-4) var(--space-6);
  text-align: center;
  color: white;
  flex-shrink: 0;
  opacity: 0;
  animation: pat-fade-in 400ms var(--ease-out) 60ms forwards;
}

.pcfm-mm-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: white;
}

.pcfm-mm-label {
  font-size: var(--fs-sm);
  opacity: 0.85;
  margin-bottom: var(--space-1);
}

.pcfm-amount {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
}

.pcfm-pharmacy-name {
  font-size: var(--fs-xs);
  opacity: 0.75;
}

/* ---------- FORMULAIRE ---------- */

.pcfm-form-area {
  flex: 1;
  padding: var(--space-5) var(--space-4);
  overflow-y: auto;
  min-height: 0;
}

.pcfm-field-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-dark);
  margin-bottom: var(--space-2);
  display: block;
  opacity: 0;
  animation: pat-fade-in 350ms var(--ease-out) 300ms forwards;
}

.pcfm-phone-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: pat-fade-in 350ms var(--ease-out) 380ms forwards;
}

.pcfm-country-code {
  height: 48px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-gray-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.pcfm-phone-input {
  flex: 1;
  height: 48px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-gray-dark);
  font-family: var(--font-body);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.pcfm-phone-input:focus {
  border-color: var(--color-primary-dark);
}

.pcfm-phone-hint {
  font-size: var(--fs-xs);
  color: var(--color-gray);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: pat-fade-in 350ms var(--ease-out) 460ms forwards;
}

/* ---------- SECURITY NOTICE ---------- */

.pcfm-security {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-success-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: pat-fade-in 350ms var(--ease-out) 540ms forwards;
}

.pcfm-security__icon {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 1px;
}

.pcfm-security__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-success);
  margin-bottom: 2px;
}

.pcfm-security__text {
  font-size: var(--fs-xs);
  color: var(--color-gray-dark);
  line-height: 1.5;
}

/* ---------- FOOTER ---------- */

.pcfm-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-top: 1px solid var(--color-gray-border);
  flex-shrink: 0;
}

/* ---------- ÉTAT CHARGEMENT ---------- */

.pcfm-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
}

.pcfm-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray-border);
  border-top-color: #FF6600;
  border-radius: var(--radius-full);
  animation: pcfm-spin 0.8s linear infinite;
}

@keyframes pcfm-spin {
  to { transform: rotate(360deg); }
}

.pcfm-processing__label {
  font-size: var(--fs-sm);
  color: var(--color-gray);
  font-weight: var(--fw-medium);
}
