/* ============================================================
   Lead Form — Custom styles
   ============================================================ */

/* Override Bootstrap CSS variables scoped to this form */
#appraisal-lead-form {
    --bs-card-cap-bg: #fff;
    --bs-card-cap-color: #2c2c3a;
    --bs-body-bg: #f4f4f6;
    --bs-body-color: #222;
    --bs-border-color: #dde;
    --bs-secondary-bg: #f4f4f6;
    --bs-tertiary-bg: #ebebf0;
}
#appraisal-lead-form .card-header {
    background-color: #fff !important;
    color: #2c2c3a !important;
    border-bottom: 1px solid #eee !important;
}
#appraisal-lead-form .form-control {
    background-color: #f4f4f6 !important;
    color: #222 !important;
    border-color: #dde !important;
}

/* Labels */
.o-lf-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3a3a4a;
    margin-bottom: 0.3rem;
    display: block;
}
.o-lf-sublabel {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
}
.o-lf-subsection-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

/* Inputs */
.o-lf-input {
    background: #f4f4f6 !important;
    border: 1px solid #dde !important;
    color: #222 !important;
    border-radius: 4px;
}
.o-lf-input::placeholder {
    color: #aaa !important;
}
.o-lf-input:focus {
    background: #eeeef5 !important;
    border-color: #bbb !important;
    box-shadow: none !important;
    color: #111 !important;
}
.o-lf-input[readonly] {
    background: #ebebf0 !important;
    opacity: 0.8;
    cursor: default;
}

/* Toggle buttons */
.o-lf-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.o-lf-toggle {
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #ccc;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.o-lf-toggle:hover {
    border-color: #aaa;
    color: #555;
}
.o-lf-toggle.active {
    border-color: #714B67;
    background: #714B67;
    color: #fff;
}

/* Edit button */
.o-lf-edit-btn {
    background: none;
    border: none;
    color: #e05555;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0 0.2rem;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}
.o-lf-edit-btn:hover { color: #c03030; }

/* Search dropdown */
.o-lf-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.o-lf-dropdown-item {
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
}
.o-lf-dropdown-item:last-child { border-bottom: none; }
.o-lf-dropdown-item:hover { background: #f5f5fa; }
.o-lf-dropdown-item .o-lf-client-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #111;
}
.o-lf-dropdown-item .o-lf-client-meta {
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.1rem;
}

/* Counter buttons */
.o-lf-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: transparent;
    color: #555;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.o-lf-counter-btn:hover {
    border-color: #714B67;
    color: #714B67;
}

/* Asset item card */
.o-lf-asset-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafafa;
}
.o-lf-asset-item-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #714B67;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Pre-cotización display */
.o-lf-precot {
    background: #eeeef4;
    border: 1px solid #dde;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}
.o-lf-precot-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: #714B67;
    text-transform: uppercase;
    font-weight: 700;
}
.o-lf-precot-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1a1a1a;
    font-family: monospace;
}
.o-lf-precot-note {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.2rem;
}

/* Selected client badge */
.o-lf-selected-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.o-lf-client-badge {
    flex: 1;
    font-size: 0.85rem;
    color: #2e7d32;
    padding: 0.4rem 0.7rem;
    background: #f0faf0;
    border: 1px solid #81c784;
    border-radius: 6px;
}
.o-lf-remove-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #888;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.o-lf-remove-btn:hover {
    border-color: #e05555;
    color: #e05555;
}
