/* ============================================================
   ريف الخبراء — Forms (polished)
   ============================================================ */

.form-section {
    padding: 48px 20px 72px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
    min-height: calc(100vh - 220px);
}
.form-wrap {
    max-width: 580px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    position: relative;
}
.form-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.form-wrap-sm { max-width: 440px; }

.form-head { text-align: center; margin-bottom: 28px; }
.form-head h1 {
    color: var(--text);
    font-size: 1.7rem;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.form-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.98rem;
}

.form .form-row,
.form .form-grid-2 {
    margin-bottom: 18px;
}
.form .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 580px) {
    .form .form-grid-2 { grid-template-columns: 1fr; }
    .form-wrap { padding: 28px 22px; }
}
.form label {
    display: block;
}
.form label > span {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 7px;
}
.form label > span em {
    color: var(--danger);
    font-style: normal;
    margin-right: 2px;
}
.form label > span small {
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 4px;
    font-size: 0.82rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="password"],
.form input[type="number"],
.form input[type="url"],
.form input[type="date"],
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.98rem;
    background: white;
    color: var(--text);
    transition: all var(--t-fast);
}
.form input:hover,
.form select:hover,
.form textarea:hover {
    border-color: #cbd5e1;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(84, 0, 168, 0.1);
}
.form input:disabled {
    background: #f8f8f8;
    color: var(--text-muted);
    cursor: not-allowed;
}
.form textarea {
    min-height: 100px;
    resize: vertical;
}
.form small {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: block;
    margin-top: 4px;
}

.form-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.form-foot {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 18px;
    line-height: 1.75;
}
.form-foot a {
    color: var(--brand);
    font-weight: 700;
}

/* ---- Flashes ---- */
.flashes { margin-bottom: 18px; }
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 0.94rem;
    font-weight: 500;
    display: flex;
    align-items: start;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}
.flash-success { background: var(--success-light); color: #065f46; border-right: 4px solid var(--success); }
.flash-error   { background: #fee2e2;             color: #991b1b; border-right: 4px solid var(--danger); }
.flash-info    { background: #dbeafe;             color: #1e40af; border-right: 4px solid #2563eb; }
.flash-warn    { background: #fef3c7;             color: #92400e; border-right: 4px solid var(--warn); }

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

/* ---- Breadcrumb ---- */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb a:hover { color: var(--brand-dark); }

/* ---- Info card ---- */
.info-card {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
    border: 1px solid #bfdbfe;
    border-right: 4px solid var(--info);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.info-card h3 { margin: 0 0 6px; color: #1e40af; font-size: 1rem; }
.info-card p { margin: 0; color: #1e40af; font-size: 0.92rem; }
