/**
 * PR-FAX — Styles module Envoi de Fax
 * Design TAGFLEET : division #0EA5E9, CTA #1260A8
 */

:root {
    --fax-primary: #1260A8;
    --fax-accent: #059669;
    --fax-dark: #0D1B2A;
    --fax-surface: #F4F7FA;
    --fax-border: #E8E8E8;
    --fax-text: #1A1A1A;
    --fax-text-sec: #666;
    --fax-success: #0F8A4F;
    --fax-error: #CC2936;
    --fax-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Calibri', Arial, sans-serif; background: var(--fax-surface); color: var(--fax-text); min-height: 100vh; }

.fax-header {
    background: linear-gradient(135deg, var(--fax-accent) 0%, #047857 100%);
    color: white;
    padding: 24px 20px 20px;
    text-align: center;
}
.fax-header-logo { width: 48px; height: 48px; margin-bottom: 8px; }
.fax-header-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.fax-header-sub { font-size: 13px; opacity: 0.85; }

.fax-stepper { display: flex; justify-content: center; padding: 20px 20px 0; max-width: 600px; margin: 0 auto; }
.fax-step { display: flex; align-items: center; flex: 1; }
.fax-step:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--fax-border); margin: 0 8px; }
.fax-step.active:not(:last-child)::after { background: var(--fax-accent); }
.fax-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--fax-border); color: var(--fax-text-sec); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; transition: all 0.3s; }
.fax-step.active .fax-step-dot { background: var(--fax-accent); color: white; }
.fax-step.done .fax-step-dot { background: var(--fax-success); color: white; }

.fax-container { max-width: 600px; margin: 0 auto; padding: 20px; }

.fax-card { background: white; border: 1px solid var(--fax-border); border-radius: var(--fax-radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.fax-card-title { font-size: 16px; font-weight: 700; color: var(--fax-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.fax-card-title svg { width: 20px; height: 20px; color: var(--fax-accent); flex-shrink: 0; }

.fax-field { margin-bottom: 14px; }
.fax-label { display: block; font-size: 13px; font-weight: 600; color: var(--fax-text-sec); margin-bottom: 6px; }
.fax-input { width: 100%; padding: 12px 14px; border: 1px solid var(--fax-border); border-radius: 8px; font-family: 'Calibri', Arial, sans-serif; font-size: 15px; color: var(--fax-text); outline: none; transition: border-color 0.2s; }
.fax-input:focus { border-color: var(--fax-accent); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1); }
.fax-input::placeholder { color: #aaa; }

.fax-phone-input { font-size: 22px; font-weight: 700; text-align: center; letter-spacing: 2px; font-family: Consolas, 'Courier New', monospace; }

.fax-upload-zone { border: 2px dashed var(--fax-border); border-radius: var(--fax-radius); padding: 32px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.fax-upload-zone:hover { border-color: var(--fax-accent); background: rgba(5, 150, 105, 0.03); }
.fax-upload-zone.has-file { border-style: solid; border-color: var(--fax-success); background: rgba(15, 138, 79, 0.03); }
.fax-upload-icon { width: 48px; height: 48px; color: var(--fax-border); margin: 0 auto 12px; }
.fax-upload-zone.has-file .fax-upload-icon { color: var(--fax-success); }
.fax-upload-text { font-size: 15px; color: var(--fax-text-sec); margin-bottom: 4px; }
.fax-upload-hint { font-size: 12px; color: #aaa; }

.fax-file-info { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--fax-surface); border-radius: 8px; margin-top: 12px; }
.fax-file-name { font-size: 14px; font-weight: 600; color: var(--fax-dark); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fax-file-size { font-size: 12px; color: var(--fax-text-sec); }
.fax-file-remove { width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(204, 41, 54, 0.1); color: var(--fax-error); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.fax-pricing { display: flex; flex-direction: column; gap: 8px; }
.fax-price-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--fax-border); font-size: 14px; }
.fax-price-row:last-child { border-bottom: none; font-weight: 700; font-size: 16px; padding-top: 14px; }
.fax-price-label { color: var(--fax-text-sec); }
.fax-price-value { color: var(--fax-text); font-weight: 600; }

.fax-btn { width: 100%; padding: 14px 24px; border: none; border-radius: var(--fax-radius); font-family: 'Calibri', Arial, sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fax-btn-primary { background: var(--fax-primary); color: white; }
.fax-btn-primary:hover { background: #0F4F8A; }
.fax-btn-primary:disabled { background: #9CA3AF; cursor: not-allowed; }
.fax-btn-secondary { background: white; color: var(--fax-text-sec); border: 1px solid var(--fax-border); }
.fax-btn-secondary:hover { background: var(--fax-surface); }
.fax-btn-row { display: flex; gap: 12px; margin-top: 20px; }
.fax-btn-row .fax-btn { flex: 1; }

.fax-confirmation { text-align: center; padding: 32px 20px; }
.fax-confirmation-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--fax-success); }
.fax-confirmation-title { font-size: 22px; font-weight: 700; color: var(--fax-dark); margin-bottom: 8px; }
.fax-confirmation-sub { font-size: 14px; color: var(--fax-text-sec); margin-bottom: 24px; line-height: 1.5; }

.fax-code-display { background: rgba(5, 150, 105, 0.08); border: 2px solid var(--fax-accent); border-radius: var(--fax-radius); padding: 20px; margin-bottom: 20px; }
.fax-code-label { font-size: 12px; color: var(--fax-text-sec); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.fax-code-value { font-family: Consolas, 'Courier New', monospace; font-size: 32px; font-weight: 700; color: var(--fax-accent); letter-spacing: 4px; }

.fax-page { display: none; }
.fax-page.active { display: block; }

.fax-footer { text-align: center; padding: 20px; font-size: 12px; color: #999; }
.fax-footer a { color: var(--fax-accent); text-decoration: none; }

.fax-notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 9999; transition: transform 0.3s ease; max-width: 90%; }
.fax-notification.show { transform: translateX(-50%) translateY(0); }
.fax-notification.success { background: var(--fax-success); color: white; }
.fax-notification.error { background: var(--fax-error); color: white; }

@media (max-width: 480px) {
    .fax-container { padding: 16px; }
    .fax-card { padding: 16px; }
    .fax-code-value { font-size: 26px; }
    .fax-btn-row { flex-direction: column; }
}
