/* ============================================================
   PayTech Facture Paiement — Style CSS
   ============================================================ */

/* ── Conteneur global ───────────────────────────────────────── */
.ptf-wrapper {
    max-width: 520px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Notice (admin) ─────────────────────────────────────────── */
.ptf-notice {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.ptf-notice--warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7b4f00;
}
.ptf-notice a { color: #e65100; font-weight: 600; }

/* ── Carte ──────────────────────────────────────────────────── */
.ptf-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

/* En-tête de carte */
.ptf-card__header {
    background: linear-gradient(135deg, #0a7c5c 0%, #0fa377 100%);
    padding: 28px 32px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ptf-icon {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}
.ptf-card__title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

/* Corps de carte */
.ptf-card__body {
    padding: 28px 32px;
}

/* Pied de carte */
.ptf-card__footer {
    background: #f0faf6;
    border-top: 1px solid #d1f0e4;
    padding: 12px 32px;
    font-size: 13px;
    color: #2d7a5f;
    text-align: center;
}

/* ── Formulaire ─────────────────────────────────────────────── */
.ptf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ptf-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2533;
}
.ptf-required {
    color: #e53e3e;
    margin-left: 2px;
}

.ptf-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4dae3;
    border-radius: 8px;
    font-size: 16px;
    color: #1a2533;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.ptf-input:focus {
    border-color: #0a7c5c;
    box-shadow: 0 0 0 3px rgba(10, 124, 92, 0.12);
}
.ptf-input::placeholder {
    color: #a0aab6;
}

/* Groupe input + suffixe */
.ptf-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #d4dae3;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ptf-input-group:focus-within {
    border-color: #0a7c5c;
    box-shadow: 0 0 0 3px rgba(10, 124, 92, 0.12);
}
.ptf-input-group .ptf-input {
    border: none;
    border-radius: 0;
    flex: 1;
    box-shadow: none !important;
}
.ptf-input-suffix {
    padding: 0 14px;
    background: #f5f7fa;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-left: 1px solid #d4dae3;
    height: 46px;
    display: flex;
    align-items: center;
}

.ptf-hint {
    font-size: 12px;
    color: #8a96a3;
}

/* ── Bouton ─────────────────────────────────────────────────── */
.ptf-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0a7c5c 0%, #0fa377 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 4px;
}
.ptf-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}
.ptf-btn:active:not(:disabled) {
    transform: translateY(0);
}
.ptf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.ptf-btn__text,
.ptf-btn__loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Spinner */
@keyframes ptf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.ptf-spin {
    animation: ptf-spin 0.8s linear infinite;
}

/* ── Méthodes de paiement ───────────────────────────────────── */
.ptf-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    font-size: 13px;
}
.ptf-methods__label {
    color: #718096;
    width: 100%;
}
.ptf-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.ptf-badge--orange { background: #fff3e0; color: #e65100; }
.ptf-badge--wave   { background: #e3f2fd; color: #0d47a1; }
.ptf-badge--free   { background: #e8f5e9; color: #1b5e20; }
.ptf-badge--card   { background: #ede7f6; color: #4527a0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 560px) {
    .ptf-wrapper { margin: 16px; max-width: 100%; }
    .ptf-card__header, .ptf-card__body { padding: 20px; }
    .ptf-card__footer { padding: 12px 20px; }
    .ptf-card__title { font-size: 18px; }
}
