.eap-application-wrap {
    max-width: 100%;
    margin: 50px 0;
    font-family: Arial, sans-serif;
}

.eap-form-header {
    margin-bottom: 28px;
}

.eap-form-header h1 {
    margin: 0;
    font-size: 38px;
    color: #111827;
    font-weight: 800;
}

.eap-form-header p {
    color: #6b7280;
    font-size: 16px;
}

.eap-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.eap-progress-step {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    color: #6b7280;
}

.eap-progress-step span {
    width: 34px;
    height: 34px;
    background: #e5e7eb;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 6px;
}

.eap-progress-step p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.eap-progress-step.active {
    border-color: #ca0109;
    color: #ca0109;
}

.eap-progress-step.active span,
.eap-progress-step.completed span {
    background: #ca0109;
    color: #ffffff;
}

.eap-form-step {
    display: none;
}

.eap-form-step.active {
    display: block;
}

.eap-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
}

.eap-card h3 {
    margin: 24px 0 18px;
    color: #111827;
    font-size: 20px;
}

.eap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.eap-field-full {
    grid-column: 1 / -1;
}

.eap-field label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-field input,
.eap-field select,
.eap-field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    color: #111827;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.eap-field input,
.eap-field select {
    height: 52px;
}

.eap-field textarea {
    resize: vertical;
}

.eap-field input:focus,
.eap-field select:focus,
.eap-field textarea:focus {
    border-color: #ca0109;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(202,1,9,0.08);
}

.eap-field-error {
    border-color: #ca0109 !important;
    background: #fff1f2 !important;
}

.eap-prefill-note {
    margin-top: 24px;
    background: #f8fafc;
    border-left: 4px solid #ca0109;
    padding: 16px;
    border-radius: 10px;
}

.eap-prefill-note p {
    margin: 5px 0;
    color: #111827;
}

.eap-form-navigation {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.eap-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.eap-btn-primary {
    background: #ca0109;
    color: #ffffff;
}

.eap-btn-primary:hover {
    background: #111827;
    color: #ffffff;
}

.eap-btn-secondary {
    background: #111827;
    color: #ffffff;
}

.eap-btn-secondary:hover {
    background: #ca0109;
    color: #ffffff;
}

.eap-auth-required {
    max-width: 700px;
    margin: 60px auto;
    font-family: Arial, sans-serif;
}

.eap-auth-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.eap-auth-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 30px;
}

.eap-auth-card p {
    color: #6b7280;
    margin-bottom: 24px;
}

.eap-auth-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.eap-conditional-group {
    display: none;
    background: #f8fafc;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.eap-no-service-message {
    background: #fff7ed;
    border-left: 4px solid #ca0109;
    padding: 16px;
    border-radius: 10px;
    color: #7c2d12;
    margin-top: 20px;
}

.eap-consent-box {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.eap-consent-box label {
    font-size: 15px;
    color: #111827;
}

.eap-consent-box input {
    margin-right: 8px;
}

.eap-submit-note {
    margin-top: 20px;
    background: #fff7ed;
    border-left: 4px solid #ca0109;
    padding: 14px 16px;
    border-radius: 10px;
    color: #7c2d12;
}

@media (max-width: 900px) {
    .eap-application-wrap {
        margin: 30px 15px;
    }

    .eap-progress {
        grid-template-columns: repeat(2, 1fr);
    }

    .eap-grid {
        grid-template-columns: 1fr;
    }

    .eap-form-header h1 {
        font-size: 30px;
    }

    .eap-auth-actions {
        flex-direction: column;
    }
}

.eap-alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 700;
}

.eap-alert p {
    margin: 0;
}

.eap-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.eap-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ca0109;
}

.eap-profile-grid,
.eap-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.eap-profile-field,
.eap-detail-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f9fafb;
}

.eap-profile-field label,
.eap-detail-item label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-profile-field div,
.eap-detail-item div {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.eap-dashboard-note {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff7ed;
    border-left: 4px solid #ca0109;
    color: #7c2d12;
    border-radius: 10px;
    font-size: 14px;
}

.eap-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eap-table-wrap {
    overflow-x: auto;
}

.eap-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.eap-table th {
    text-align: left;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    vertical-align: middle;
}

.eap-table small {
    color: #6b7280;
}

.eap-table-action {
    display: inline-block;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.eap-table-action:hover {
    background: #ca0109;
    color: #ffffff;
}

.eap-status-badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
    color: #111827;
}

.eap-status-pending-review {
    background: #fff7ed;
    color: #9a3412;
}

.eap-status-documents-required {
    background: #fee2e2;
    color: #991b1b;
}

.eap-status-documents-received {
    background: #dbeafe;
    color: #1e40af;
}

.eap-status-in-process,
.eap-status-submitted-to-dmv,
.eap-status-appointment-required {
    background: #fef9c3;
    color: #854d0e;
}

.eap-status-completed {
    background: #dcfce7;
    color: #166534;
}

.eap-status-rejected,
.eap-status-cancelled {
    background: #f3f4f6;
    color: #374151;
}

.eap-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}

