/* ============================================================
   css/ajutor.css — Pagina Ajutor Urgență
   ============================================================ */

:root {
    --aj-red:       #ef4444;
    --aj-red-dark:  #dc2626;
    --aj-orange:    #f59e0b;
    --aj-blue:      #3b82f6;
    --aj-green:     #10b981;
    --aj-bg:        #f1f5f9;
    --aj-surface:   #ffffff;
    --aj-border:    #e2e8f0;
    --aj-text:      #1e293b;
    --aj-muted:     #64748b;
    --aj-radius:    14px;
    --aj-shadow:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);
}

.aj-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.aj-hero {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border-radius: var(--aj-radius);
    padding: 32px 36px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.aj-hero__icon {
    font-size: 3rem;
    opacity: 0.9;
    flex-shrink: 0;
    animation: aj-pulse 2s ease-in-out infinite;
}
@keyframes aj-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}
.aj-hero__text h1 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 6px;
}
.aj-hero__text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

/* ── Grid 2 coloane ────────────────────────────────────────── */
.aj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 760px) {
    .aj-grid { grid-template-columns: 1fr; }
}

/* ── Card generic ──────────────────────────────────────────── */
.aj-card {
    background: var(--aj-surface);
    border-radius: var(--aj-radius);
    border: 1px solid var(--aj-border);
    box-shadow: var(--aj-shadow);
    overflow: hidden;
}
.aj-card__header {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--aj-border);
}
.aj-card__header--blue  { background: #eff6ff; color: #1d4ed8; }
.aj-card__header--red   { background: #fef2f2; color: #dc2626; }
.aj-card__header i      { font-size: 1.1rem; }
.aj-card__body { padding: 22px; }

/* ── Formular căutare servis ───────────────────────────────── */
.aj-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.aj-search-form select,
.aj-search-form button {
    height: 44px;
    border-radius: 8px;
    font-size: 0.93rem;
}
.aj-search-form select {
    flex: 1;
    min-width: 160px;
    border: 1.5px solid var(--aj-border);
    padding: 0 12px;
    background: #fff;
    color: var(--aj-text);
    cursor: pointer;
}
.aj-search-form select:focus {
    outline: none;
    border-color: var(--aj-blue);
}
.aj-btn-search {
    background: var(--aj-blue);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.aj-btn-search:hover { background: #2563eb; }

/* ── Lista mecanici ────────────────────────────────────────── */
.aj-mecanic-list { margin-top: 18px; }
.aj-mecanic-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--aj-muted);
    font-size: 0.95rem;
}
.aj-mecanic-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.4;
}
.aj-mecanic-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--aj-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.aj-mecanic-card:last-child { border-bottom: none; }
.aj-mecanic-card:hover { background: #f8fafc; border-radius: 8px; padding-left: 8px; }
.aj-mecanic-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aj-blue), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}
.aj-mecanic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aj-mecanic-info { flex: 1; min-width: 0; }
.aj-mecanic-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--aj-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aj-mecanic-sub {
    font-size: 0.82rem;
    color: var(--aj-muted);
    margin-top: 2px;
}
.aj-mecanic-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--aj-green);
    white-space: nowrap;
}
.aj-mecanic-phone i { font-size: 0.8rem; }
.aj-mecanic-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--aj-blue);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.aj-mecanic-btn:hover { background: #2563eb; }
.aj-mecanic-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    margin-top: 3px;
}

/* ── Formular urgență ──────────────────────────────────────── */
.aj-urg-form { display: flex; flex-direction: column; gap: 16px; }
.aj-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aj-text);
    margin-bottom: 5px;
}
.aj-field select,
.aj-field input[type="tel"],
.aj-field textarea {
    width: 100%;
    border: 1.5px solid var(--aj-border);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 0.93rem;
    color: var(--aj-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.aj-field select:focus,
.aj-field input:focus,
.aj-field textarea:focus {
    outline: none;
    border-color: var(--aj-red);
}
.aj-field textarea { resize: vertical; min-height: 90px; }

.aj-honeypot { display: none !important; }

.aj-btn-urgenta {
    background: linear-gradient(135deg, var(--aj-red), var(--aj-red-dark));
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
}
.aj-btn-urgenta:hover { opacity: 0.92; }
.aj-btn-urgenta:active { transform: scale(0.98); }
.aj-btn-urgenta:disabled { opacity: 0.6; cursor: not-allowed; }

.aj-urg-note {
    font-size: 0.8rem;
    color: var(--aj-muted);
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.aj-urg-note i { margin-top: 2px; flex-shrink: 0; }

/* ── Feedback mesaj ────────────────────────────────────────── */
.aj-feedback {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.aj-feedback--ok {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.aj-feedback--err {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Card promo (folosit pe index + dashboard_client) ─────── */
.aj-promo-card {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-radius: var(--aj-radius);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 auto;
}
.aj-promo-card__icon {
    font-size: 2rem;
    color: #fca5a5;
    flex-shrink: 0;
    animation: aj-pulse 2s ease-in-out infinite;
}
.aj-promo-card__text {
    flex: 1;
    min-width: 180px;
}
.aj-promo-card__text strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.aj-promo-card__text span {
    color: #fecaca;
    font-size: 0.85rem;
    line-height: 1.4;
}
.aj-promo-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.aj-promo-card__btn:hover { background: #fee2e2; }
.aj-promo-card__btn:active { transform: scale(0.97); }

/* ── Info badge urgenta ────────────────────────────────────── */
.aj-urgenta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: var(--aj-red-dark);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}
