html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ============================================================================
   LAWYER VERIFICATION STYLES
   Add to: C:\Users\Chris\source\repos\Lawfunder\Lawfunder.Website\wwwroot\css\site.css
   ============================================================================ */

/* ==========================================================================
   VERIFICATION STATUS CONTAINER
   ========================================================================== */

.verification-status {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

    .verification-status.show {
        display: flex;
    }

    /* Status Types */
    .verification-status.status-loading {
        background-color: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

    .verification-status.status-success {
        background-color: #d1e7dd;
        color: #0f5132;
        border: 1px solid #badbcc;
    }

    .verification-status.status-warning {
        background-color: #fff3cd;
        color: #664d03;
        border: 1px solid #ffecb5;
    }

    .verification-status.status-error {
        background-color: #f8d7da;
        color: #842029;
        border: 1px solid #f5c2c7;
    }

    .verification-status.status-info {
        background-color: #cff4fc;
        color: #055160;
        border: 1px solid #b6effb;
    }

    .verification-status.status-blacklist {
        background-color: #f8d7da;
        color: #842029;
        border: 2px solid #dc3545;
        font-weight: 600;
        animation: pulse-warning 2s infinite;
    }

@@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }

    /* Add to end of your existing lawyer verification section */
    /* Did You Mean Suggestions */
    .did-you-mean {
        background: #fff8e6;
        border: 1px solid #ffc107;
        border-radius: 6px;
        padding: 12px;
        margin-top: 8px;
    }

    .did-you-mean .title {
        font-weight: 600;
        color: #664d03;
        font-size: 0.875rem;
        margin-bottom: 8px;
    }

    .did-you-mean .suggestion-btn {
        padding: 6px 12px;
        background: #ffffff;
        border: 1px solid #ffc107;
        border-radius: 20px;
        font-size: 0.85rem;
        color: #664d03;
        cursor: pointer;
        margin-right: 8px;
        margin-bottom: 8px;
        transition: all 0.15s ease;
    }

    .did-you-mean .suggestion-btn:hover {
        background: #ffc107;
        color: #ffffff;
    }
    /* Match Confidence Badges */
    .match-confidence.high {
        background-color: #d1e7dd;
        color: #0f5132;
    }

    .match-confidence.medium {
        background-color: #fff3cd;
        color: #664d03;
    }

    .match-confidence.low {
        background-color: #f8d7da;
        color: #842029;
    }
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

.verification-status .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
    flex-shrink: 0;
}

@@keyframes spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SUGGESTIONS DROPDOWN
   ========================================================================== */

.lawyer-verification-container {
    position: relative;
}

.lawyer-suggestions-container,
.firm-suggestions-container {
    position: relative;
}

#lawyer-suggestions,
#lawfirm-suggestions,
.verification-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

    #lawyer-suggestions.show,
    #lawfirm-suggestions.show,
    .verification-suggestions.show {
        display: block;
    }

/* Suggestion Items */
.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

    .suggestion-item:last-child {
        border-bottom: none;
        border-radius: 0 0 0.375rem 0.375rem;
    }

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }

    .suggestion-item.fuzzy-match {
        background-color: #fffbeb;
        border-left: 3px solid #ffc107;
    }

        .suggestion-item.fuzzy-match:hover {
            background-color: #fef3c7;
        }

    .suggestion-item strong {
        display: block;
        color: #212529;
        font-size: 0.95rem;
    }

    .suggestion-item .suggestion-firm,
    .suggestion-item .suggestion-location {
        display: block;
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 0.125rem;
    }

    .suggestion-item .match-confidence {
        font-size: 0.75rem;
        padding: 0.125rem 0.5rem;
        background: #e9ecef;
        border-radius: 0.25rem;
        color: #495057;
        white-space: nowrap;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    .suggestion-item.fuzzy-match .match-confidence {
        background: #ffc107;
        color: #212529;
    }

/* ==========================================================================
   INPUT VALIDATION STATES
   ========================================================================== */

/* Verified - Green */
input.is-verified,
select.is-verified {
    border-color: #198754 !important;
    background-color: #f8fff8;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23198754'%3e%3cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

    input.is-verified:focus,
    select.is-verified:focus {
        border-color: #198754 !important;
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
    }

/* Unverified - Yellow */
input.is-unverified,
select.is-unverified {
    border-color: #ffc107 !important;
    background-color: #fffef8;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

    input.is-unverified:focus,
    select.is-unverified:focus {
        border-color: #ffc107 !important;
        box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
    }

/* Warning - Orange */
input.is-warning,
select.is-warning {
    border-color: #fd7e14 !important;
    background-color: #fff8f0;
}

    input.is-warning:focus,
    select.is-warning:focus {
        border-color: #fd7e14 !important;
        box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25) !important;
    }

/* Blacklist - Red with danger styling */
input.is-blacklist,
select.is-blacklist {
    border-color: #dc3545 !important;
    border-width: 2px;
    background-color: #fff5f5;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'%3e%3cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

    input.is-blacklist:focus,
    select.is-blacklist:focus {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    }

/* ==========================================================================
   VERIFICATION INFO ALERT
   ========================================================================== */

.verification-info-alert {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edda 100%);
    border: 1px solid #b8daff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

    .verification-info-alert h6 {
        color: #0c5460;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .verification-info-alert p {
        color: #155724;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

/* ==========================================================================
   LAWYER SECTION CARD
   ========================================================================== */

.lawyer-section-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .lawyer-section-card .section-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e9ecef;
    }

    .lawyer-section-card .section-icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }

    .lawyer-section-card .section-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #212529;
        margin: 0;
    }

/* ==========================================================================
   STATE SELECTION - PROMINENT
   ========================================================================== */

.state-selection-group {
    background-color: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

    .state-selection-group label {
        font-weight: 600;
        color: #212529;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .state-selection-group .form-text {
        color: #6c757d;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .state-selection-group select {
        font-size: 1rem;
        padding: 0.625rem 0.75rem;
    }

/* ==========================================================================
   BLACKLIST WARNING BANNER
   ========================================================================== */

.blacklist-warning-banner {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

    .blacklist-warning-banner.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blacklist-warning-banner h6 {
    color: #842029;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.blacklist-warning-banner p {
    color: #842029;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   FORM LAYOUT IMPROVEMENTS
   ========================================================================== */

.lawyer-verification-container .form-label {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

    .lawyer-verification-container .form-label i {
        color: #6c757d;
    }

.lawyer-verification-container .text-danger {
    color: #dc3545 !important;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .suggestion-item {
        flex-direction: column;
        gap: 0.5rem;
    }

        .suggestion-item .match-confidence {
            margin-left: 0;
            align-self: flex-start;
        }

    .verification-status {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .lawyer-section-card {
        padding: 1rem;
    }

    .state-selection-group {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .lawyer-section-card .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lawyer-section-card .section-icon {
        margin-right: 0;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* High contrast focus states */
input:focus-visible,
select:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .verification-status .spinner,
    .blacklist-warning-banner,
    .status-blacklist {
        animation: none;
    }
}