.eap-empty-state h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
}

.eap-empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

.eap-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.eap-detail-header h2 {
    margin: 0 0 6px;
}

.eap-detail-header p {
    margin: 0;
    color: #6b7280;
}

.eap-detail-section {
    margin-top: 30px;
}

.eap-detail-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #111827;
}

.eap-doc-list {
    display: grid;
    gap: 12px;
}

.eap-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px;
    padding: 14px 16px;
}

.eap-doc-item span {
    font-weight: 700;
    color: #111827;
}

.eap-doc-item a {
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.eap-doc-item a:hover {
    background: #ca0109;
    color: #ffffff;
}

.eap-detail-actions {
    margin-top: 30px;
}

@media (max-width: 900px) {
    .eap-profile-grid,
    .eap-detail-grid {
        grid-template-columns: 1fr;
    }

    .eap-card-top,
    .eap-detail-header {
        flex-direction: column;
    }
}

/* Express Auto Dashboard Layout */
.eap-dashboard-wrap {
    max-width: 100%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    font-family: Arial, sans-serif;
}

.eap-sidebar {
    background: #111827 !important;
    border-radius: 18px;
    padding: 26px;
    color: #ffffff;
    min-height: 560px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eap-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 35px;
}

.eap-logo-icon {
    width: 48px;
    height: 48px;
    background: #ca0109;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
}

.eap-sidebar-logo h3 {
    margin: 0;
    font-size: 18px;
    color: #fff !important;
    line-height: 1.2;
}

.eap-sidebar-logo p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #cbd5e1 !important;
}

.eap-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eap-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #d1d5db !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: 0.25s ease;
}

.eap-menu a.active,
.eap-menu a:hover {
    background: #ca0109;
    color: #ffffff !important;
}

.eap-menu a.active {
    font-weight: 700;
}

.eap-sidebar-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.08);
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    transition: 0.25s ease;
}

.eap-sidebar-footer a:hover {
    background: #ca0109;
    color: #ffffff !important;
}

.eap-main {
    background: #f8fafc;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.eap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.eap-small-title {
    color: #ca0109;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eap-header h1 {
    margin: 0;
    font-size: 34px;
    color: #111827;
    font-weight: 800;
}

.eap-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.eap-card h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.eap-card p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}

/* Profile fields */
.eap-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.eap-profile-field {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f9fafb;
}

.eap-profile-field label {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eap-profile-field div {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    word-break: break-word;
}

.eap-dashboard-note {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff7ed;
    border-left: 4px solid #ca0109;
    color: #7c2d12;
    border-radius: 10px;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 900px) {
    .eap-dashboard-wrap {
        grid-template-columns: 1fr;
        margin: 30px 15px;
    }

    .eap-sidebar {
        min-height: auto;
    }

    .eap-profile-grid {
        grid-template-columns: 1fr;
    }

    .eap-header h1 {
        font-size: 28px;
    }
}

.eap-owner-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 16px;
    align-items: end;
    margin: 24px 0 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.eap-filter-button-field {
    display: flex;
    gap: 10px;
    align-items: end;
}

.eap-filter-button-field .eap-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eap-owner-update-form {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
}

.eap-form-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .eap-owner-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .eap-owner-filter-grid {
        grid-template-columns: 1fr;
    }

    .eap-filter-button-field {
        flex-direction: column;
        align-items: stretch;
    }
}

.eap-tracking-wrap {
    max-width: 1000px;
    margin: 50px auto;
    font-family: Arial, sans-serif;
}

.eap-tracking-form {
    margin-top: 5px;
}

.eap-tracking-result {
    margin-top: 28px;
}

.eap-tracking-alert {
    margin-top: 24px;
}

.eap-public-note {
    background: #f8fafc;
    border-left: 4px solid #ca0109;
    padding: 16px 18px;
    border-radius: 12px;
    color: #111827;
}

.eap-public-note p {
    margin: 0;
    color: #111827;
}

@media (max-width: 900px) {
    .eap-tracking-wrap {
        margin: 30px 15px;
    }
}